import { LitElement } from 'lit'; import { Attachment, User } from '../../types/comment.types'; /** * Comment composer: a growing textarea with @mention autocomplete and a small * emoji picker. Emits `comment-submit` ({ body }) and `comment-cancel`. * * Mention data is supplied by the consumer via the `getUsers` callback. */ export declare class SfxCommentInput extends LitElement { getUsers?: (query: string) => User[] | Promise; /** Max users listed in the @mention menu. Defaults to 100. */ mentionLimit?: number; onAttach?: (files: File[]) => Attachment[] | Promise; placeholder: string; submitLabel: string; autoFocus: boolean; showCancel: boolean; /** Render the field as focused (highlight ring) without stealing focus — used * to spotlight the composer in "Draw more" mode. */ highlight: boolean; /** Show a "Draw more" button that keeps the draft open for further shapes. */ showDrawMore: boolean; /** Seed text for the composer (e.g. when editing an existing comment). */ initialValue: string; private value; private mentionUsers; private mentionIndex; private mentionActive; private mentionLoading; private emojiOpen; /** Viewport (fixed) coordinates for the emoji popover, computed on open. */ private emojiPos; private attachments; /** Number of files currently being processed by `onAttach` (upload skeletons). */ private pendingAttachments; private textarea?; private fileInput?; private emojiBtnEl?; private emojiPopEl?; private usePopover; private _i18n; /** Caret-relative start index of the active `@token`, if any. */ private mentionStart; private queryToken; static styles: import('lit').CSSResult[]; firstUpdated(): void; disconnectedCallback(): void; updated(): void; private toggleEmoji; private openEmoji; private closeEmoji; /** Close the emoji picker when a pointer goes down outside this composer. */ private onDocPointerDown; private onWindowChange; focusInput(): void; private get canSubmit(); private onInput; private autosize; private detectMention; private runQuery; private closeMention; private applyMention; private onKeydown; private insertEmoji; /** Single delegated click handler for the emoji grid (avoids ~700 listeners). */ private onEmojiPick; private onFilesPicked; private removeAttachment; private submit; private cancel; private drawMore; render(): import('lit-html').TemplateResult<1>; } //# sourceMappingURL=comment-input.d.ts.map