export declare const tryUntilSuccess: (logic: () => Promise, onError?: ((error: unknown) => void | Promise) | undefined) => Promise;