/** * Enhanced tool response creator with automatic formatting * @param {any} data - The data to return * @param {Object} extra - MCP extra context (contains client info) * @param {Object} options - Formatting options * @returns {Object} Enhanced MCP-compliant response */ export function createEnhancedToolResponse(data: any, extra?: Object, options?: Object): Object; /** * Enhanced wrapper for tool handlers with automatic formatting * @param {Function} handler - The async handler function * @param {Object} options - Wrapper options * @returns {Function} Enhanced wrapped handler */ export function wrapEnhancedToolHandler(handler: Function, options?: Object): Function; /** * Create a formatted JSON response * @param {any} data - JSON data * @param {Object} extra - MCP extra context * @param {Object} options - Formatting options * @returns {Object} Formatted JSON response */ export function createJsonResponse(data: any, extra?: Object, options?: Object): Object; /** * Create a formatted code response * @param {string} code - Code content * @param {string} language - Programming language * @param {Object} extra - MCP extra context * @param {Object} options - Formatting options * @returns {Object} Formatted code response */ export function createCodeResponse(code: string, language: string, extra?: Object, options?: Object): Object; /** * Create a formatted table response * @param {Array} headers - Table headers * @param {Array} rows - Table rows * @param {Object} extra - MCP extra context * @param {Object} options - Formatting options * @returns {Object} Formatted table response */ export function createTableResponse(headers: any[], rows: any[], extra?: Object, options?: Object): Object; /** * Create a formatted markdown response * @param {string} markdown - Markdown content * @param {Object} extra - MCP extra context * @param {Object} options - Formatting options * @returns {Object} Formatted markdown response */ export function createMarkdownResponse(markdown: string, extra?: Object, options?: Object): Object; /** * Create a formatted list response * @param {Array} items - List items * @param {Object} extra - MCP extra context * @param {Object} options - Formatting options * @returns {Object} Formatted list response */ export function createListResponse(items: any[], extra?: Object, options?: Object): Object; /** * Enhanced paginated response with client-aware formatting * @param {Array} items - Array of items * @param {Object} extra - MCP extra context * @param {Object} options - Pagination and formatting options * @returns {Object} Enhanced paginated response */ export function createEnhancedPaginatedResponse(items: any[], extra?: Object, options?: Object): Object; /** * Create a client-aware error response * @param {number} code - Error code * @param {string} message - Error message * @param {Object} extra - MCP extra context * @param {any} data - Additional error data * @returns {Object} Enhanced error response */ export function createEnhancedErrorResponse(code: number, message: string, extra?: Object, data?: any): Object; /** * Middleware to automatically enhance existing tool responses * @param {Function} toolFunction - Existing tool function * @param {Object} options - Enhancement options * @returns {Function} Enhanced tool function */ export function enhanceExistingTool(toolFunction: Function, options?: Object): Function; /** * Utility to detect if response needs enhancement * @param {any} response - Response to check * @param {Object} extra - MCP extra context * @returns {boolean} Whether enhancement is beneficial */ export function shouldEnhanceResponse(response: any, extra?: Object): boolean; /** * Batch format multiple responses for consistency * @param {Array} responses - Array of response data * @param {Object} extra - MCP extra context * @param {Object} options - Formatting options * @returns {Array} Array of formatted responses */ export function batchFormatResponses(responses: any[], extra?: Object, options?: Object): any[]; export { createClientAdapter } from "./client-adapters.js"; export { createToolResponse, createErrorResponse, createPaginatedResponse, wrapToolHandler, validateArgs, logToolInvocation, ErrorCodes } from "./mcp-helpers.js"; export { detectClientType, getClientCapabilities, ClientType, ContentType } from "./output-formatter.js";