export declare enum FetchType { contact = "contact", search = "search", staff = "staff", department = "department", departmentStaff = "departmentStaff" } export declare enum FetchTypePromise { contact = "contactPromise", search = "searchPromise", staff = "staffPromise", department = "departmentPromise", departmentStaff = "departmentStaffPromise" } declare class ProcessFetch { constructor(); onError: Function; private userId; private tenantId; private host; private dataProvideByExternalPromise; static removeLastSlash(strings?: string): string; initConfig: ({ apiPath, tenantId, userId, onError, dataProvideByExternalPromise }: { apiPath: any; tenantId: any; userId: any; onError: any; dataProvideByExternalPromise: any; }, externalPromise?: any) => void; updateApiPath: (apiPath: any) => void; getAPIConfig: () => { host: string | number; tenantId: string | number; userId: string | number; }; /** * contact: 常用联系人 * staff: 我的下属 不包括本人 * department: 我的部门 * departmentStaff: 部门下级人员 * search:搜索 * **/ getBaseUrls: (type: FetchType) => string; fetchUrl: (type: FetchType, data?: string | number | undefined) => any; assembleUrl: (type: FetchType, data?: string | number | undefined) => string; } export default ProcessFetch;