import type { ExecutorKind } from "./executors.js"; import { type ActiveTerminalProcess, type TerminalAgentAdapterRegistry, type TerminalControlRef } from "./terminal-agent-adapter.js"; import type { TerminalAgentBridge } from "./terminal-agent-bridge.js"; import type { TerminalControlProvider } from "./terminal-control-provider.js"; import type { TerminalProcessSource } from "./terminal-process-source.js"; export interface TerminalListInventoryEntry { agent?: string; activity_state?: string; durable_activity_reason?: string; durable_activity_state?: string; cwd?: string; id?: string; native_identity_state?: string; screen_reason?: string; screen_state?: string; short_ref?: string; terminal_control?: TerminalControlRef | { target?: string; [field: string]: unknown; }; workspace?: string; [field: string]: unknown; } export interface TerminalListInventoryScan { terminalControlled: TerminalListInventoryEntry[]; summary: { error?: string; [field: string]: unknown; }; } export interface TerminalListInventoryOptions { managedOnly?: boolean; noApprovalScan?: boolean; terminalDebug?: boolean; } export interface TerminalListInventoryPorts { createRegistry(options: Options): TerminalAgentAdapterRegistry; createBridge(options: Options, provider: TerminalControlProvider, registry: TerminalAgentAdapterRegistry): TerminalAgentBridge; createProvider(options: Options): TerminalControlProvider; createProcessSource(options: Options): TerminalProcessSource; projectTerminal(input: { session: ActiveTerminalProcess; activeSessions: ActiveTerminalProcess[]; options: Options; bridge: TerminalAgentBridge; }): Promise; log(level: "info", event: string, fields: Record): void; } /** * Collect one physical process/terminal inventory without consulting Store * ownership or public action policy. Every selected process is projected by * exactly one caller-supplied per-terminal observation operation. */ export declare function collectTerminalListInventory(input: { options: Options; agentFilter?: ExecutorKind; terminalId?: string; ports: TerminalListInventoryPorts; }): Promise;