/** * 在调用.then或者.catch的时候才会执行启动函数 */ declare const THEN_SYMBOL: unique symbol; declare const CATCH_SYMBOL: unique symbol; export declare class DelayPromise { static THEN_SYMBOL: symbol; static CATCH_SYMBOL: symbol; promise: Promise & { [THEN_SYMBOL]: Promise["then"]; [CATCH_SYMBOL]: Promise["catch"]; }; constructor(executor: (resolve: (value?: T | PromiseLike) => void, reject: (reason?: any) => void) => void); delayThen(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): Promise; delayCatch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): Promise; get then(): (onfulfilled?: ((value: T) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null | undefined) => Promise; get catch(): (onrejected?: ((reason: any) => TResult | PromiseLike) | null | undefined) => Promise; } export {};