import { AsyncFunction } from "../ts/types.js"; type ErrorHandler = (err: Error) => Promise; /** * Recursively runs `func` and handles errors with `errorHandler` until `func` successfully finishes. * @param func Function to execute * @param errorHandler Function to execute when a error occours * @returns Return value of `func` on success */ export declare const loopError: (func: F, errorHandler?: ErrorHandler) => ReturnType; export {}; //# sourceMappingURL=loopError.d.ts.map