import { IGetParams } from '../../utils';
import { IRequestSend } from '../interfaces';
export declare class Request {
    static readonly HEADER_FORM_DATA: Record<string, string>;
    static readonly HEADER_RSS_XML: Record<string, string>;
    static readonly HEADER_AP_JSON: Record<string, string>;
    static readonly HEADER_AP_XML: Record<string, string>;
    static readonly HEADER_GZIP: Record<string, string>;
    url: string | null;
    get: IGetParams | null;
    post: any;
    header: HeadersInit | null;
    attach: string | null;
    isAttachContent: boolean;
    attachName: string;
    customRequest: string | null;
    maxTimeQuery: number | null;
    isConvertJson: boolean;
    private _error;
    private _setTimeOut;
    constructor();
    send<T>(url?: string | null): Promise<IRequestSend<T>>;
    protected _getUrl(): string;
    private _clearTimeout;
    private _run;
    protected _getOptions(): RequestInit | undefined;
    static getAttachFile(filePath: string, fileName?: string): FormData | null;
    getError(): string | null;
}
