import { BaseProvider } from './base';
import { TextGenerationParams, TextGenerationResponse, ProviderOptions, ChatCompletionParams } from '../types';
/**
 * DeepSeek提供商特定选项
 */
export interface DeepSeekOptions extends ProviderOptions {
    model?: string;
    enableCacheMonitoring?: boolean;
    maxRetries?: number;
}
/**
 * DeepSeek API缓存使用信息
 */
export interface DeepSeekCacheInfo {
    hitTokens: number;
    missTokens: number;
    hitRate: number;
    estimatedSavings: number;
}
/**
 * DeepSeek API价格常量 (美元/百万token)
 */
export declare const DEEPSEEK_PRICES: {
    'deepseek-chat': {
        inputCacheHit: number;
        inputCacheMiss: number;
        output: number;
    };
    'deepseek-reasoner': {
        inputCacheHit: number;
        inputCacheMiss: number;
        output: number;
    };
};
/**
 * DeepSeek API实现
 * 支持两种主要模型：deepseek-chat（通用对话）和deepseek-reasoner（复杂推理）
 */
export declare class DeepSeekProvider extends BaseProvider {
    readonly name = "DeepSeek";
    private model;
    private enableCacheMonitoring;
    private maxRetries;
    private cacheStats;
    /**
     * 创建DeepSeek提供商实例
     */
    constructor(options?: DeepSeekOptions);
    /**
     * @inheritdoc
     */
    protected getDefaultBaseUrl(): string;
    /**
     * @inheritdoc
     */
    generateText(params: TextGenerationParams): Promise<TextGenerationResponse>;
    /**
     * 聊天完成API - 主要接口
     */
    chatCompletion(params: ChatCompletionParams): Promise<TextGenerationResponse>;
    /**
     * 创建流式响应对象
     */
    private createStreamingChatCompletionResponse;
    /**
     * 创建流式聊天响应
     */
    createStreamingChatCompletion(params: ChatCompletionParams): Promise<ReadableStream<any>>;
    /**
     * 执行链式推理（Chain-of-Thought）
     * 使用deepseek-reasoner模型进行复杂推理任务
     */
    chainOfThought(params: TextGenerationParams): Promise<TextGenerationResponse>;
    /**
     * 强制返回JSON格式
     */
    generateJSON(params: TextGenerationParams): Promise<any>;
    /**
     * 获取当前缓存统计信息
     */
    getCacheStats(): {
        totalRequests: number;
        totalHitTokens: number;
        totalMissTokens: number;
        totalOutputTokens: number;
        hitRate: number;
        estimatedSavings: number;
    };
    /**
     * 重置缓存统计信息
     */
    resetCacheStats(): void;
    /**
     * 根据缓存命中和未命中token数计算缓存信息
     */
    private calculateCacheInfo;
    /**
     * 更新缓存统计信息
     */
    private updateCacheStats;
}
//# sourceMappingURL=deepseek.d.ts.map