export type AnyAsyncFunction = (...args: any[]) => Promise; export interface AsyncCall { asyncFn: F; timeout?: number; } export declare function withFallback(calls: AsyncCall[]): (...args: Parameters) => ReturnType; export type WithFallbackOptions = { fallbacks?: F[]; fallbackTimeout?: number; }; export declare function createAsyncCallWithFallbacks(defaultCall: F, options?: WithFallbackOptions): (...args: Parameters) => ReturnType; //# sourceMappingURL=withFallback.d.ts.map