UNPKG

browser-debugger-cli

Version:

DevTools telemetry in your terminal. For humans and agents. Direct WebSocket to Chrome's debugging port.

46 lines 1.7 kB
/** * Query result cache for index-based element access. * * This module provides backward-compatible functions that delegate to * QueryCacheManager. New code should use QueryCacheManager directly. * * @see QueryCacheManager for the centralized implementation */ import { type QueryCacheValidation } from '../session/QueryCacheManager.js'; import type { DomQueryResult } from '../types/dom.js'; export type { QueryCacheValidation }; /** * Store query results for index-based access. * * @param result - DOM query result to cache * @deprecated Use QueryCacheManager.getInstance().set() instead */ export declare function setSessionQueryCache(result: DomQueryResult): Promise<void>; /** * Retrieve cached query results. * * @returns Cached query result or null if no cache exists * @deprecated Use QueryCacheManager.getInstance().getRaw() instead */ export declare function getSessionQueryCache(): Promise<DomQueryResult | null>; /** * Clear the query cache. * * @deprecated Use QueryCacheManager.getInstance().clear() instead */ export declare function clearSessionQueryCache(): Promise<void>; /** * Get current navigation ID from the daemon. * * @returns Current navigation ID or null if unavailable * @deprecated Use QueryCacheManager.getInstance().getCurrentNavigationId() instead */ export declare function getCurrentNavigationId(): Promise<number | null>; /** * Validate query cache against current navigation state. * * @returns Validation result with cache and error info * @deprecated Use QueryCacheManager.getInstance().validate() instead */ export declare function validateQueryCache(): Promise<QueryCacheValidation>; //# sourceMappingURL=queryCache.d.ts.map