import { type KeyboardEvent, type ModifierKey } from "react"; /** * @internal */ export interface IHandleActionOptions { shouldPreventDefault?: boolean; shouldStopPropagation?: boolean; } /** * @internal */ export declare const modifierNegator: "!"; /** * @internal */ export type IModifier = ModifierKey | `${typeof modifierNegator}${ModifierKey}`; /** * @internal */ export declare const makeKeyboardNavigation: ; }>(actionKeysMap: ActionKeysMap) => (handlers: { [action in keyof ActionKeysMap | "onUnhandledKeyDown"]?: (event: T) => void; }, options?: IHandleActionOptions) => (event: T) => void; /** * @internal */ export declare const makeMenuKeyboardNavigation: >(handlers: { onClose?: ((event: T) => void) | undefined; onEnterLevel?: ((event: T) => void) | undefined; onFocusFirst?: ((event: T) => void) | undefined; onFocusLast?: ((event: T) => void) | undefined; onFocusNext?: ((event: T) => void) | undefined; onFocusPrevious?: ((event: T) => void) | undefined; onLeaveLevel?: ((event: T) => void) | undefined; onSelect?: ((event: T) => void) | undefined; onUnhandledKeyDown?: ((event: T) => void) | undefined; }, options?: IHandleActionOptions) => (event: T) => void; /** * @internal */ export declare const makeGridKeyboardNavigation: >(handlers: { onFocusDown?: ((event: T) => void) | undefined; onFocusFirst?: ((event: T) => void) | undefined; onFocusLast?: ((event: T) => void) | undefined; onFocusLeft?: ((event: T) => void) | undefined; onFocusRight?: ((event: T) => void) | undefined; onFocusUp?: ((event: T) => void) | undefined; onSelect?: ((event: T) => void) | undefined; onUnhandledKeyDown?: ((event: T) => void) | undefined; }, options?: IHandleActionOptions) => (event: T) => void; /** * @internal */ export declare const makeLinearKeyboardNavigation: >(handlers: { onClose?: ((event: T) => void) | undefined; onFocusFirst?: ((event: T) => void) | undefined; onFocusLast?: ((event: T) => void) | undefined; onFocusNext?: ((event: T) => void) | undefined; onFocusPrevious?: ((event: T) => void) | undefined; onSelect?: ((event: T) => void) | undefined; onUnhandledKeyDown?: ((event: T) => void) | undefined; }, options?: IHandleActionOptions) => (event: T) => void; /** * @internal */ export declare const makeDialogKeyboardNavigation: >(handlers: { onClose?: ((event: T) => void) | undefined; onFocusNext?: ((event: T) => void) | undefined; onFocusPrevious?: ((event: T) => void) | undefined; onUnhandledKeyDown?: ((event: T) => void) | undefined; }, options?: IHandleActionOptions) => (event: T) => void; /** * @internal */ export declare const makeTabsKeyboardNavigation: >(handlers: { onFocusFirst?: ((event: T) => void) | undefined; onFocusLast?: ((event: T) => void) | undefined; onFocusNext?: ((event: T) => void) | undefined; onFocusPrevious?: ((event: T) => void) | undefined; onSelect?: ((event: T) => void) | undefined; onUnhandledKeyDown?: ((event: T) => void) | undefined; }, options?: IHandleActionOptions) => (event: T) => void; /** * @internal */ export declare const makeHorizontalKeyboardNavigation: >(handlers: { onFocusFirst?: ((event: T) => void) | undefined; onFocusLast?: ((event: T) => void) | undefined; onFocusNext?: ((event: T) => void) | undefined; onFocusPrevious?: ((event: T) => void) | undefined; onUnhandledKeyDown?: ((event: T) => void) | undefined; }, options?: IHandleActionOptions) => (event: T) => void; /** * @internal */ export declare const makeLinearKeyboardNavigationWithConfirm: >(handlers: { onClose?: ((event: T) => void) | undefined; onConfirm?: ((event: T) => void) | undefined; onFocusFirst?: ((event: T) => void) | undefined; onFocusLast?: ((event: T) => void) | undefined; onFocusNext?: ((event: T) => void) | undefined; onFocusPrevious?: ((event: T) => void) | undefined; onSelect?: ((event: T) => void) | undefined; onUnhandledKeyDown?: ((event: T) => void) | undefined; }, options?: IHandleActionOptions) => (event: T) => void; /** * Home and End are left out so they reach an enclosing toolbar. * * @internal */ export declare const makeRadioGroupKeyboardNavigation: >(handlers: { onFocusNext?: ((event: T) => void) | undefined; onFocusPrevious?: ((event: T) => void) | undefined; onUnhandledKeyDown?: ((event: T) => void) | undefined; }, options?: IHandleActionOptions) => (event: T) => void; //# sourceMappingURL=keyboardNavigation.d.ts.map