import type { SetStateAction } from 'react'; import type { AnyFunc, Arrayable, Gettable } from "../utils/basic.cjs"; export interface UseQueryCacheLike { get(key: string): Data | undefined; set(key: string, value: Data): void; delete(key: string): void; keys(): IterableIterator; } export declare function useQueryCache>>(options?: { provider?: Gettable>; cacheKey?: string | ((...args: Parameters | []) => string); cacheExpirationTime?: number | false; compare?: (prevData: D | undefined, nextData: D | undefined) => boolean; }): [ { data: D | undefined; params: Parameters | []; stale: boolean; }, { setCache: (value: D | undefined, params?: Parameters | []) => void; getPromiseCache: () => Promise | undefined; setPromiseCache: (promise: Promise) => void; clearPromiseCache: () => void; isCacheEnabled: boolean; } ]; export declare const mutate: UseQueryMutate; export type UseQueryMutate = (keyFilter: Arrayable | ((key: string) => boolean), value?: SetStateAction, params?: SetStateAction) => void;