import { Method } from "axios"; export declare let token: string | null; export declare const setToken: (_token: string) => void; export declare const loginWithToken: () => Promise; export interface Request { data?: any; method: Method; needAuthenticated: boolean; params?: object; otherOptions?: object; isFormData?: boolean; cancelCB?: any; } export declare const baseRequest: (path: string, { data, method, needAuthenticated, params, otherOptions, isFormData, cancelCB, }: Request) => Promise;