import { AnyFn, AnyObject, Nullable } from '../../shared/types'; import { AsyncQueue as _AsyncQueue } from '../../shared/utils'; export declare namespace HttpDefine { type RequestType = 'post' | 'get' | 'patch' | 'delete' | 'put'; interface AsyncQueueItem { key: any; cache?: boolean; url: string; method?: RequestType; params?: AnyObject; payload?: AnyObject; } type AsyncQueue = _AsyncQueue; type Instance = Record; type LowCodeInfo = { method: RequestType; url: string; primaryKeyUrl?: string; }; type SearchResult = { result: 'SUCCESS' | 'ERROR'; map: { rows: AnyObject[]; hasNextPage: boolean; }; }; type SelectResult = { success: boolean; data: AnyObject[]; }; type RecommendIds = Partial>; type RecommendInfo = { getRecommendIds(): RecommendIds; url: Record<'get' | 'post' | 'delete', string>; }; type RecommendResult = { result: 'SUCCESS' | 'ERROR'; obj: Partial>; }; } export declare function useHttpInstance(): { register: (instance: HttpDefine.Instance) => void; take: () => Nullable; setLowCodeRequestInfo: (info: HttpDefine.LowCodeInfo) => void; getLowCodeRequestInfo: () => { method: HttpDefine.RequestType; url: string; primaryKeyUrl?: string | undefined; }; registGlobRecommendInfo: (info: Partial) => void; getRecommendRequestInfo: () => HttpDefine.RecommendInfo; };