/** * Weavetab — state/cache.ts * Per-tab action map and box model cache with mutation-based TTL invalidation. * Weavetab by fy2ne */ import CDP from "chrome-remote-interface"; import type { ActionMap } from "../cdp/walker.js"; export declare function getCachedActionMap(targetId: string, currentUrl?: string): ActionMap | null; export declare function getRawCachedActionMap(targetId: string, currentUrl?: string): ActionMap | null; export declare function cacheActionMap(targetId: string, map: ActionMap): void; export declare function cacheBoxModel(targetId: string, backendNodeId: number, boxModel: any): void; export declare function getCachedBoxModel(targetId: string, backendNodeId: number): any | null; export declare function cacheNode(targetId: string, backendNodeId: number, node: any): void; export declare function getCachedNode(targetId: string, backendNodeId: number): any | null; export declare function clearTabCache(targetId: string): void; export declare function registerMutationListener(session: CDP.Client, targetId: string): void;