import { AnchorBase } from '../anchor-base'; declare global { interface HTMLElementTagNameMap { 'nimble-anchor-tree-item': AnchorTreeItem; } } /** * A nimble-styled anchor tree item */ export declare class AnchorTreeItem extends AnchorBase { /** * When true, the control will appear selected by user interaction. * @public * @remarks * HTML Attribute: selected */ selected: boolean; /** * When true, the control will be immutable by user interaction. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled | disabled HTML attribute} for more information. * @public * @remarks * HTML Attribute: disabled */ disabled: boolean; /** * Whether the tree is nested * * @public */ isNestedItem(): boolean; /** * Handle focus events * * @internal */ handleFocus(_e: FocusEvent): void; /** * Handle blur events * * @internal */ handleBlur(_e: FocusEvent): void; /** * @internal */ keydownHandler(e: KeyboardEvent): boolean; /** * Activating the anchor by pressing the Enter key results in a click event. * This bubbles up to the Nimble tree-view's click handler, causing the tree item * to be selected. We don't want that for anchor tree items. We'll stop propagation * of the event to prevent that. * @internal */ clickHandler(e: MouseEvent): boolean; protected selectedChanged(_prev: boolean | undefined, _next: boolean): void; } export declare const anchorTreeItemTag = "nimble-anchor-tree-item";