import { type ReactiveController, type ReactiveControllerHost } from "lit"; type Getter = () => T; type RootNode = ShadowRoot | Document | HTMLElement; export type SelectionElement = ReactiveControllerHost & T; export type SelectionProperties = { /** * The class boolean field member represents selected state. */ member: keyof T; /** * The selection mode. */ mode: "single" | "multiple"; /** * Determines if selection is required. */ required?: boolean; }; export type SelectionControllerConfig = { tagName: keyof HTMLElementTagNameMap; resolveParentTarget: (rootNode: RootNode) => HTMLElement | null; selectionProperties: SelectionProperties | Getter>; }; declare class SelectionController implements ReactiveController { protected readonly _host: SelectionElement; private readonly _hostTagName; private readonly _selectionPropertiesResolver; private readonly _resolveParentTarget; constructor(host: SelectionElement, config: SelectionControllerConfig); protected get _elements(): [SelectionElement, ...SelectionElement[]]; private get _rootNode(); protected get _parentTarget(): HTMLElement | null; protected get _siblings(): SelectionElement[]; protected get _selectionProperties(): SelectionProperties; hostConnected(): void; hostDisconnected(): void; hostUpdate(): void; hostUpdated(): void; /** * Should be called whenever the host's selection property changes * synchronously. */ handleSelectionChange(): void; private _applySelectionProperties; handleClick(event: MouseEvent): Promise; handleKeyDown(event: KeyboardEvent): Promise; } export default SelectionController;