/** * Initialize client detection for MCP server */ export function initializeClientDetection(server: any, transport?: null): Promise; /** * Get current client context */ export function getCurrentClientContext(): import("./client-detection.js").ClientContext | null; /** * Create client-aware tool wrapper */ export function createClientAwareTool(toolName: any, handler: any, complexity?: string): (params: any) => Promise; /** * Client Integration Manager * Orchestrates all client-specific functionality */ export class ClientIntegrationManager { currentClient: import("./client-detection.js").ClientContext | null; responseFormatter: ResponseFormatter | null; behaviorTracker: Map; connectionStats: Map; isInitialized: boolean; /** * Initialize the integration manager with server instance */ initialize(server: any, transport?: null): Promise; /** * Set up server hooks for request/response interception */ setupServerHooks(server: any): void; /** * Set up tool execution hooks */ setupToolExecutionHooks(server: any): void; /** * Set up resource request hooks */ setupResourceHooks(server: any): void; /** * Filter tools based on client capabilities */ filterToolsForClient(tools: any): any; /** * Filter resources based on client capabilities */ filterResourcesForClient(resources: any): any; /** * Adapt tool request based on client limitations */ adaptToolRequest(request: any): any; /** * Format tool response for client */ formatToolResponse(response: any, toolName: any): any; /** * Format resource response for client */ formatResourceResponse(response: any): any; /** * Handle errors with client-appropriate formatting */ handleError(error: any, context: any): any; /** * Track tool call behavior */ trackToolCall(toolName: any, event: any, data?: {}): void; /** * Trigger adaptive configuration updates */ triggerAdaptiveUpdate(clientId: any, behaviorData: any): void; /** * Initialize behavior tracking */ initializeBehaviorTracking(): void; /** * Analyze behavior patterns for insights */ analyzeBehaviorPatterns(): void; /** * Get current client information */ getCurrentClient(): import("./client-detection.js").ClientContext | null; /** * Get integration statistics */ getStats(): { currentClient: { id: any; name: any; sessionId: string; detectionMethod: string; } | null; isInitialized: boolean; behaviorStats: { totalTrackedTools: number; avgErrorRate: number; avgDuration: number; mostUsedTools: never[]; problemTools: never[]; }; responseStats: any; configStats: { totalConfigs: number; totalOverrides: number; adaptiveClients: number; configsByComplexity: { low: number; medium: number; high: number; }; mostOverriddenSettings: [string, any][]; }; }; /** * Get behavior statistics */ getBehaviorStats(): { totalTrackedTools: number; avgErrorRate: number; avgDuration: number; mostUsedTools: never[]; problemTools: never[]; }; /** * Reset tracking data */ reset(): void; } export const clientIntegration: ClientIntegrationManager; declare namespace _default { export { ClientIntegrationManager }; export { clientIntegration }; export { initializeClientDetection }; export { getCurrentClientContext }; export { createClientAwareTool }; } export default _default; import { ResponseFormatter } from './response-formatter.js';