export type ClientCachedRpcMethod = 'getQuickInfoAtPosition' | 'getCodeBlockTokens' | 'getSourceTextMetadata' | 'resolveTypeAtLocationWithDependencies' | 'resolveFileExportsWithDependencies' | 'getTokens' | 'getFileExports' | 'getReferenceBaseArtifact' | 'getReferenceResolvedTypesArtifact' | 'getReferenceSectionsArtifact' | 'getOutlineRanges' | 'getFileExportMetadata' | 'getFileExportStaticValue' | 'getFileExportText' | 'transpileSourceFile'; export interface ClientRpcCacheEntry { value: unknown; expiresAt: number; dependencyPaths: readonly string[]; scopeKey?: string; } export interface ClientRpcInFlightEntry { promise: Promise; dependencyPaths: readonly string[]; epoch: number; scopeKey?: string; } export interface GetFileExportTextRpcResponse { text: string; dependencies?: string[]; } export interface ClientRpcValueWithDependenciesResponse { __renounClientRpcDependencies: true; value: Value; dependencies?: string[]; } export interface NormalizedInvalidationPaths { comparablePaths: string[]; runtimePaths: string[]; } export declare const CLIENT_CACHED_RPC_METHODS: Set; export declare function toClientRpcCacheKey(method: ClientCachedRpcMethod, params: unknown): string; export declare function rememberWorkspaceRootCandidates(params: unknown): void; export declare function collectClientRpcDependencyPaths(method: ClientCachedRpcMethod, params: unknown): string[]; export declare function collectClientRpcResponseDependencyPaths(method: ClientCachedRpcMethod, params: unknown, value: unknown): string[]; export declare function isClientRpcValueWithDependenciesResponse(value: unknown): value is ClientRpcValueWithDependenciesResponse; export declare function toClientRpcResponseValue(value: Value | ClientRpcValueWithDependenciesResponse): Value; export declare function toGetFileExportTextRpcValueText(value: unknown): string; export declare function shouldBypassClientRpcCache(method: ClientCachedRpcMethod, params: unknown, consumeRefreshNotifications: boolean): boolean; export declare function pruneExpiredClientRpcCacheEntries(now?: number): void; export declare function readClientRpcCacheEntry(cacheKey: string): ClientRpcCacheEntry | undefined; export declare function setClientRpcCacheEntry(cacheKey: string, entry: ClientRpcCacheEntry): void; export declare function trimClientRpcCache(): void; export declare function getClientRpcInFlightEntry(cacheKey: string): ClientRpcInFlightEntry | undefined; export declare function setClientRpcInFlightEntry(cacheKey: string, entry: ClientRpcInFlightEntry): void; export declare function deleteClientRpcInFlightEntry(cacheKey: string): void; export declare function deleteClientRpcInFlightEntryIfPromise(cacheKey: string, promise: Promise): void; export declare function getClientRpcInvalidationEpoch(): number; export declare function setClientRpcInvalidationEpoch(epoch: number): void; export declare function normalizeInvalidationPaths(paths: Iterable): NormalizedInvalidationPaths; export declare function invalidateClientRpcCacheByNormalizedPaths(normalizedPaths: readonly string[], invalidationScopeKey?: string): number; export declare function invalidateAllClientRpcCache(invalidationScopeKey?: string): number; export declare function resetClientRpcCacheForRuntimeChange(): number; export declare function collectConservativeRefreshFallbackPaths(): string[]; export declare function clearClientRpcCacheStateForTests(): void;