type FetchLike = typeof fetch;
type FetchArguments = Parameters<typeof fetch>;
export declare function fetchWithTimeout(fetchImpl: FetchLike, input: FetchArguments[0], init?: FetchArguments[1], timeoutMs?: number): Promise<Response>;
export declare function fetchWithTimeout<T>(fetchImpl: FetchLike, input: FetchArguments[0], init: FetchArguments[1], timeoutMs: number | undefined, consume: (response: Response) => Promise<T>): Promise<T>;
export {};
