import { AxiosError } from 'axios'; export type AxiosErrorExport = { status: number; name: string; nameOrig: string; request: { baseUrl?: string; url?: string; method?: string; timeout?: number; params?: Record; }; response?: { headers?: Record; data?: Record | null; }; message: string; messageOrig: string; syscall?: string; errno?: number; code?: string; hostname?: string; address?: string; port?: number; input?: string; stack?: string; }; export declare function removeUndefined>(o: T): T; export declare function removeEmptyObject>(o: T): T; export declare function transformAxiosError(e: AxiosError): Error & AxiosErrorExport; export declare function transformAxiosError(e: AxiosError, plainObject: true): AxiosErrorExport; export declare function transformAxiosError(e: AxiosError, plainObject: false): Error & AxiosErrorExport;