export type WaitForOptions = { timeout?: number; interval?: number; }; /** * Wait for a condition to pass. * @param callback The function to run. Return truthy to stop the wait; anything else will retry * the callback. The truthy return value of the callback will be returned to the caller. * @returns A Promise resolving to the returned value from the callback */ export declare function waitFor(callback: () => T | Promise): Promise; /** * Wait for a condition to pass. * @param callback The function to run. Return truthy to stop the wait; anything else will retry * the callback. The truthy return value of the callback will be returned to the caller. * @param options Options for wait time/interval * @returns A Promise resolving to the returned value from the callback */ export declare function waitFor_internal(callback: () => T | Promise, options?: WaitForOptions): Promise;