export type AuthConfig = { type: "basic"; auth: string; host: string; }; export type RetryConfig = { codes: number[]; base: number; maxRetries: number; }; export type FetchConfig = { auth?: AuthConfig; concurrent?: number; retry?: Partial; safe?: boolean; }; export declare function enhanced_fetch(config: FetchConfig, start?: typeof fetch): typeof fetch; export declare function limit_fetch_per_domain(fetch_f: typeof fetch, concurrent?: number): typeof fetch; export declare function handle_basic_auth(fetch_f: typeof fetch, config: AuthConfig): typeof fetch; export declare function retry_fetch(fetch_f: typeof fetch, partial_config: Partial): typeof fetch;