// @flow export type Header = { [headerName: string]: string; } export type Cookies = { [cookieName: string]: string; } export type Options = { body?: string | {}, credentials?: string, headers?: Header, method?: 'DELETE' | 'GET' | 'POST' | 'PUT', sslPinning: { certs: Array }, timeoutInterval?: number, disableAllSecurity?: boolean } export type Response = { bodyString: string, headers: Header, status: number, url: string, json: () => Promise<{ [key: string]: any}>, text: () => Promise, } declare export function fetch(url: string, options: Options): Promise; declare export function removeCookieByName(cookieName: string): Promise declare export function getCookies(domain: string): Promise