/** * Structured error response helpers for MCP tool handlers. * All tool handlers return these formats — never throw to the MCP transport. */ /** Wrap a successful result in MCP tool response format */ export declare function toolResult(data: object): { content: { type: "text"; text: string; }[]; }; /** Wrap an error in MCP tool response format */ export declare function toolError(message: string, code: string): { content: { type: "text"; text: string; }[]; }; /** Twining-specific error with a machine-readable code */ export declare class TwiningError extends Error { code: string; constructor(message: string, code: string); } //# sourceMappingURL=errors.d.ts.map