// Generated by typings // Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/1b30c8e5c2aa0e179a1b82d7f337124721be2aa6/isomorphic-fetch/index.d.ts interface ForEachCallback { (keyId: any, status: string): void; } interface Headers { append(name: string, value: string): void; delete(name: string): void; forEach(callback: ForEachCallback): void; get(name: string): string | null; has(name: string): boolean; set(name: string, value: string): void; } declare var Headers: { prototype: Headers; new(init?: any): Headers; } interface Blob { readonly size: number; readonly type: string; msClose(): void; msDetachStream(): any; slice(start?: number, end?: number, contentType?: string): Blob; } interface Body { readonly bodyUsed: boolean; arrayBuffer(): Promise; blob(): Promise; json(): Promise; text(): Promise; } interface RequestInit { method?: string; headers?: any; body?: any; referrer?: string; referrerPolicy?: string; mode?: string; credentials?: string; cache?: string; redirect?: string; integrity?: string; keepalive?: boolean; window?: any; } interface Request extends Object, Body { readonly cache: string; readonly credentials: string; readonly destination: string; readonly headers: Headers; readonly integrity: string; readonly keepalive: boolean; readonly method: string; readonly mode: string; readonly redirect: string; readonly referrer: string; readonly referrerPolicy: string; readonly type: string; readonly url: string; clone(): Request; } declare var Request: { prototype: Request; new(input: Request | string, init?: RequestInit): Request; } interface ReadableStream { readonly locked: boolean; cancel(): Promise; } interface ResponseInit { status?: number; statusText?: string; headers?: any; } interface Response extends Object, Body { readonly body: ReadableStream | null; readonly headers: Headers; readonly ok: boolean; readonly status: number; readonly statusText: string; readonly type: string; readonly url: string; clone(): Response; } declare var Response: { prototype: Response; new(body?: any, init?: ResponseInit): Response; } interface GlobalFetch { fetch(input: Request | string, init?: RequestInit): Promise; } interface Window extends GlobalFetch { } declare function fetch(input: Request | string, init?: RequestInit): Promise; declare module "isomorphic-fetch" { namespace _fetch { } const _fetch: typeof fetch; export = _fetch; }