import { DOMAttributes } from 'react'; export interface PressedStateOptions { /** False while disabled, aria-disabled, read-only or busy: the control never shows a pressed look. */ enabled: boolean; /** Native-button-like controls: a held Space presses them too (Enter never does). */ keyboard?: boolean; } declare const HANDLER_KEYS: readonly ["onPointerDown", "onPointerUp", "onPointerCancel", "onPointerLeave", "onPointerEnter", "onKeyDown", "onKeyUp", "onBlur"]; /** The event props the pressed state handles (and `withPressedState` composes with a consumer's own). */ export type PressedStateEventProps = Pick, (typeof HANDLER_KEYS)[number]>; /** * Pointer: a primary-button press sets it (never from a nested control); up, cancel and leave end it, and * re-entering while still held restores it. Keyboard (`keyboard: true`): Space without repeat sets it; Enter * and the arrow keys never do. `enabled: false` returns only the handlers that end a press. */ export declare function pressedStateHandlers({ enabled, keyboard }: PressedStateOptions): Readonly; /** One handler that calls each defined handler in order — for chaining a component's or consumer's own. */ export declare function composeHandlers(...handlers: (((event: E) => void) | undefined)[]): ((event: E) => void) | undefined; /** The pressed-state handlers, each composed after the consumer's own handler from `props` (spread the result). */ export declare function withPressedState(props: PressedStateEventProps, options: PressedStateOptions): PressedStateEventProps; export {};