export interface TicketEntry { node_id: string; name: string; cwd: string; count: number; } /** Drop the cached walk. Callers that swap the canvas home out from under a live * process (tests, and any in-process home switch) must call this: the cache is * keyed only by time, so a stale window would otherwise serve the old home's * counts. */ export declare function invalidateTicketCounts(): void; /** Count pending tickets asked by one node. */ export declare function countTickets(nodeId: string): number; /** Pending tickets for every reachable asking node, including the root. */ export declare function pendingTicketsForView(rootId: string): TicketEntry[]; /** Per-node pending ticket counts for an explicit node set. */ export declare function ticketCountsForNodes(ids: string[]): Record; /** Pending tickets across the entire canvas, attributed to asking nodes. */ export declare function ticketsAcrossCanvas(): TicketEntry[];