import type { Config } from "../config/loader.js"; export declare function recordTabActivity(targetId: string): void; export declare function lockTab(targetId: string): void; export declare function unlockTab(targetId: string): void; export declare function evaluateTabSemantics(targetId: string, appName?: string): Promise; export interface TabInfo { id: string; title: string; url: string; status: "active" | "idle" | "loading" | "locked" | "alive" | "dead" | "unreachable"; health: "alive" | "dead" | "unreachable"; score: number; } export declare function WeavetabOpen(url: string, config: Config, reuse?: boolean, appName?: string): Promise<{ success: true; tabId: string; url: string; reused?: boolean; }>; export declare function WeavetabSwitch(tabId: string, config: Config, appName?: string): Promise<{ success: boolean; tab_id?: string; title?: string; url?: string; contextSwitchCostMs?: number; error_code?: string; message?: string; }>; export declare function WeavetabList(config: Config, appName?: string): Promise<{ tabs: TabInfo[]; }>; export declare function WeavetabClose(tabId: string, config: Config, force?: boolean, appName?: string): Promise<{ success: true; tab_id: string; }>; /** * Batch close multiple tabs at once — saves multiple round-trips. */ export declare function WeavetabCloseBatch(tabIds: string[], config: Config, force?: boolean, appName?: string): Promise<{ success: true; closed: string[]; skipped: string[]; }>; /** * Consolidate: deduplicate tabs by URL, close duplicates. */ export declare function WeavetabConsolidate(config: Config, appName?: string): Promise<{ success: true; tabs_before: number; tabs_after: number; closed_duplicates: number; }>; /** * Heal: check all tabs for crashed state and reload them. */ export declare function WeavetabHeal(config: Config, appName?: string): Promise<{ success: true; healed: number; tabs_checked: number; health_summary: Record; }>; export interface WindowInfo { windowId: number; state: string; bounds: { left: number; top: number; width: number; height: number; }; focused: boolean; } export declare function weaveWindowList(config: Config, appName?: string): Promise<{ windows: WindowInfo[]; }>; export declare function weaveFocusWindow(windowId: number, config: Config, appName?: string): Promise<{ success: true; windowId: number; }>;