import { type LitElement } from "lit"; import type { MixinBase, MixinReturn } from "./types.ts"; /** * A property symbol that indicates whether or not a `Focusable` element can be * focused. */ export declare const isFocusable: unique symbol; export interface Focusable { /** * Whether or not the element can be focused. Defaults to true. Set to false * to disable focusing (unless a user has set a `tabindex`). */ [isFocusable]: boolean; } /** * Mixes in focusable functionality for a class. * * Elements can enable and disable their focusability with the `isFocusable` * symbol property. Changing `tabIndex` will trigger a lit render, meaning * `this.tabIndex` can be used in template expressions. * * This mixin will preserve externally-set tabindices. If an element turns off * focusability, but a user sets `tabindex="0"`, it will still be focusable. * * To remove user overrides and restore focusability control to the element, * remove the `tabindex` attribute. * * @param base The class to mix functionality into. */ declare const withFocusable: >(base: T) => MixinReturn; export default withFocusable;