/** * check if the status code is 2xx * */ export declare function checkedFetch({ input, init, on2xx, non2xx, }: { input: RequestInfo | URL; init?: RequestInit; on2xx: (response: Response) => T | Promise; non2xx: (response: Response) => T | Promise; }): Promise; export declare function parseRetryAfter(retryAfter: string | null): number | null; export type FetchWithRetryOptions = { maxRetryCount?: number; defaultRetryAfterInterval?: number; }; export declare const fetch_retry_status_codes: number[]; export declare function fetch_with_retry(input: RequestInfo | URL, init?: RequestInit, options?: FetchWithRetryOptions): Promise; export declare function fetch_json(input: RequestInfo | URL, init?: RequestInit, options?: FetchWithRetryOptions): Promise;