import { Expression, type Falsy } from "../core/index.js"; export type WatchGuardCondition = (value: T) => value is R; export type WatchCondition = (value: T) => boolean; export declare class WatchForTimeoutError extends Error { } /** * Utility to watch an expression until its output satisfies a condition. * * @param expr The expression to watch. * @param condition The condition to test. By default, all truthy values are matched. * @param timeout An optional timeout. Default is no timeout. * @returns A promise that resolves with the first matched output or rejects with a {@link WatchForTimeoutError}. */ export declare function watchFor(expr: Expression, timeout?: number): Promise; export declare function watchFor(expr: Expression, condition?: WatchGuardCondition, R>, timeout?: number): Promise; export declare function watchFor(expr: Expression, condition?: WatchCondition>, timeout?: number): Promise; //# sourceMappingURL=watch-for.d.ts.map