export interface WaitForOptions { timeout?: number; interval?: number; signal?: AbortSignal; } /** * Repeatedly evaluates a condition until it returns a truthy value or the * timeout elapses. Resolves with the final truthy value. * * @template T - Truthy result type * @param {() => T | Promise} condition - Condition predicate * @param {WaitForOptions} [options] - Polling configuration * @returns {Promise>} The first truthy value * @throws {Error} When the timeout elapses or the signal aborts * @example * await waitFor(() => document.querySelector("#root"), { interval: 100 }); */ export declare const waitFor: (condition: () => T | Promise, options?: WaitForOptions) => Promise>;