export type ExecuteFn = (resolve: (value: T) => void, reject: (reason?: unknown) => void) => void; export declare class LazyPromise extends Promise { #private; static from(execute: () => T | PromiseLike): LazyPromise; static resolve(): LazyPromise; static resolve(value: T): LazyPromise; static reject(reason: unknown): LazyPromise; constructor(execute: ExecuteFn); then(onFulfilled?: ((value: T) => TResult1 | PromiseLike) | null | undefined, onRejected?: ((reason: unknown) => TResult2 | PromiseLike) | null | undefined): Promise; catch(onRejected?: ((reason: unknown) => TResult | PromiseLike) | null | undefined): Promise; finally(onFinally?: (() => void | PromiseLike) | null | undefined): Promise; } /** * Lazily run the `execute` function at most once when awaited. */ export declare function lazy(execute: () => T | PromiseLike): LazyPromise;