interface HackXHROptions { open?: (xhr: XMLHttpRequest) => void; send?: (xhr: XMLHttpRequest, body: any) => void; } export declare const hackXHR: (options: HackXHROptions) => void; interface HackFetchOptions { beforeFetch?: (url: string, option: RequestInit) => void; then?: (res: Response, duration: number, url: string, option?: RequestInit) => void; catch?: (err: any, duration: number, url: string, option?: RequestInit) => void; } export declare const hackFetch: (option: HackFetchOptions) => void; export {};