/** * @license * Copyright 2023 Nuraly, Laabidi Aymen * SPDX-License-Identifier: MIT */ import { ReactiveController, ReactiveControllerHost } from 'lit'; /** * Interface for modal keyboard host element */ export interface ModalKeyboardHost extends ReactiveControllerHost { open: boolean; closable: boolean; closeModal(): void; dispatchEvent(event: Event): boolean; } /** * Controller for handling modal keyboard interactions */ export declare class ModalKeyboardController implements ReactiveController { private host; constructor(host: ModalKeyboardHost); hostConnected(): void; hostDisconnected(): void; private handleKeyDown; private handleTabNavigation; private getFocusableElements; /** * Focus the first focusable element in the modal */ focusFirstElement(): void; /** * Focus the last focusable element in the modal */ focusLastElement(): void; } //# sourceMappingURL=modal-keyboard-controller.d.ts.map