import { LitElement, nothing } from 'lit'; import { User } from '../../types/comment.types'; /** * @mention autocomplete dropdown. Stateless: the parent (comment-input) owns * the query, the user list, and keyboard navigation; this just renders and * emits `mention-pick` with the chosen user. * * A plain list when only users are listed. Once a group (an entry with * `members`, e.g. a team) is listed, rows are split into a "Teams" section and * a "Users" section (empty sections are skipped). The parent orders groups * first, so the sections follow the same order as keyboard navigation. */ export declare class SfxMentionMenu extends LitElement { users: User[]; activeIndex: number; /** Show skeleton rows while the consumer's `getUsers` promise is pending. */ loading: boolean; /** * Which side of the input the menu opens on. Self-managed: defaults to `top` * (opening upward), but flips to `bottom` when there isn't enough room above * within the nearest scroll container, so items are never clipped. Reflected * so CSS can switch the anchor. */ placement: 'top' | 'bottom'; private _i18n; static styles: import('lit').CSSResult[]; updated(changed: Map): void; /** * Keep the keyboard-active row visible when the list is taller than the * menu. Adjusts only the menu's own scroll (not `scrollIntoView`, which * would also scroll the comments panel behind it). */ private revealActive; /** * Choose `top` vs `bottom` so the menu is never clipped: keep the default * upward placement when it fits above the input, otherwise flip down when the * space below is larger. Measured against the nearest scroll container (the * comments panel), falling back to the viewport. */ private updatePlacement; /** * Bounds of the nearest scrolling/clipping ancestor (crossing shadow * boundaries), or the viewport when there is none. */ private clipBounds; private pick; render(): import('lit-html').TemplateResult<1> | typeof nothing; private renderSection; private renderRows; } //# sourceMappingURL=mention-menu.d.ts.map