import type { AxiosRequestConfig } from 'axios';
export declare class ApiRequestError extends Error {
    readonly code: number;
    readonly url: string;
    readonly logId?: string;
    constructor(message: string, code: number, url: string, logId?: string);
}
export declare function request<T = any, R = T, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
