import { TemplateResult } from 'lit'; import { BahtElement } from '../base.js'; export interface CommentEntry { id: string | number; author: string; /** Already formatted for display ("1 Nov 2026, 14:44"). */ time?: string; body: string; /** An internal note (work note): shown marked, never to the requester. */ internal?: boolean; } /** * A conversation on a record: the thread, oldest first, and a composer. With * `allow-internal` the composer offers "internal note" next to a normal * comment (ServiceNow's work notes vs additional comments). Submitting emits * `baht-submit` with `{ body, internal }` and clears the box; the host stores * it and feeds the new `entries` back. * * * el.entries = [{ id: 1, author: 'Bob', time: '14:44', body: 'Still broken' }]; */ export declare class BahtComments extends BahtElement { entries: CommentEntry[]; allowInternal: boolean; placeholder: string; internalLabel: string; emptyMessage: string; busy: boolean; private draft; private internal; private readonly onInternal; private readonly onDraft; private readonly onKeydown; private readonly onPost; private submit; protected render(): TemplateResult; }