import type { AppContext } from '../context.js'; export interface HandlerAgent { /** Current agent or null if not registered */ current: { id: string; name: string; } | null; /** Set the current agent (used by register) */ setCurrent(agent: { id: string; name: string; } | null): void; /** Get current agent or throw if not registered */ require(): { id: string; name: string; }; /** Resolve agent by name or ID, throw NotFoundError if missing */ resolve(nameOrId: string): { id: string; name: string; }; /** Resolve channel by name, throw NotFoundError if missing */ resolveChannel(name: string): string; /** Assert agent is a member of the channel */ requireChannelMember(channelId: string, agentId: string): void; /** Start auto-heartbeat timer */ startHeartbeat(): void; /** Stop auto-heartbeat timer */ stopHeartbeat(): void; } export type ToolHandlerFn = (ctx: AppContext, args: Record, agent: HandlerAgent) => unknown; export declare const toolHandlers: Record; //# sourceMappingURL=mcp-handlers.d.ts.map