import has = require('./has'); import types = require('./types'); declare namespace fetch { interface IResult { ok: boolean; status: number; statusText: string; url: string; clone(): IResult; text(): Promise; json(): Promise; xml(): Promise; blob(): Promise; headers: { keys(): string[]; entries(): Array; get(name: string): string; has(name: string): boolean; }; } } declare function fetch( url: string, options?: { method?: string; timeout?: number; headers?: types.PlainObj; body?: any; } ): Promise; export = fetch;