/** User message + following assistant replies until the next user message. */
export declare const AGENT_HISTORY_INITIAL_TURNS = 5;
export declare const AGENT_HISTORY_TURN_PAGE = 5;
export interface ChatTurnRow {
    role: 'user' | 'assistant' | 'system' | string;
}
export declare function splitChatTurns<T extends ChatTurnRow>(messages: T[]): T[][];
export declare function sliceMessagesByTurns<T extends ChatTurnRow>(messages: T[], opts: {
    turnLimit: number;
    turnOffset?: number;
}): {
    messages: T[];
    totalTurns: number;
    hasMoreOlder: boolean;
    loadedTurns: number;
};
