import { type QueryKey } from '@tanstack/react-query'; import { type FixedLengthArray } from 'type-fest'; import { type SeriaizedRequest, type Viewport } from '../types'; type TimeSeriesDataCacheKeyShape = FixedLengthArray<{ resource: string; requestType: string; request: SeriaizedRequest; viewport?: Viewport; }, 1>; type TimeSeriesDataCacheKeyType = 'request' | 'execution' | 'data'; export declare abstract class TimeSeriesDataCacheKeyManager { #private; abstract RESOURCE: string; abstract serializeQueryExecutionRequest(request: Request): SeriaizedRequest; abstract serializeRequest(request: Request): SeriaizedRequest; abstract deserializeRequest(serializedRequest: SeriaizedRequest): Request; toRequestQueryKey(request: Request, viewport: Viewport): QueryKey; toRequestExectutionQueryKey(request: Request, viewport: Viewport): readonly [{ readonly resource: string; readonly requestType: string; readonly request: SeriaizedRequest; readonly viewport: Viewport; }]; toCachedRequestExectutionQueryKey(request: Request): readonly [{ readonly resource: string; readonly requestType: string; readonly request: SeriaizedRequest; }]; toDataCacheQueryKey(request: Request): readonly [{ readonly resource: string; readonly requestType: string; readonly request: SeriaizedRequest; }]; toRequest(queryKey: QueryKey): { request: Request; viewport?: Viewport; } | undefined; isTimeSeriesDataQuery(queryKey: QueryKey, requestTypesToInclude?: TimeSeriesDataCacheKeyType[]): boolean; protected isTimeSeriesDataCacheKey(queryKey: QueryKey, requestTypesToMatch?: string[]): queryKey is TimeSeriesDataCacheKeyShape; } export {}; //# sourceMappingURL=keyManager.d.ts.map