import { Context } from '../context/context.js'; import { Disposable } from '../utils/Disposable.js'; import { BaseQuery } from './BaseQuery.js'; import { QueryDiagnostics } from './diagnostics.js'; export declare class QueryCache extends Disposable { private _cache; private _evictionTime; private context; /** A set of query keys to keep alive even if they unsubscribe */ private _holds; private _inactiveDiagnostics; constructor({ evictionTime, context, }: { evictionTime?: number; context: Context; }); get activeKeys(): string[]; get>(key: string): T | null; set>(value: V): V; get diagnostics(): QueryDiagnostics; getOrSet>(key: string, create: () => V, update?: (query: V) => void): V; private enqueueQueryEviction; dropAll: () => void; forceRefreshAll: () => void; keepAlive(key: string): void; dropKeepAlive(key: string): void; get keepAlives(): Set; } export type PublicQueryCacheAPI = Pick;