import * as React from 'react'; export declare function useButton(parameters?: useButton.Parameters): useButton.ReturnValue; export declare namespace useButton { interface Parameters { /** * If `true`, the component is disabled. * @default false */ disabled?: boolean; /** * If `true`, allows a disabled button to receive focus. * @default false */ focusableWhenDisabled?: boolean; buttonRef?: React.Ref; tabIndex?: NonNullable['tabIndex']>; /** * Type attribute applied when the `component` is `button`. * @default 'button' */ type?: React.ButtonHTMLAttributes['type']; /** * The HTML element, e.g.'button', 'span' etc. * @default '' */ elementName?: keyof HTMLElementTagNameMap; } interface ReturnValue { /** * Resolver for the button props. * @param externalProps additional props for the button * @returns props that should be spread on the button */ getButtonProps: (externalProps?: React.ComponentPropsWithRef) => React.ComponentPropsWithRef; /** * A ref to the button DOM element. */ buttonRef: React.RefCallback | null; } }