/** * @param fn the function to be retried * @param retries the number of retries * @returns the result of the function * @throws the last error if all retries are exhausted */ export declare function retry(fn: (retries: number) => T, retries: number): T;