import type { ToolHandler } from '../tools/types.js'; import type { WorkspaceStore } from '../workspace/workspace-store.js'; import type { TraceSink } from '../trace/index.js'; import type { SubagentHandleImpl } from './handle.js'; export interface WorkspaceSubscriptionWiring { subscribeHandler: ToolHandler; bindHandle: (handle: SubagentHandleImpl) => void; } export declare function wireWorkspaceSubscriptions(store: WorkspaceStore | undefined, agentId: string, traceWriter: TraceSink | undefined, provider?: { setSubscribeHandler?: (h: ToolHandler) => void; }): WorkspaceSubscriptionWiring;