import type { StageRecorder } from '../../../../format-adapters/index.js';
import type { JsonObject } from '../../../../types/json.js';
import type { ChatReasoningMode } from '../../../../../shared/openai-finalizer.js';
import type { ProcessedRequest } from '../../../../types/standardized.js';
export interface RespProcessStage2FinalizeOptions {
    payload: JsonObject;
    entryEndpoint: string;
    requestId: string;
    wantsStream: boolean;
    reasoningMode: ChatReasoningMode;
    stageRecorder?: StageRecorder;
}
export interface RespProcessStage2FinalizeResult {
    finalizedPayload: JsonObject;
    processedRequest: ProcessedRequest;
}
export declare function runRespProcessStage2Finalize(options: RespProcessStage2FinalizeOptions): Promise<RespProcessStage2FinalizeResult>;
