export interface WaitForOptions { timeout?: number; interval?: number; } export interface ExpectTextOptions extends WaitForOptions { container?: HTMLElement; } /** * Returns a promise that resolves when the text content is found on the screen. * * @param text - The expected text content, regex, or matcher function. * * @example * ```ts * await expectText('Hello'); * await expectText(/Hello/); * ``` */ export declare function expectText(text: string | RegExp, options?: ExpectTextOptions): Promise; /** * @param callback - The function to execute until it succeeds or times out. * @param options - Optional configuration for timeout and retry interval. * * Note: the implementation of this function makes sure to not participate in fake timers, * so that it can be used in tests that use fake timers without being affected by them. */ export declare function waitFor(callback: () => Promise | T, options?: WaitForOptions): Promise;