import { type McpGraphReadSurface } from './McpToolCatalog.ts';
import { type McpJsonValue } from './McpJsonValue.ts';
export { listMcpTools, type McpGraphReadSurface, } from './McpToolCatalog.ts';
type McpRequestId = string | number | null;
export type McpResponse = {
    readonly jsonrpc: '2.0';
    readonly id: McpRequestId;
    readonly result: McpJsonValue;
} | {
    readonly jsonrpc: '2.0';
    readonly id: McpRequestId;
    readonly error: {
        readonly code: number;
        readonly message: string;
        readonly data?: McpJsonValue;
    };
};
type McpOptions = {
    readonly serverVersion: string;
};
export declare function mcpParseError(): McpResponse;
export declare function handleMcpMessage(graph: McpGraphReadSurface, message: unknown, options: McpOptions): Promise<McpResponse | null>;
