/** * Driving context — which notebook the user is currently viewing, per agent * terminal. Reported by the browser (notebook switch, tab focus, launch); * consumed by agents via `nebula context` (pull) and via a drift notice the * operation route attaches to results (push, at act time — the one channel * an agent cannot miss, so it never has to poll). * * In-memory by design: the browser re-reports on every focus/switch, so * state heals within seconds of a server restart. */ declare class DrivingContext { private byTerminal; setDriving(terminalId: string, notebook: string): void; getDriving(terminalId: string): { notebook: string; at: number; } | null; /** * One-line drift notice when `targetNotebook` differs from what the user is * viewing — once per switch. Operations on the driving notebook re-arm the * notice (so a later switch away notifies again). */ driftNotice(terminalId: string, targetNotebook: string): string | null; clear(): void; } export declare const drivingContext: DrivingContext; export {};