import type { RequestOptions } from './request';
export interface AjaxResponse<D = any> {
    body: D;
    headers: Record<string, string>;
    ok: boolean;
    status: number;
    type: string;
    text: string;
}
export declare function get(url: string, options?: RequestOptions): Promise<AjaxResponse>;
export declare function post(url: string, body?: object, options?: RequestOptions): Promise<AjaxResponse>;
