/** * Detect client type from MCP context * @param {Object} extra - MCP extra context * @returns {string} Detected client type */ export function detectClientType(extra?: Object): string; /** * Get client capabilities for a given client type * @param {string} clientType - Client type * @returns {Object} Client capabilities */ export function getClientCapabilities(clientType: string): Object; /** * Escape special characters for a specific client * @param {string} text - Text to escape * @param {string} clientType - Target client type * @returns {string} Escaped text */ export function escapeForClient(text: string, clientType: string): string; /** * Format JSON for a specific client * @param {any} data - Data to format as JSON * @param {string} clientType - Target client type * @returns {string} Formatted JSON */ export function formatJsonForClient(data: any, clientType: string): string; /** * Format code block for a specific client * @param {string} code - Code content * @param {string} language - Programming language * @param {string} clientType - Target client type * @returns {string} Formatted code block */ export function formatCodeBlockForClient(code: string, language: string, clientType: string): string; /** * Format table for a specific client * @param {Array} headers - Table headers * @param {Array} rows - Table rows * @param {string} clientType - Target client type * @returns {string} Formatted table */ export function formatTableForClient(headers: any[], rows: any[], clientType: string): string; /** * Truncate text to client length limits * @param {string} text - Text to truncate * @param {string} clientType - Target client type * @returns {string} Truncated text */ export function truncateToClientLimit(text: string, clientType: string): string; export namespace ClientType { let CLAUDE_DESKTOP: string; let CLAUDE_CLI: string; let CURSOR: string; let VSCODE: string; let WEB_CLIENT: string; let TERMINAL: string; let UNKNOWN: string; } export namespace ContentType { let TEXT: string; let JSON: string; let CODE: string; let MARKDOWN: string; let TABLE: string; let LIST: string; let ERROR: string; }