import { Page } from '@playwright/test'; export declare function wait(waitFunction: () => Promise, until: boolean, timeout: number, diff: number, sendError: boolean, errorMessage: string): Promise; /** * Waiting function that tests the condition (callback) to become true until timeout is reached, * error is thrown if not fulfilled * @param waitFunction a callback returning Promise * @param timeout timeout in ms * @param diff a diff (number) in ms defining the delay between each cycle * * Example: await waitUntil(() => dialogIsOpen(), 1000, 250, 'Dialog window was not openend as expected in 1 s'); */ export declare function waitUntil(waitFunction: () => Promise, { timeout, diff, sendError, message, }?: { timeout?: number; diff?: number; sendError?: boolean; message?: string; }): Promise; /** * Waiting function that tests the condition (callback) to become false until timeout is reached, * error is thrown if not fulfilled * @param waitFunction a callback returning Promise * @param timeout timeout in ms * @param diff a diff (number) in ms defining the delay between each cycle * * Example: await waitWhile(() => dialogIsOpen(), 1000, 250, 'Dialog window was not closed as expected in 1 s'); */ export declare function waitWhile(waitFunction: () => Promise, { timeout, diff, sendError, message, }?: { timeout?: number; diff?: number; sendError?: boolean; message?: string; }): Promise; /** * Standard delay function * @param ms number of ms to sleep for * @returns promise void */ export declare function delay(ms: number): Promise; export declare function waitForPodmanMachineStartup(page: Page, timeout?: number): Promise;