/** bubble decorations: reply quotes, forwarded headers, reaction pills, and message grouping. */ import type { Block } from "./text.js"; import type { Palette } from "./theme.js"; import type { ChatMessage, ForwardHeader, Reaction, ReplyQuote } from "./types.js"; /** telegram groups consecutive same-sender messages: only the last bubble gets the tail + avatar, only the first shows the name label, and the vertical gap between them shrinks. */ export interface GroupInfo { first: boolean; last: boolean; } export declare function computeGroups(messages: ChatMessage[]): GroupInfo[]; /** the reply-to quote block — a coloured accent bar + quoted name/text, rendered above the content. */ export declare function replyBlock(reply: ReplyQuote, maxW: number, p: Palette): Block; /** the "Forwarded from …" header line, rendered above the content. */ export declare function forwardBlock(fwd: ForwardHeader, p: Palette): Block; /** a row of reaction pills under the bubble; `chosen` reactions render filled in the accent colour. */ export declare function reactionsRow(x: number, y: number, reactions: Reaction[], p: Palette): { s: string; h: number; }; //# sourceMappingURL=bubble.d.ts.map