export declare const TEXT_FILE_EXTS: RegExp; export interface GlobalWithFetch { fetch: Function; } export declare function parseResponse(url: string, res: wx.RequestSuccessCallbackResult): { ok: boolean; status: number; statusText: number; url: string; clone: () => any; text: () => Promise; json: () => Promise | ArrayBuffer>; arrayBuffer: () => Promise | ArrayBuffer>; headers: { keys: () => string[]; entries: () => any[][]; get: (n: string) => any; has: (n: string) => boolean; }; }; export declare function fetchFunc(): (url: string, options: any) => Promise<{}>; export declare function setWechatFetch(debug?: boolean): void;