import { ToolResult } from './types.js';
/**
 * MCP Response format expected by the SDK
 */
export interface MCPResponse {
    [key: string]: unknown;
    content: Array<{
        type: string;
        text: string;
    }>;
    structured?: any;
}
/**
 * Simplified MCP Tool Response Schema
 */
export interface MCPToolResponse<T = any> {
    status: 'success' | 'error' | 'partial';
    message: string;
    data?: T;
    metadata?: {
        operation: string;
        timestamp: string;
        dataType?: string;
        relatedTools?: string[];
    };
    error?: {
        code: string;
        category: 'validation' | 'system' | 'permission' | 'resource' | 'execution';
        details?: any;
        suggestions?: string[];
    };
    warnings?: string[];
}
/**
 * Convert our internal ToolResult format to MCP SDK format with new schema
 */
export declare function convertToolResultToMCP<T>(result: ToolResult<T>, operation?: string): MCPResponse;
/**
 * Create a simple MCP response with just text
 */
export declare function createMCPTextResponse(text: string): MCPResponse;
/**
 * Create an MCP error response
 */
export declare function createMCPErrorResponse(message: string, details?: any): MCPResponse;
/**
 * Helper to create a standardized success response
 */
export declare function createMCPSuccessResponse<T>(message: string, data: T, metadata: {
    operation: string;
    dataType?: string;
    relatedTools?: string[];
}): MCPToolResponse<T>;
/**
 * Helper to create a standardized error response
 */
export declare function createMCPErrorResponseV2(message: string, error: {
    code: string;
    category: 'validation' | 'system' | 'permission' | 'resource' | 'execution';
    details?: any;
    suggestions?: string[];
}, operation: string): MCPToolResponse;
//# sourceMappingURL=mcp-adapter.d.ts.map