import * as React from 'react'; export declare function useButton(parameters?: UseButtonParameters): UseButtonReturnValue; export interface UseButtonParameters { /** * Whether the component should ignore user interaction. * @default false */ disabled?: boolean | undefined; /** * Whether the button may receive focus even if it is disabled. * @default false */ focusableWhenDisabled?: boolean | undefined; tabIndex?: NonNullable['tabIndex']> | undefined; /** * Whether the component is being rendered as a native button. * @default true */ native?: boolean | undefined; /** * Whether the button is part of a composite widget. * When `true`, keyboard activation for Space occurs on keydown rather than keyup. * @default inferred from CompositeRoot context */ composite?: boolean | undefined; } export interface UseButtonReturnValue { /** * Resolver for the button props. */ getButtonProps: (externalProps?: React.ComponentPropsWithRef) => React.ComponentPropsWithRef; /** * A ref to the button DOM element. This ref should be passed to the rendered element. * It is not a part of the props returned by `getButtonProps`. */ buttonRef: React.Ref; } export interface UseButtonState {}