import { ILogService } from '../../log/common/logService';
import { ITelemetryService } from '../../telemetry/common/telemetry';
import { TelemetryData } from '../../telemetry/common/telemetryData';
import { CAPIChatMessage, ChatCompletion } from '../common/openai';
import { FinishedCompletion } from './stream';
export declare function sendEngineMessagesLengthTelemetry(telemetryService: ITelemetryService, messages: CAPIChatMessage[], telemetryData: TelemetryData, isOutput: boolean, logService?: ILogService): void;
export declare function sendEngineMessagesTelemetry(telemetryService: ITelemetryService, messages: CAPIChatMessage[], telemetryData: TelemetryData, isOutput: boolean, logService?: ILogService): void;
export declare function sendResponsesApiCompactionTelemetry(telemetryService: ITelemetryService, properties: {
    outcome: 'compaction_returned' | 'threshold_met_no_compaction';
    headerRequestId: string;
    gitHubRequestId: string;
    model: string;
}, measurements: {
    compactThreshold?: number;
    promptTokens: number;
    totalTokens: number;
}): void;
export declare function prepareChatCompletionForReturn(telemetryService: ITelemetryService, logService: ILogService, c: FinishedCompletion, telemetryData: TelemetryData): ChatCompletion;
//# sourceMappingURL=chatStream.d.ts.map