import { type CliChatMessage, type CliScriptInput } from './provider-cli-shared.js';
export interface TurnParseScope {
    prompt: string;
    startedAt: number;
    bufferStart: number;
    rawBufferStart: number;
    taskId?: string;
}
export declare function normalizeCliParsedMessages(parsedMessages: any[], _options: {
    scope?: TurnParseScope | null;
    lastOutputAt: number;
    now?: number;
}): CliChatMessage[];
export declare function buildCliParseInput(options: {
    accumulatedBuffer: string;
    accumulatedRawBuffer: string;
    recentOutputBuffer: string;
    terminalScreenText: string;
    workingDir?: string;
    providerSessionId?: string;
    historySessionId?: string;
    baseMessages: CliChatMessage[];
    partialResponse: string;
    isWaitingForResponse?: boolean;
    scope?: TurnParseScope | null;
    runtimeSettings: Record<string, any>;
    spawnAt?: number;
}): CliScriptInput;
export declare function summarizeCliTraceText(text: string, max?: number): string;
export declare function summarizeCliTraceMessages(messages: CliChatMessage[], limit?: number): {
    role: string;
    content: string;
    timestamp?: number;
}[];
export declare function buildCliTraceParseSnapshot(options: {
    accumulatedBuffer: string;
    accumulatedRawBuffer: string;
    responseBuffer: string;
    partialResponse?: string;
    scope?: TurnParseScope | null;
}): Record<string, any>;
