import { ModelSchema } from "../api/types"; export default class Context { readonly parentContext: Context | undefined; readonly modelSchema: ModelSchema; readonly json: any; private readonly onReadyCb; private static rootContextCache; private isRoot; private pendingCallbacks; private pendingRefsCount; private hasError; target: any; rootContext: Context; args: any; private pendingRefs; private resolvedRefs; constructor(parentContext: Context | undefined, modelSchema: ModelSchema, json: any, onReadyCb: (err?: any, value?: T) => void, customArgs?: any[]); createCallback(fn: (value: T) => void): (err?: any, value?: T) => void; await(modelSchema: ModelSchema, uuid: string, callback: (err?: any, value?: any) => void): undefined; resolve(modelSchema: ModelSchema, uuid: string, value: any): void; setTarget(target: T): void; cancelAwaits(): void; static getTargetContext(target: any): Context | undefined; } /** * @deprecated Use `Context.getTargetContext(target)` directly. * @param target * @returns */ export declare function getTargetContext(target: any): Context | undefined;