import { type KeyboardEvent } from "react"; /** * Checks if the given keyboard event is an action key = Enter or Space. * * Both the produced character and the physical key are accepted, so it agrees with the navigation * helpers in `@ui`, which match on `code`. * * @param event - The keyboard event to check. * @returns `true` if the event is an action key, `false` otherwise. * * @internal */ export declare const isActionKey: (event: KeyboardEvent) => boolean; /** * Checks if the given keyboard event is triggered by a Space key. * * @param event - The keyboard event to check. * @returns `true` if the event has been triggered by a Space key, `false` otherwise. * * @internal */ export declare const isSpaceKey: (event: KeyboardEvent) => boolean; /** * Checks if the given keyboard event is triggered by an Enter key. * * @param event - The keyboard event to check. * @returns `true` if the event has been triggered by an Enter key, `false` otherwise. * * @internal */ export declare const isEnterKey: (event: KeyboardEvent) => boolean; /** * Checks if the given keyboard event is triggered by one of the Arrow keys. * * @param event - The keyboard event to check. * @returns `true` if the event has been triggered by one of the Arrow keys, `false` otherwise. * * @internal */ export declare const isArrowKey: (event: KeyboardEvent) => boolean; /** * Checks if the given keyboard event is triggered by an ArrowDown key. * * @param event - The keyboard event to check. * @returns `true` if the event has been triggered by an ArrowDown key, `false` otherwise. * * @internal */ export declare const isArrowDownKey: (event: KeyboardEvent) => boolean; /** * Checks if the given keyboard event is triggered by a key used for typing. * E.g. a letter, a number, arrow keys, home, end, etc. * * @param event - The keyboard event to check. * @returns `true` if the event has been triggered by a key used for typing, `false` otherwise. * * @internal */ export declare const isTypingKey: (event: KeyboardEvent) => boolean; /** * Checks if the given keyboard event is triggered by an Escape key. * * @param event - The keyboard event to check. * @returns `true` if the event has been triggered by an Escape key, `false` otherwise. * * @internal */ export declare const isEscapeKey: (event: KeyboardEvent) => boolean; /** * Checks if the given keyboard event is triggered by a Copy key. * * @param event - The keyboard event to check. * @returns `true` if the event has been triggered by ctrl+c or cmd+c, `false` otherwise. * * @internal */ export declare const isCopyKey: (event: KeyboardEvent) => boolean; /** * Checks if the given keyboard event is triggered by an Tab key. * * @param event - The keyboard event to check. * @returns `true` if the event has been triggered by an Tab key, `false` otherwise. * * @internal */ export declare const isTabKey: (event: KeyboardEvent) => boolean; //# sourceMappingURL=events.d.ts.map