/** Last non-empty line, without markdown emphasis, for the row text. */ export declare function lastLine(text: string): string | null; /** Whether a finished turn's final text asks the user something. */ export declare function looksLikeQuestion(text: string): boolean; /** The line that asks, for the peek panel: the one before a trailing list, else the last. */ export declare function questionLine(text: string): string | null; /** Numbered choices ("1. foo", "2) bar") ending a question (PK-3). */ export declare function extractChoices(text: string): string[]; /** Text content of an assistant message. */ export declare function messageText(message: { content?: unknown; }): string; export declare function clip(text: string, max?: number): string;