import { ControllerBase, type ControllerHost } from './Abstracts/ControllerBase'; /** * FocusTrapController class to handle focus trapping for Lit components. * Restricts focus within the specified Lit component for accessibility support. * * @public */ export declare class FocusTrapController extends ControllerBase { private _focusableElements; private _firstFocusableElement; private _lastFocusableElement; /** * Constructs a new instance of the `FocusTrapController` class. * * @public */ constructor(host: ControllerHost); /** * @public * @override */ hostConnected(): void; /** * @public * @override */ hostDisconnected(): void; /** * Activates focus trapping within the component. * * @public */ activate(): void; /** * Deactivates focus trapping within the component. * * @public */ deactivate(): void; /** * Finds and returns all focusable elements within the host. * * @returns {HTMLElement[]} Array of focusable elements. */ private getFocusableElements; /** * Handles keydown events to trap focus within the component. * * @param {KeyboardEvent} event - The keyboard event to handle. */ private readonly handleKeyDown; } /** * Adds a focus trap controller to the given host. * * @public * @param host The host element. * @returns The focus trap controller instance. */ export declare function addFocusTrapController(host: ControllerHost): FocusTrapController; //# sourceMappingURL=FocusTrapController.d.ts.map