export type FetchJSONOpt = {
    method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
    data?: any;
    headers?: HeadersInit;
};
export declare function fetchJSON(hostname: string, options?: FetchJSONOpt): Promise<any>;
