import { FlagDispatcher, Subscribable } from '../events'; import { Promisable } from '../threading'; export interface PromiseHandle { promise: Promise; value: T; stack?: string; owner?: any; } export declare class DependencyContext implements Promisable> { protected owner: TOwner; protected static collectionSet: Set>; protected static collectionStack: DependencyContext[]; protected static promises: PromiseHandle[]; static collectPromise(promise: Promise): PromiseHandle; static collectPromise(promise: Promise, initialValue: T): PromiseHandle; static hasPromises(): boolean; static consumePromises(): Promise[]>; protected readonly invokable: any; protected dependencies: Set>>; protected event: FlagDispatcher; protected markDirty: () => void; constructor(owner: TOwner); protected invoke(): void; protected startCollecting(): void; protected finishCollecting(): void; protected clearDependencies(): void; protected collect(): void; dispose(): void; toPromise(): Promise; } //# sourceMappingURL=DependencyContext.d.ts.map