import { McpServer } from '@modelcontextprotocol/server'; export declare class RubberDuckServer { private stdioHandle?; private httpHandle?; private configManager; private pricingService; private usageService; private guardrailsService?; private providerManager; private enhancedProviderManager?; private conversationManager; private healthMonitor; private mcpClientManager?; private approvalService?; private functionBridge?; private mcpEnabled; private taskManager; constructor(); /** * Create a fresh McpServer with every tool, prompt and UI resource registered. * Cheap and side-effect free: it reuses the services built in the constructor, * so serveStdio may call it more than once per connection (probe + fallback). */ buildMcpServer(): McpServer; private initializeMCPBridge; private toolResult; /** * McpServer validates every tools/call result against the tool's outputSchema, * which a CreateTaskResult (resultType 'task') never satisfies. The SDK has no * hook for this, so wrap its private validator on this instance to let task * results through; the real result is validated by shape when it completes. */ private skipOutputValidationForTasks; /** tasks/get, tasks/cancel and tasks/update; an unknown taskId is -32602 on all three. */ private registerTaskHandlers; /** True when this request's envelope declares the io.modelcontextprotocol/tasks extension. */ private tasksRequested; /** * Create a task, start `work` in the background and return the CreateTaskResult. * The work never sees the finished request's notify, only the task's own signal * and a reporter that surfaces progress as the task's statusMessage and lastUpdatedAt. */ private startToolTask; /** Progress reporter bound to a tool call's progress token (no-op without one). */ private progressFor; private toolErrorResult; /** * Build a Zod enum from configured provider names. * Falls back to z.string() when no providers are configured (z.enum([]) would throw). */ private providerEnum; private registerTools; private registerPrompts; private registerUIResources; private handleAskDuckWithMCP; private handleCompareDucksWithMCP; private handleDuckCouncilWithMCP; private formatEnhancedDuckResponse; start(): Promise; stop(): Promise; } //# sourceMappingURL=server.d.ts.map