import { Accessibility } from '../../types'; /** * @specification * Adds role='button' if element type is other than 'button'. This allows screen readers to handle the component as a button. * Adds attribute 'tabIndex=0' if element type is other than 'button'. * Adds attribute 'aria-disabled=true' based on the property 'disabled'. This can be overriden by providing 'aria-disabled' property directly to the component. * Adds attribute 'aria-disabled=true' based on the property 'loading'. * Triggers 'performClick' action with 'Enter' or 'Spacebar' on 'root'. */ export declare const buttonBehavior: Accessibility; export declare type ButtonBehaviorProps = { /** Element type. */ as: string; /** A button can show it is currently unable to be interacted with. */ disabled?: boolean; loading?: boolean; };