import type { QueryClient } from "@tanstack/react-query";
import type { CacheOptions } from "./cache-config";
import type { QueryKey } from "./query-keys";
export type PrefetchSkipMode = "fresh" | "any";
export declare const isQueryFresh: (queryClient: QueryClient, queryKey: QueryKey, staleTime: number) => boolean;
export declare const isQueryInFlight: (queryClient: QueryClient, queryKey: QueryKey) => boolean;
export declare const shouldSkipPrefetch: (params: {
    queryClient: QueryClient;
    queryKey: QueryKey;
    cacheOptions: Pick<CacheOptions, "staleTime">;
    skipIfCached: boolean;
    skipMode: PrefetchSkipMode;
}) => boolean;
//# sourceMappingURL=prefetch.d.ts.map