/**
 * CodeWhisperer 向后兼容客户端
 * 保持现有 API 接口不变，内部使用增强功能
 * 确保平滑升级和无缝迁移
 * 项目所有者: Jason Zhang
 */
import { EnhancedCodeWhispererClient } from './enhanced-client';
import { LegacyCodeWhispererConfig } from './config-migration';
import { ICodeWhispererClient } from './client-interface';
import { AnthropicRequest } from './types';
import { KiroAuthConfig } from './enhanced-auth-config';
export declare class BackwardCompatibleCodeWhispererClient implements ICodeWhispererClient {
    private enhancedClient;
    private migrationApplied;
    constructor(legacyConfig?: LegacyCodeWhispererConfig);
    /**
     * 处理流式请求 - 保持原有接口
     */
    handleStreamRequest(anthropicReq: AnthropicRequest, writeSSE: (event: string, data: any) => void, onError: (message: string, error: Error) => void): Promise<void>;
    /**
     * 处理非流式请求 - 保持原有接口
     */
    handleNonStreamRequest(anthropicReq: AnthropicRequest): Promise<any>;
    /**
     * 健康检查 - 保持原有接口
     */
    healthCheck(): Promise<{
        healthy: boolean;
        type: string;
        message?: string;
    }>;
    /**
     * 获取客户端类型 - 保持原有接口
     */
    getClientType(): 'buffered' | 'realtime';
    /**
     * 更新配置 - 支持传统配置格式
     */
    updateLegacyConfig(legacyConfig: LegacyCodeWhispererConfig): void;
    /**
     * 更新增强配置 - 支持新配置格式
     */
    updateEnhancedConfig(enhancedConfig: Partial<KiroAuthConfig>): void;
    /**
     * 获取当前配置（增强格式）
     */
    getEnhancedConfig(): KiroAuthConfig;
    /**
     * 获取迁移状态
     */
    getMigrationStatus(): {
        migrationApplied: boolean;
        clientType: string;
        configValid: boolean;
    };
    /**
     * 重置为默认配置
     */
    resetToDefaults(): void;
    /**
     * 诊断配置问题
     */
    diagnoseConfiguration(): {
        status: 'healthy' | 'warning' | 'error';
        issues: string[];
        recommendations: string[];
    };
    /**
     * 获取内部增强客户端（用于高级用例）
     */
    getEnhancedClient(): EnhancedCodeWhispererClient;
}
//# sourceMappingURL=backward-compatible-client.d.ts.map