import * as React from 'react'; import type { ButtonAriaProps } from '../../../a11y/button_aria_attributes/button_aria_attributes'; import type { UseBoxOptions } from '../../../box/box'; import type { BasicHTMLHandle } from '../../../handle/handle'; import type { StatefulProps } from './button_tones'; import type { ComponentWithTooltip } from './with_tooltip'; export type ButtonEventHandlers = { onClick?: React.MouseEventHandler onMouseDown?: React.MouseEventHandler onMouseUp?: React.MouseEventHandler onMouseEnter?: React.MouseEventHandler onMouseLeave?: React.MouseEventHandler onPointerDown?: React.PointerEventHandler onPointerUp?: React.PointerEventHandler onPointerEnter?: React.PointerEventHandler onPointerLeave?: React.PointerEventHandler onPointerMove?: React.PointerEventHandler onPointerCancel?: React.PointerEventHandler onFocus?: React.FocusEventHandler onBlur?: React.FocusEventHandler onDragStart?: React.DragEventHandler onDragEnd?: React.DragEventHandler onContextMenu?: React.MouseEventHandler }; export type ButtonVisualProps = StatefulProps & Omit; type InternalBaseButtonProps = { ref?: React.Ref id?: string type?: 'button' | 'submit' | 'reset' form?: string draggable?: boolean disabled?: boolean children?: React.ReactNode } & ButtonEventHandlers & ButtonVisualProps & ButtonAriaProps; export type BaseButtonHandle = BasicHTMLHandle; type InternalBaseAnchorProps = { ref?: React.Ref id?: string href: string rel?: string target?: string download?: string disabled?: boolean children?: React.ReactNode } & ButtonEventHandlers & ButtonVisualProps & ButtonAriaProps; export type BaseAnchorHandle = BasicHTMLHandle; export declare const BaseButton: ComponentWithTooltip; export type BaseButtonProps = React.ComponentProps; export declare const BaseAnchor: ComponentWithTooltip; export type BaseAnchorProps = React.ComponentProps; export {};