import { WorkbenchHostExternalStateSource, WorkbenchHostExternalStateLookupInput } from '@tutti-os/workbench-surface'; import { AgentGuiWorkbenchNodeState, AgentGuiWorkbenchState, AgentGuiWorkbenchWorkspaceState, AgentGuiWorkbenchProvider } from './types.js'; type AgentGuiWorkbenchStateLookupRequest = Pick & Partial>; declare function createDefaultAgentGuiWorkbenchNodeState(provider?: AgentGuiWorkbenchProvider): AgentGuiWorkbenchNodeState; declare function normalizeAgentGuiWorkbenchState(state: unknown): AgentGuiWorkbenchState; /** * One-time persisted-state reader for snapshots written before agentTargetId * became the canonical AgentGUI selection key. Current-state normalizers stay * strict so live callers cannot continue using the removed alias. */ declare function migrateLegacyAgentGuiWorkbenchState(state: unknown): unknown; declare function projectAgentGuiWorkbenchState(state: AgentGuiWorkbenchNodeState): AgentGuiWorkbenchState; declare function areAgentGuiWorkbenchStatesEqual(left: AgentGuiWorkbenchState, right: AgentGuiWorkbenchState): boolean; declare function normalizeAgentGuiWorkbenchNodeState(state: unknown, fallbackProvider?: AgentGuiWorkbenchProvider): AgentGuiWorkbenchNodeState; declare function areAgentGuiWorkbenchNodeStatesEqual(left: AgentGuiWorkbenchNodeState, right: AgentGuiWorkbenchNodeState): boolean; declare function createAgentGuiWorkbenchNodeStateSource(input: { typeId?: string; workspaceId: string; }): { externalStateSource: WorkbenchHostExternalStateSource; readNodeState: (request: AgentGuiWorkbenchStateLookupRequest) => AgentGuiWorkbenchState | null; writeNodeState: (request: AgentGuiWorkbenchStateLookupRequest & { state: AgentGuiWorkbenchState; }) => void; /** * Returns the launch instanceId of an open node currently showing the given * agent session, or null when none is found. Used to focus an existing * conversation instead of launching a duplicate node. */ findInstanceIdByAgentSessionId: (agentSessionId: string) => string | null; }; export { areAgentGuiWorkbenchNodeStatesEqual, areAgentGuiWorkbenchStatesEqual, createAgentGuiWorkbenchNodeStateSource, createDefaultAgentGuiWorkbenchNodeState, migrateLegacyAgentGuiWorkbenchState, normalizeAgentGuiWorkbenchNodeState, normalizeAgentGuiWorkbenchState, projectAgentGuiWorkbenchState };