import type { Message, MessagePart } from '../../types/api';
export declare function getMessagePartText(part: MessagePart): string;
export declare function isCompactSlashCommand(content: string): boolean;
export declare function getUserMessageText(message: Message | undefined): string;
export declare function isCompactionSummaryText(text: string): boolean;
export declare function summarizeCompactionText(text: string): string;
/**
 * Returns true when a text part should use the compact compaction summary box.
 */
export declare function shouldRenderCompactionSummaryBox(args: {
    compact?: boolean;
    part: MessagePart;
    previousUserMessage?: Message;
}): boolean;
//# sourceMappingURL=compactionSummary.d.ts.map