/** * Middleware wrapper for tools with client adaptation */ export function adaptTool(toolName: any, toolHandler: any, complexity?: string): (params: any) => Promise; /** * Register adaptation rule */ export function registerAdaptationRule(clientId: any, rule: any): void; export namespace ToolComplexity { let LOW: string; let MEDIUM: string; let HIGH: string; } export namespace ResponseFormats { let MINIMAL: string; let CONCISE: string; let STRUCTURED: string; let DEVELOPER: string; } /** * Client Adaptation Manager */ export class ClientAdaptationManager { clientContext: any; toolRegistry: Map; adaptationRules: Map; behaviorTracker: Map; /** * Set the current client context */ setClientContext(clientContext: any): void; /** * Register a tool with complexity metadata */ registerTool(toolName: any, toolDefinition: any, complexity?: string): void; /** * Get filtered tools based on client capabilities */ getFilteredTools(): any[]; /** * Adapt tool parameters based on client limitations */ adaptToolParameters(toolName: any, parameters: any): any; /** * Format response based on client preferences */ formatResponse(data: any, toolName?: null, isError?: boolean): any; /** * Apply output format transformation */ applyOutputFormat(data: any, format: any, toolName: any): any; /** * Minimal formatting - essential data only */ formatMinimal(data: any): any; /** * Concise formatting - brief but complete */ formatConcise(data: any): string; /** * Developer formatting - technical details */ formatDeveloper(data: any, toolName: any): string; /** * Structured formatting - well-organized output */ formatStructured(data: any): any; /** * Apply escape character handling */ applyEscapeHandling(data: any, escapeType: any): string; /** * Limit response size with truncation */ limitResponseSize(data: any, maxSize: any): any; /** * Get maximum pagination limit for client */ getMaxPaginationLimit(): 10 | 25 | 100 | 50; /** * Simplify parameters for low-capability clients */ simplifyParameters(params: any): {}; /** * Extract essential data for minimal formatting */ extractEssential(item: any): any; /** * Summarize item for concise formatting */ summarizeItem(item: any): string; /** * Track tool usage for adaptive behavior */ trackToolUsage(toolName: any, success: any, duration: any): void; /** * Get adaptation statistics */ getAdaptationStats(): { client: any; sessionId: any; detectionMethod: any; capabilities: any; tools: { total: number; filtered: number; usage: {}; }; } | null; } export const adaptationManager: ClientAdaptationManager; declare namespace _default { export { ClientAdaptationManager }; export { adaptationManager }; export { adaptTool }; export { ToolComplexity }; export { ResponseFormats }; export { registerAdaptationRule }; } export default _default;