import type { ElementRef } from 'react'; import { useButton } from 'react-aria'; type UseButtonOptions = Parameters[0]; export declare function useOnPress, E = ElementRef<'button'>>(props: T, customAriaProps?: UseButtonOptions): { buttonProps: import("react").ButtonHTMLAttributes & { 'aria-pressed'?: boolean | undefined; role: any; }; isPressed: boolean; ref: import("react").RefObject; }; export {};