declare type BooleanLike = undefined | null | boolean; declare type Condition = () => BooleanLike | Promise; declare type Action = () => void; interface Options { timeout?: number; retries?: number; alwaysResolve?: boolean; backoff?: boolean; } export declare function when(condition: Condition, actionOrOptions?: Action | Options, maybeOptions?: Options): Promise; export {};