import * as _particle_academy_fancy_auto_common from '@particle-academy/fancy-auto-common'; export { UndoEntry, clearStack, pushUndoEntry, readHistory, redoOne, resetAllUndoStacks, undoOne } from '@particle-academy/fancy-auto-common'; import { T as ToolHost } from '../tool-host-BqJRPr_T.js'; import '../types-ITRQFAir.js'; type UndoToolsOptions = { /** Default agent id when the caller doesn't pass one. */ defaultAgentId?: string; }; /** * ensureUndoToolsRegistered — bridges call this on construction. Safe to * call repeatedly with the same server; subsequent calls are no-ops. */ declare function ensureUndoToolsRegistered(host: ToolHost, options?: UndoToolsOptions): void; /** * registerUndoTools — add agent_undo / agent_redo / agent_history to the * server. Returns a disposer that unregisters all three. */ declare function registerUndoTools(host: ToolHost, options?: UndoToolsOptions): () => void; /** * useUndoStack — minimal React snapshot of an agent's history. Polls every * `intervalMs` (default 500). Use this to render an inline "agent timeline" * in a sidebar or activity panel. No subscription model in v1 — keeping it * simple; bridge mutations are infrequent enough that polling is fine. */ declare function useUndoStack(agentId: string, intervalMs?: number): { history: _particle_academy_fancy_auto_common.UndoEntry[]; refresh: () => void; }; export { type UndoToolsOptions, ensureUndoToolsRegistered, registerUndoTools, useUndoStack };