export declare const cache: Map; export declare const activeRequests: Map>; type UseAsyncRequestOptions = { /** * Unique key for the query */ queryKey: string | any[]; /** * Query function that returns a promise * Note: For best performance, use a stable function reference * (defined outside component or wrapped in useCallback) * But not required - the hook will work without it */ queryFn: () => Promise; /** * Whether the query should execute * @default true */ enabled?: boolean; /** * Whether to disable caching * @default false */ disableCache?: boolean; }; export declare function useAsync({ queryKey, queryFn, enabled, disableCache, }: UseAsyncRequestOptions): { data: T; isLoading: boolean; error: Error; refetch: () => Promise; }; export {};