import { AxiosInstance, Method } from 'axios'; import { Indexable } from 'fx-front-utils'; export interface EmptyResponseData { [key: string]: any; } export interface ResponseData { code: number | string; desc?: string; tips?: string; data: unknown; } export interface MockResponseData { code?: number | string; data: ResponseData; message: string; meta: any; success: boolean; } export interface TableList { list: Indexable[]; } export declare class RequestAxios { private serverObj; private arrayBufferUrls; private notTranslateEmpty; private showMsgUrls; private successCodes; private ifGetFileNameFromHeader; constructor(config: any); post(url: string, data?: unknown, headers?: Record): Promise; put(url: string, data?: unknown, headers?: Record): Promise; get(url: string, headers?: Record): Promise; delete(url: string, headers?: Record): Promise; http(url: string, data: unknown, method: Method, headers?: Record): Promise; } declare const getRequest: (config: { showMsgUrls: string[]; arrayBufferUrls: string[]; notTranslateEmpty: string[]; successCodes?: string[]; ifGetFileNameFromHeader?: (url: string) => boolean; serverObj: AxiosInstance; }) => RequestAxios; export { getRequest };