import { Dic } from '..'; export declare type Option = Partial; export declare type Params = Dic; export declare type Data = Dic; export declare type Headers = Dic; export declare type Methods = 'get' | 'delete' | 'head' | 'options' | 'post' | 'put' | 'patch'; declare const default_option: { checkAuth: boolean; toastError: boolean; }; export declare class CgiBin { get(url: string, params?: Params, option?: Option): Promise<{ code: number; mark: string | number; body: T; message: string; }>; get_body(url: string, params?: Params, option?: Option): Promise; post(url: string, data?: Data, option?: Option): Promise<{ code: number; mark: string | number; body: T; message: string; }>; put(url: string, data?: Data, option?: Option): Promise<{ code: number; mark: string | number; body: T; message: string; }>; del(url: string, data?: Data, option?: Option): Promise<{ code: number; mark: string | number; body: T; message: string; }>; request(method: Methods, url: string, params?: Params, data?: Data, option?: Option, headers?: Headers): Promise<{ code: number; mark: string | number; body: T; message: string; }>; protected toastError(message: string): void; protected handle401(): void; protected handleHeaders(headers: Headers): void; private handleResponse; } export {};