import { CacheValueType, NullableType, RequestInstance, ExtractResponseType, ExtractErrorType, ExtractAdapterResolvedType, Dispatcher, ExtractAdapterType, ResponseDetailsType } from '@hyper-fetch/core'; import { UseTrackedStateType } from '..'; /** * Determines whether state should be cleared when the cache key changes. * * - `"clean"` — always clear * - `"preserve"` — never clear * - `"auto"` — clear when the resource identity changed (URL params), preserve when only query params changed */ export declare const getShouldClearState: (mode: "auto" | "preserve" | "clean", oldCacheKey: string, newCacheKey: string) => boolean; export declare const getDetailsState: (state?: UseTrackedStateType, details?: Partial) => ResponseDetailsType; export declare const isStaleCacheData: (staleTime: number, staleTimestamp: NullableType) => boolean; export declare const getValidCacheData: (request: T, initialResponse: NullableType>>, cacheData: NullableType, ExtractErrorType, ExtractAdapterType>>) => CacheValueType, ExtractErrorType, ExtractAdapterType> | null; export declare const getTimestamp: (timestamp?: NullableType) => Date | null; export declare const getIsInitiallyLoading: ({ queryKey, dispatcher, hasState, revalidate, disabled, }: { queryKey: string; dispatcher: Dispatcher>; hasState: boolean; revalidate?: boolean; disabled?: boolean; }) => boolean; export declare const getInitialState: ({ initialResponse, dispatcher, request, disabled, revalidate, }: { initialResponse: NullableType>>; dispatcher: Dispatcher>; request: T; disabled?: boolean; revalidate?: boolean; }) => UseTrackedStateType; //# sourceMappingURL=use-tracked-state.utils.d.ts.map