import { z } from 'zod'; export declare const HttpProviderConfigSchema: z.ZodObject<{ type: z.ZodDefault>; api_key: z.ZodOptional; base_url: z.ZodString; models: z.ZodArray; default_model: z.ZodString; nickname: z.ZodString; temperature: z.ZodOptional; system_prompt: z.ZodOptional; timeout: z.ZodOptional; max_retries: z.ZodOptional; }, z.core.$strip>; export declare const CLIProviderConfigSchema: z.ZodObject<{ type: z.ZodLiteral<"cli">; cli_type: z.ZodEnum<{ custom: "custom"; claude: "claude"; codex: "codex"; gemini: "gemini"; grok: "grok"; aider: "aider"; }>; cli_command: z.ZodOptional; prompt_delivery: z.ZodOptional>; prompt_flag: z.ZodOptional; output_format: z.ZodOptional>; response_json_path: z.ZodOptional; usage_json_path: z.ZodOptional; cli_args: z.ZodOptional>; process_timeout: z.ZodOptional; working_directory: z.ZodOptional; env_vars: z.ZodOptional>; nickname: z.ZodString; default_model: z.ZodOptional; models: z.ZodOptional>; system_prompt: z.ZodOptional; }, z.core.$strip>; export declare const ProviderConfigSchema: z.ZodPreprocess>; api_key: z.ZodOptional; base_url: z.ZodString; models: z.ZodArray; default_model: z.ZodString; nickname: z.ZodString; temperature: z.ZodOptional; system_prompt: z.ZodOptional; timeout: z.ZodOptional; max_retries: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"cli">; cli_type: z.ZodEnum<{ custom: "custom"; claude: "claude"; codex: "codex"; gemini: "gemini"; grok: "grok"; aider: "aider"; }>; cli_command: z.ZodOptional; prompt_delivery: z.ZodOptional>; prompt_flag: z.ZodOptional; output_format: z.ZodOptional>; response_json_path: z.ZodOptional; usage_json_path: z.ZodOptional; cli_args: z.ZodOptional>; process_timeout: z.ZodOptional; working_directory: z.ZodOptional; env_vars: z.ZodOptional>; nickname: z.ZodString; default_model: z.ZodOptional; models: z.ZodOptional>; system_prompt: z.ZodOptional; }, z.core.$strip>], "type">, unknown>; export declare const MCPServerConfigSchema: z.ZodObject<{ name: z.ZodString; type: z.ZodEnum<{ http: "http"; stdio: "stdio"; }>; command: z.ZodOptional; args: z.ZodOptional>; url: z.ZodOptional; apiKey: z.ZodOptional; enabled: z.ZodDefault; retryAttempts: z.ZodDefault; retryDelay: z.ZodDefault; }, z.core.$strip>; export declare const MCPBridgeConfigSchema: z.ZodObject<{ enabled: z.ZodDefault; approval_mode: z.ZodDefault>; approval_timeout: z.ZodDefault; trusted_tools: z.ZodDefault>; trusted_tools_by_server: z.ZodOptional>>; mcp_servers: z.ZodDefault; command: z.ZodOptional; args: z.ZodOptional>; url: z.ZodOptional; apiKey: z.ZodOptional; enabled: z.ZodDefault; retryAttempts: z.ZodDefault; retryDelay: z.ZodDefault; }, z.core.$strip>>>; max_tool_rounds: z.ZodDefault; }, z.core.$strip>; export declare const ModelPricingSchema: z.ZodObject<{ inputPricePerMillion: z.ZodNumber; outputPricePerMillion: z.ZodNumber; }, z.core.$strip>; export declare const PricingConfigSchema: z.ZodRecord>>; export declare const RateLimiterConfigSchema: z.ZodObject<{ enabled: z.ZodDefault; priority: z.ZodDefault; requests_per_minute: z.ZodDefault; requests_per_hour: z.ZodDefault; per_provider: z.ZodDefault; burst_allowance: z.ZodDefault; }, z.core.$strip>; export declare const TokenLimiterConfigSchema: z.ZodObject<{ enabled: z.ZodDefault; priority: z.ZodDefault; max_input_tokens: z.ZodDefault; max_output_tokens: z.ZodOptional; warn_at_percentage: z.ZodDefault; }, z.core.$strip>; export declare const PatternBlockerConfigSchema: z.ZodObject<{ enabled: z.ZodDefault; priority: z.ZodDefault; blocked_patterns: z.ZodDefault>; blocked_patterns_regex: z.ZodDefault>; case_sensitive: z.ZodDefault; action_on_match: z.ZodDefault>; }, z.core.$strip>; export declare const PIIRedactorConfigSchema: z.ZodObject<{ enabled: z.ZodDefault; priority: z.ZodDefault; detect_emails: z.ZodDefault; detect_phones: z.ZodDefault; detect_ssn: z.ZodDefault; detect_api_keys: z.ZodDefault; detect_credit_cards: z.ZodDefault; detect_ip_addresses: z.ZodDefault; custom_patterns: z.ZodDefault>>; allowlist: z.ZodDefault>; allowlist_domains: z.ZodDefault>; restore_on_response: z.ZodDefault; log_detections: z.ZodDefault; }, z.core.$strip>; export declare const GuardrailsPluginsConfigSchema: z.ZodObject<{ rate_limiter: z.ZodOptional; priority: z.ZodDefault; requests_per_minute: z.ZodDefault; requests_per_hour: z.ZodDefault; per_provider: z.ZodDefault; burst_allowance: z.ZodDefault; }, z.core.$strip>>; token_limiter: z.ZodOptional; priority: z.ZodDefault; max_input_tokens: z.ZodDefault; max_output_tokens: z.ZodOptional; warn_at_percentage: z.ZodDefault; }, z.core.$strip>>; pattern_blocker: z.ZodOptional; priority: z.ZodDefault; blocked_patterns: z.ZodDefault>; blocked_patterns_regex: z.ZodDefault>; case_sensitive: z.ZodDefault; action_on_match: z.ZodDefault>; }, z.core.$strip>>; pii_redactor: z.ZodOptional; priority: z.ZodDefault; detect_emails: z.ZodDefault; detect_phones: z.ZodDefault; detect_ssn: z.ZodDefault; detect_api_keys: z.ZodDefault; detect_credit_cards: z.ZodDefault; detect_ip_addresses: z.ZodDefault; custom_patterns: z.ZodDefault>>; allowlist: z.ZodDefault>; allowlist_domains: z.ZodDefault>; restore_on_response: z.ZodDefault; log_detections: z.ZodDefault; }, z.core.$strip>>; }, z.core.$strip>; export declare const GuardrailsConfigSchema: z.ZodObject<{ enabled: z.ZodDefault; log_violations: z.ZodDefault; log_modifications: z.ZodDefault; fail_open: z.ZodDefault; plugins: z.ZodOptional; priority: z.ZodDefault; requests_per_minute: z.ZodDefault; requests_per_hour: z.ZodDefault; per_provider: z.ZodDefault; burst_allowance: z.ZodDefault; }, z.core.$strip>>; token_limiter: z.ZodOptional; priority: z.ZodDefault; max_input_tokens: z.ZodDefault; max_output_tokens: z.ZodOptional; warn_at_percentage: z.ZodDefault; }, z.core.$strip>>; pattern_blocker: z.ZodOptional; priority: z.ZodDefault; blocked_patterns: z.ZodDefault>; blocked_patterns_regex: z.ZodDefault>; case_sensitive: z.ZodDefault; action_on_match: z.ZodDefault>; }, z.core.$strip>>; pii_redactor: z.ZodOptional; priority: z.ZodDefault; detect_emails: z.ZodDefault; detect_phones: z.ZodDefault; detect_ssn: z.ZodDefault; detect_api_keys: z.ZodDefault; detect_credit_cards: z.ZodDefault; detect_ip_addresses: z.ZodDefault; custom_patterns: z.ZodDefault>>; allowlist: z.ZodDefault>; allowlist_domains: z.ZodDefault>; restore_on_response: z.ZodDefault; log_detections: z.ZodDefault; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>; export declare const TransportConfigSchema: z.ZodObject<{ mode: z.ZodDefault>; host: z.ZodDefault; port: z.ZodDefault; token: z.ZodOptional; allowed_origins: z.ZodDefault>; allowed_hosts: z.ZodDefault>; }, z.core.$strip>; export declare const ConfigSchema: z.ZodObject<{ providers: z.ZodRecord>; api_key: z.ZodOptional; base_url: z.ZodString; models: z.ZodArray; default_model: z.ZodString; nickname: z.ZodString; temperature: z.ZodOptional; system_prompt: z.ZodOptional; timeout: z.ZodOptional; max_retries: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"cli">; cli_type: z.ZodEnum<{ custom: "custom"; claude: "claude"; codex: "codex"; gemini: "gemini"; grok: "grok"; aider: "aider"; }>; cli_command: z.ZodOptional; prompt_delivery: z.ZodOptional>; prompt_flag: z.ZodOptional; output_format: z.ZodOptional>; response_json_path: z.ZodOptional; usage_json_path: z.ZodOptional; cli_args: z.ZodOptional>; process_timeout: z.ZodOptional; working_directory: z.ZodOptional; env_vars: z.ZodOptional>; nickname: z.ZodString; default_model: z.ZodOptional; models: z.ZodOptional>; system_prompt: z.ZodOptional; }, z.core.$strip>], "type">, unknown>>; default_provider: z.ZodOptional; default_temperature: z.ZodDefault; enable_failover: z.ZodDefault; log_level: z.ZodDefault>; mcp_bridge: z.ZodOptional; approval_mode: z.ZodDefault>; approval_timeout: z.ZodDefault; trusted_tools: z.ZodDefault>; trusted_tools_by_server: z.ZodOptional>>; mcp_servers: z.ZodDefault; command: z.ZodOptional; args: z.ZodOptional>; url: z.ZodOptional; apiKey: z.ZodOptional; enabled: z.ZodDefault; retryAttempts: z.ZodDefault; retryDelay: z.ZodDefault; }, z.core.$strip>>>; max_tool_rounds: z.ZodDefault; }, z.core.$strip>>; pricing: z.ZodOptional>>>; guardrails: z.ZodOptional; log_violations: z.ZodDefault; log_modifications: z.ZodDefault; fail_open: z.ZodDefault; plugins: z.ZodOptional; priority: z.ZodDefault; requests_per_minute: z.ZodDefault; requests_per_hour: z.ZodDefault; per_provider: z.ZodDefault; burst_allowance: z.ZodDefault; }, z.core.$strip>>; token_limiter: z.ZodOptional; priority: z.ZodDefault; max_input_tokens: z.ZodDefault; max_output_tokens: z.ZodOptional; warn_at_percentage: z.ZodDefault; }, z.core.$strip>>; pattern_blocker: z.ZodOptional; priority: z.ZodDefault; blocked_patterns: z.ZodDefault>; blocked_patterns_regex: z.ZodDefault>; case_sensitive: z.ZodDefault; action_on_match: z.ZodDefault>; }, z.core.$strip>>; pii_redactor: z.ZodOptional; priority: z.ZodDefault; detect_emails: z.ZodDefault; detect_phones: z.ZodDefault; detect_ssn: z.ZodDefault; detect_api_keys: z.ZodDefault; detect_credit_cards: z.ZodDefault; detect_ip_addresses: z.ZodDefault; custom_patterns: z.ZodDefault>>; allowlist: z.ZodDefault>; allowlist_domains: z.ZodDefault>; restore_on_response: z.ZodDefault; log_detections: z.ZodDefault; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>>; transport: z.ZodOptional>; host: z.ZodDefault; port: z.ZodDefault; token: z.ZodOptional; allowed_origins: z.ZodDefault>; allowed_hosts: z.ZodDefault>; }, z.core.$strip>>; }, z.core.$strip>; export type HttpProviderConfig = z.infer; export type CLIProviderConfig = z.infer; export type ProviderConfig = HttpProviderConfig | CLIProviderConfig; export type MCPServerConfig = z.infer; export type MCPBridgeConfig = z.infer; export type ModelPricing = z.infer; export type PricingConfig = z.infer; export type RateLimiterConfig = z.infer; export type TokenLimiterConfig = z.infer; export type PatternBlockerConfig = z.infer; export type PIIRedactorConfig = z.infer; export type GuardrailsPluginsConfig = z.infer; export type GuardrailsConfig = z.infer; export type TransportConfig = z.infer; export type Config = z.infer; export interface ImageInput { data?: string; url?: string; mimeType?: string; } export type TextContentPart = { type: 'text'; text: string; }; export type ImageContentPartBase64 = { type: 'image'; data: string; mimeType: string; }; export type ImageContentPartUrl = { type: 'image'; url: string; mimeType?: string; }; export type ImageContentPart = ImageContentPartBase64 | ImageContentPartUrl; export type ContentPart = TextContentPart | ImageContentPart; export type MessageContent = string | ContentPart[]; /** Extract plain text from MessageContent, regardless of format */ export declare function getTextContent(content: MessageContent): string; /** Check if content contains images */ export declare function hasImages(content: MessageContent): boolean; /** Build a MessageContent from text + optional images */ export declare function buildContent(text: string, images?: ImageInput[]): MessageContent; export interface ConversationMessage { role: 'system' | 'user' | 'assistant'; content: MessageContent; timestamp: Date; provider?: string; } export interface Conversation { id: string; messages: ConversationMessage[]; provider: string; createdAt: Date; updatedAt: Date; } export interface ProviderHealth { provider: string; healthy: boolean; latency?: number; lastCheck: Date; error?: string; } export interface DuckResponse { provider: string; nickname: string; model: string; content: string; usage?: { prompt_tokens: number; completion_tokens: number; total_tokens: number; promptTokens?: number; completionTokens?: number; totalTokens?: number; }; latency: number; /** Set when the provider call failed; `content` then carries a human-readable error. */ error?: string; } export interface VoteResult { voter: string; nickname: string; choice: string; confidence: number; reasoning: string; rawResponse: string; /** Set when the voter's provider call failed; such votes are never counted. */ error?: string; } export interface AggregatedVote { question: string; options: string[]; winner: string | null; isTie: boolean; tally: Record; confidenceByOption: Record; votes: VoteResult[]; totalVoters: number; validVotes: number; consensusLevel: 'unanimous' | 'majority' | 'plurality' | 'split' | 'none'; } export interface JudgeRanking { provider: string; nickname: string; rank: number; score: number; justification: string; } export interface JudgeEvaluation { judge: string; judgeNickname: string; prompt: string; criteria: string[]; rankings: JudgeRanking[]; criteriaScores: Record>; summary: string; rawResponse: string; } export interface IterationRound { round: number; provider: string; nickname: string; role: 'generator' | 'critic' | 'refiner'; content: string; timestamp: Date; } export interface IterationResult { prompt: string; mode: 'refine' | 'critique-improve'; providers: [string, string]; rounds: IterationRound[]; finalResponse: string; totalIterations: number; converged: boolean; } export type DebateFormat = 'oxford' | 'socratic' | 'adversarial'; export type DebatePosition = 'pro' | 'con' | 'neutral'; export interface DebateParticipant { provider: string; nickname: string; position: DebatePosition; } export interface DebateArgument { round: number; provider: string; nickname: string; position: DebatePosition; content: string; timestamp: Date; /** Set when this participant's call failed; failed arguments are excluded from later prompts. */ error?: string; } export interface DebateResult { topic: string; format: DebateFormat; participants: DebateParticipant[]; rounds: DebateArgument[][]; synthesis: string; synthesizer: string; totalRounds: number; } export interface ModelUsageStats { requests: number; promptTokens: number; completionTokens: number; errors: number; /** Only set in aggregated stats results when pricing is known (never persisted). */ estimatedCostUSD?: number; } export interface DailyUsage { [provider: string]: { [model: string]: ModelUsageStats; }; } export interface UsageData { version: number; daily: Record; } export type UsageTimePeriod = 'today' | '7d' | '30d' | 'all'; export interface UsageStatsResult { period: UsageTimePeriod; startDate: string; endDate: string; usage: DailyUsage; totals: { requests: number; promptTokens: number; completionTokens: number; errors: number; estimatedCostUSD?: number; }; costByProvider?: Record; } //# sourceMappingURL=types.d.ts.map