export interface HttpRequest { body: Record; } export interface HttpResponse { status(code: number): HttpResponse; json(data: unknown): void; setHeader(name: string, value: string): void; write(chunk: string): void; end(): void; } type Request = HttpRequest; type Response = HttpResponse; import type { AgentConfig, ToolContext } from "../shared/types.js"; export interface AgentDefinition { id: string; config: Omit; toolContext: (req: Request) => ToolContext; } export declare function registerAgent(agent: AgentDefinition): void; export declare function getAgent(agentId: string): AgentDefinition | undefined; export declare function createRPCHandler(): (req: Request, res: Response) => Promise; export {}; //# sourceMappingURL=rpc.d.ts.map