/*! * @author electricessence / https://github.com/electricessence/ * Licensing: MIT */ import { PromiseBase, TSDNPromise } from "./Promise"; /** * A promise that waits for the first then to trigger the resolver. */ export declare class LazyPromise extends TSDNPromise { private _resolver; constructor(_resolver: TSDNPromise.Executor); protected _onDispose(): void; private _onThen; thenSynchronous(onFulfilled: TSDNPromise.Fulfill | undefined | null, onRejected?: TSDNPromise.Reject | undefined | null): PromiseBase; doneNow(onFulfilled: (v?: T) => any, onRejected?: (v?: any) => any): void; /** * Will yield for a number of milliseconds from the time called before continuing. * @param milliseconds * @returns A promise that yields to the current execution and executes after a minimum delay. */ delayFromNow(milliseconds?: number): PromiseBase; /** * Will yield for a number of milliseconds from after this promise resolves. * If the promise is already resolved, the delay will start from now. * @param milliseconds * @returns A promise that yields to the current execution and executes after a delay. */ delayAfterResolve(milliseconds?: number): PromiseBase; } export default LazyPromise;