export type LazyValue = { get: () => Promise; cancel: () => void; }; export declare const createLazyValue: (args: { get: () => Promise; onCancel?: ((args: { resolve: (value: T) => void; reject: (err?: any) => void; }) => void) | undefined; }) => LazyValue;