UNPKG

@mastra/core

Version:
11 lines • 595 B
export interface FetchWithRetryOptions { shouldRetryResponse?: (response: Response) => boolean; } /** * Performs a fetch request with automatic retries using exponential backoff. * Network failures are always retried. Non-OK responses are retried unless * `shouldRetryResponse` returns false. Aborting `options.signal` stops retries * immediately and rejects with the signal's reason. */ export declare function fetchWithRetry(url: string, options?: RequestInit, maxRetries?: number, retryOptions?: FetchWithRetryOptions): Promise<Response>; //# sourceMappingURL=fetchWithRetry.d.ts.map