type KeyboardEventType = 'keyup' | 'keydown' | 'keypress';
/**
 * Custom hook to handle keyboard events.
 *
 * @param keyOrCallback - Either a key string (e.g., 'Enter') or a callback function.
 * @param callbackOrEventTypes - If the first argument is a key, this should be the callback function.
 *                               If the first argument is a callback, this is an optional array of event types.
 * @param [eventTypesOrNode=['keydown']] - If the first argument is a key, this should be an array of event types.
 *                                         If the first argument is a callback, this is the node (defaults to document).
 * @param [node=document] - Optional DOM node to attach the event listener to (defaults to document).
 */
declare const useKey: (keyOrCallback: string | ((event: KeyboardEvent) => void), callbackOrEventTypes?: ((event: KeyboardEvent) => void) | KeyboardEventType[], eventTypesOrNode?: KeyboardEventType[] | Document, node?: Document | HTMLElement) => void;
export default useKey;
