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; private userId?; refineOpRecords(): Promise; setTokenValue(tokenValue?: string, userId?: string): Promise; setApplication(appId: string): Promise; initialize(data?: SerializedData, later?: boolean): 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"]["value"] | undefined; getToken(allowUnloggedIn?: boolean): Partial | undefined; getCurrentUserId(allowUnloggedIn?: boolean): string; setCurrentUserId(userId: string | undefined): void; protected getSerializedData(): Promise; isRoot(): boolean; isReallyRoot(): boolean; sendMessage(data: ED['message']['CreateSingle']['data']): Promise>; allowUserUpdate(): boolean; }