import { ReactNode, Ref } from 'react'; export interface CustomBaseButtonProps { /** Provide a React element or component to render as the underlying button. Note: for accessibility compliance, almost always you should use a `button` element, or a component that renders an underlying button. */ as?: AsType; /** Any ReactNode elements. */ children: ReactNode; /** Click event handler. Default behaviour triggers unless prevented */ onClick?: (event?: React.MouseEvent) => void | boolean; /** A default `onClick` behavior */ defaultOnClick?: (event?: React.MouseEvent) => void | boolean; /** A `ref` to the underlying button */ buttonRef?: Ref; } export type BaseButtonProps = CustomBaseButtonProps & (AsType extends keyof React.JSX.IntrinsicElements ? Omit, keyof CustomBaseButtonProps> : React.ComponentPropsWithoutRef); export declare function BaseButton(props: BaseButtonProps): JSX.Element;