import { AxiosRequestConfig } from 'axios'; interface RequestConfig extends AxiosRequestConfig { cache?: boolean; noPrompt?: boolean; } declare class Api { isConfig: boolean; constructor(isConfig?: boolean); request(AxiosConfig: RequestConfig): any; get projectId(): any; get orgId(): any; get menuType(): 'organization' | 'project'; /** * 目的:达到api.project(2).getList()中getList获取的projectId为2,而不是当前projectId * @param Property 要覆盖的key * @param value 要覆盖的值 */ overwrite(Property: string, value: any): T; project(projectId: string | number | undefined): T | this; org(orgId: string | number | undefined): T | this; menu(menuType?: 'project' | 'organization'): T | this; } export default Api;