import * as React from 'react';
import type { ButtonAriaProps, ButtonRoles } from '../../a11y/button_aria_attributes/button_aria_attributes';
import type { BasicHTMLHandle } from '../../handle/handle';
import type { Icon, IconSize } from '../../icons/icons';
import type { TooltipProps } from '../../tooltip/tooltip';
type Tone = 'primary' | 'secondary' | 'tertiary' | 'critical' | 'contrast';
export type Variant = Tone | 'linkButton' | 'subtleLinkButton';
export type IconPosition = 'start' | 'end' | 'top';
export type Size = 'default' | 'tiny' | 'xsmall' | 'small' | 'medium' | 'large';
export type Shape = 'block' | 'circle';
export type Alignment = 'start' | 'center' | 'end';
export type ButtonHandle = BasicHTMLHandle;
type AllVariant = Variant | 'basic' | 'primaryNeutral' | 'secondaryNeutral' | 'tertiaryNeutral';
type IconProps = {
    icon?: Icon
    iconSize?: IconSize
    iconPosition?: IconPosition
};
export type CommonTooltipProps = {
    tooltipLabel?: TooltipProps['label']
    tooltipDescription?: TooltipProps['description']
    tooltipDisabled?: TooltipProps['disabled']
    tooltipShortcut?: TooltipProps['shortcut']
    tooltipPlacement?: TooltipProps['placement']
    tooltipLineClamp?: TooltipProps['lineClamp']
    tooltipCloseOnClick?: TooltipProps['closeOnClick']
};
export type CommonEventHandlerProps = {
    onFocus?: React.FocusEventHandler
    onBlur?: React.FocusEventHandler
    onDragStart?: React.DragEventHandler
    onDragEnd?: React.DragEventHandler
    onMouseEnter?: (event: React.MouseEvent<any>) => void
    onMouseLeave?: (event: React.MouseEvent<any>) => void
    onMouseDown?: (event: React.MouseEvent<any>) => void
    onContextMenu?: (event: React.MouseEvent<any>) => void
};
export type CommonProps = {
    ref?: React.Ref<ButtonHandle>;
    stretch?: boolean
    draggable?: boolean
    children?: any
    className?: string
    role?: Exclude<ButtonRoles, 'button'>
    tabIndex?: -1
    disableActiveStyle?: boolean
    loading?: boolean
    loadingMessage?: string
    size?: Size
    expandClickableArea?: boolean
    id?: string
    disabled?: boolean
    alignment?: Alignment
} & IconProps & ButtonAriaProps & CommonTooltipProps & CommonEventHandlerProps;
type ButtonOnlyProps = {
    type?: 'submit' | 'button' | 'reset'
    onClick?: (event: React.MouseEvent<any>) => void
    onMouseUp?: (event: React.MouseEvent<any>) => void
    onPointerDown?: React.PointerEventHandler
    onPointerUp?: React.PointerEventHandler
    onPointerLeave?: React.PointerEventHandler
    form?: string
    ariaPressed?: boolean
};
type AnchorOnlyProps = {
    rel?: string
    download?: string | boolean
    href: string
    target?: string
    onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void
};
export type BasicVariantOnlyProps = {
    noChildWrapper?: boolean
    buttonRef?: React.Ref<HTMLElement>
    LoadingIcon?: Icon
};
export type ButtonProps = CommonProps & ButtonOnlyProps;
export type AnchorProps = CommonProps & AnchorOnlyProps;
type AllButtonProps = ButtonProps & BasicVariantOnlyProps & {
    variant: AllVariant;
    shape?: Shape;
    LoadingIcon?: Icon;
    elevated?: boolean;
    containerClassName?: string;
};
export declare const useShouldDisableSubmit: (initialShouldDisableSubmit: boolean) => boolean;
export declare const InternalButton: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<Omit<{
    ref?: React.Ref<ButtonHandle>;
    stretch?: boolean
    draggable?: boolean
    children?: any
    className?: string
    role?: Exclude<ButtonRoles, "button">
    tabIndex?: -1
    disableActiveStyle?: boolean
    loading?: boolean
    loadingMessage?: string
    size?: Size
    expandClickableArea?: boolean
    id?: string
    disabled?: boolean
    alignment?: Alignment
} & IconProps & ButtonAriaProps & CommonTooltipProps & CommonEventHandlerProps & ButtonOnlyProps & BasicVariantOnlyProps & {
    variant: AllVariant;
    shape?: Shape;
    LoadingIcon?: Icon;
    elevated?: boolean;
    containerClassName?: string;
} & {
    tooltipLabel?: never;
}, "ref"> & React.RefAttributes<BasicHTMLHandle>, "ref"> & React.RefAttributes<BasicHTMLHandle>>>;
type AllAnchorProps = AnchorProps & BasicVariantOnlyProps & {
    variant: AllVariant;
    shape?: Shape;
};
export declare const Anchor: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<Omit<{
    ref?: React.Ref<ButtonHandle>;
    stretch?: boolean
    draggable?: boolean
    children?: any
    className?: string
    role?: Exclude<ButtonRoles, "button">
    tabIndex?: -1
    disableActiveStyle?: boolean
    loading?: boolean
    loadingMessage?: string
    size?: Size
    expandClickableArea?: boolean
    id?: string
    disabled?: boolean
    alignment?: Alignment
} & IconProps & ButtonAriaProps & CommonTooltipProps & CommonEventHandlerProps & AnchorOnlyProps & BasicVariantOnlyProps & {
    variant: AllVariant;
    shape?: Shape;
} & {
    tooltipLabel?: never;
}, "ref"> & React.RefAttributes<BasicHTMLHandle>, "ref"> & React.RefAttributes<BasicHTMLHandle>>>;
export declare const ButtonWithTooltip: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<Omit<{
    ref?: React.Ref<ButtonHandle>;
    stretch?: boolean
    draggable?: boolean
    children?: any
    className?: string
    role?: Exclude<ButtonRoles, "button">
    tabIndex?: -1
    disableActiveStyle?: boolean
    loading?: boolean
    loadingMessage?: string
    size?: Size
    expandClickableArea?: boolean
    id?: string
    disabled?: boolean
    alignment?: Alignment
} & IconProps & ButtonAriaProps & CommonTooltipProps & CommonEventHandlerProps & ButtonOnlyProps & BasicVariantOnlyProps & {
    variant: AllVariant;
    shape?: Shape;
    LoadingIcon?: Icon;
    elevated?: boolean;
    containerClassName?: string;
} & {
    tooltipLabel: string;
}, "ref"> & React.RefAttributes<BasicHTMLHandle>, "ref"> & React.RefAttributes<BasicHTMLHandle>>>;
export declare const AnchorWithTooltip: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<Omit<{
    ref?: React.Ref<ButtonHandle>;
    stretch?: boolean
    draggable?: boolean
    children?: any
    className?: string
    role?: Exclude<ButtonRoles, "button">
    tabIndex?: -1
    disableActiveStyle?: boolean
    loading?: boolean
    loadingMessage?: string
    size?: Size
    expandClickableArea?: boolean
    id?: string
    disabled?: boolean
    alignment?: Alignment
} & IconProps & ButtonAriaProps & CommonTooltipProps & CommonEventHandlerProps & AnchorOnlyProps & BasicVariantOnlyProps & {
    variant: AllVariant;
    shape?: Shape;
} & {
    tooltipLabel: string;
}, "ref"> & React.RefAttributes<BasicHTMLHandle>, "ref"> & React.RefAttributes<BasicHTMLHandle>>>;
type CommonCircleButtonProps = Omit<ButtonProps, 'alignment'> & {
    elevated?: boolean;
};
export type CircleButtonPropsWithChildren = CommonCircleButtonProps & Required<Pick<CommonProps, 'children'>> & {
    ariaLabelledBy?: never;
    ariaLabel?: never;
};
export type CircleButtonPropsWithoutChildren = CommonCircleButtonProps & (Required<Pick<CommonProps, 'ariaLabelledBy'>> | Required<Pick<CommonProps, 'ariaLabel'>> | {
    tooltipLabel: string;
    containerClassName?: string;
}) & {
    children?: never;
};
export declare const CircleButtonWithoutLabel: React.ForwardRefExoticComponent<(Omit<Omit<ButtonProps, "alignment"> & {
    elevated?: boolean;
} & Required<Pick<CommonProps, "ariaLabelledBy">> & {
    children?: never;
} & {
    variant: Variant;
}, "ref"> | Omit<Omit<ButtonProps, "alignment"> & {
    elevated?: boolean;
} & Required<Pick<CommonProps, "ariaLabel">> & {
    children?: never;
} & {
    variant: Variant;
}, "ref"> | Omit<Omit<ButtonProps, "alignment"> & {
    elevated?: boolean;
} & {
    tooltipLabel: string;
    containerClassName?: string;
} & {
    children?: never;
} & {
    variant: Variant;
}, "ref">) & React.RefAttributes<BasicHTMLHandle>>;
export declare const CircleButtonWithLabel: React.ForwardRefExoticComponent<Omit<Omit<ButtonProps, "alignment"> & {
    elevated?: boolean;
} & Required<Pick<CommonProps, "children">> & {
    ariaLabelledBy?: never;
    ariaLabel?: never;
} & {
    variant: Variant;
}, "ref"> & React.RefAttributes<BasicHTMLHandle>>;
export declare const renderButton: (props: AllButtonProps, ref?: React.ForwardedRef<ButtonHandle>) => import("react/jsx-runtime").JSX.Element;
export declare const renderAnchor: (props: AllAnchorProps, ref?: React.ForwardedRef<ButtonHandle>) => import("react/jsx-runtime").JSX.Element;
export declare const renderButtonOrAnchor: (props: AllButtonProps | (AllAnchorProps & {
    type: "link";
}), ref?: React.ForwardedRef<ButtonHandle>) => import("react/jsx-runtime").JSX.Element;
export {};
