import { RuntimeContext } from './RuntimeContext'; import { EntityDict } from '../oak-app-domain'; import { SerializedData } from './FrontendRuntimeContext'; import { EntityDict as BaseEntityDict } from 'oak-domain/lib/types/Entity'; import { BackendRuntimeContext as BRC } from 'oak-frontend-base'; /** * general数据结构要求的后台上下文 */ export declare abstract class BackendRuntimeContext extends BRC implements RuntimeContext { protected application?: Partial; protected token?: Partial; protected amIRoot?: boolean; protected amIReallyRoot?: boolean; protected rootMode?: boolean; refineOpRecords(): Promise; setTokenValue(tokenValue: string): Promise; setApplication(appId: string): Promise; initialize(data?: SerializedData): Promise; getApplicationId(): ED["application"]["Schema"]["id"] | undefined; getSystemId(): ED["application"]["Schema"]["systemId"] | undefined; getApplication(): Partial | undefined; openRootMode(): () => void; getTokenValue(allowUnloggedIn?: boolean): "oak-root-token" | ED["token"]["Schema"]["id"] | undefined; getToken(allowUnloggedIn?: boolean): Partial | undefined; getCurrentUserId(allowUnloggedIn?: boolean): string; protected getSerializedData(): SerializedData; isRoot(): boolean; isReallyRoot(): boolean; sendMessage(data: ED['message']['CreateSingle']['data']): Promise>; allowUserUpdate(): boolean; }