import { BaseAIProvider } from './base';
import { ChatMessage, StreamEvent, TestConnectionResult } from '../types';
interface GeminiContent {
    parts: Array<{
        text?: string;
    }>;
    role: 'user' | 'model';
}
interface GeminiRequest {
    contents: GeminiContent[];
    generationConfig: {
        maxOutputTokens?: number;
        temperature?: number;
        topP?: number;
        topK?: number;
    };
    systemInstruction?: {
        parts: Array<{
            text: string;
        }>;
    };
}
export declare class GeminiProvider extends BaseAIProvider {
    /**
     * 发送聊天消息（流式输出）
     */
    chat(messages: ChatMessage[], onEvent: (event: StreamEvent) => void, signal?: AbortSignal): Promise<void>;
    /**
     * 测试连接
     */
    testConnection(): Promise<TestConnectionResult>;
    /**
     * 构建流式请求URL
     */
    private buildStreamUrl;
    /**
     * 构建非流式请求URL
     */
    private buildGenerateContentUrl;
    /**
     * 构建请求头
     */
    protected buildHeaders(): Record<string, string>;
    /**
     * 构建请求体
     */
    protected buildRequestBody(messages: ChatMessage[]): GeminiRequest;
    /**
     * 解析流式响应
     */
    protected parseStreamChunk(chunk: string, onEvent: (event: StreamEvent) => void): void;
}
export {};
//# sourceMappingURL=gemini.d.ts.map