/**
 * Utility for processing historical messages from GraphQL/API
 * into display-ready format
 */
import { type HistoricalMessage, type PendingToolCallData, type ProcessedMessage, type MessageProcessingOptions } from '../types';
/**
 * Result type for historical message processing
 */
export interface ProcessHistoricalMessagesResult {
    messages: ProcessedMessage[];
    escalatedApprovals: Map<string, {
        command: string;
        explanation?: string;
        approvalType: string;
        toolCalls?: PendingToolCallData[];
    }>;
}
/**
 * Process an array of historical messages into display-ready format
 */
export declare function processHistoricalMessages(messages: HistoricalMessage[], options?: MessageProcessingOptions): ProcessHistoricalMessagesResult;
/**
 * Extract error messages from historical messages
 * Returns a separate array of error messages that should be displayed
 */
export declare function extractErrorMessages(messages: HistoricalMessage[], options?: MessageProcessingOptions): ProcessedMessage[];
/**
 * Process messages and include error messages in the correct order
 */
export declare function processHistoricalMessagesWithErrors(messages: HistoricalMessage[], options?: MessageProcessingOptions): ProcessHistoricalMessagesResult;
//# sourceMappingURL=process-historical-messages.d.ts.map