import { AxiosInstance } from 'axios'; import { InlineArrayResult } from "@/lib/promise-util"; export declare const api: AxiosInstance; export declare const apiInternal: AxiosInstance; export declare const apiExternal: AxiosInstance; export interface ApiListResponse { count: number; list: T[]; } export declare const configureApi: (baseUrl: string) => void; export declare const configureToken: (token: string) => void; export declare const configureWhitelabelToken: (token: string) => void; export interface ApiData { data: { data: T; message: string; status: number; }; } export declare const setAuthToken: (api: AxiosInstance, token: string) => void; export declare const commonApiWrapper: (apiPromise: Promise) => Promise>; export declare const commonExternalWrapper: (apiPromise: Promise) => Promise>; export declare const getErrorDataFromResponse: (error: any) => T; //# sourceMappingURL=common-api.d.ts.map