/**
 * Retry a function until a condition is met
 *
 * @param fn promise returning function
 * @param condition callback to check if the result meets the condition
 * @param retries max number of retries
 * @param delay delay between retries
 * @returns the result of the promise
 */
export declare const retry: <T>(fn: () => Promise<T>, condition: (res: T) => boolean, retries?: number, delay?: number) => Promise<T | undefined>;
