import { ButtonProps as LegacyButtonProps } from '../LegacyButton';
import { ButtonProps as NewButtonProps } from '../Button/src/Button.types';
export type ButtonProps = {
    useNewButton?: boolean;
} & (LegacyButtonProps | NewButtonProps);
declare const Button: import("react").ForwardRefExoticComponent<(Omit<{
    useNewButton?: boolean;
} & {
    block?: boolean;
    disabled?: boolean;
    loading?: boolean;
    type?: import("../../common").ControlTypeAccent | import("../../common").ControlTypeNegative | import("../../common").ControlTypePositive | ("link" | "primary" | "secondary" | "pay" | "danger") | null;
    priority?: import("../../common").PriorityPrimary | import("../../common").PrioritySecondary | import("../../common").PriorityTertiary | null;
    size?: import("../../common").SizeSmall | import("../../common").SizeMedium | import("../../common").SizeLarge | "xs";
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
    ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
}, "type"> & {
    as?: "button" | undefined;
    htmlType?: "submit" | "reset" | "button";
}, "ref"> | Omit<{
    useNewButton?: boolean;
} & {
    block?: boolean;
    disabled?: boolean;
    loading?: boolean;
    type?: import("../../common").ControlTypeAccent | import("../../common").ControlTypeNegative | import("../../common").ControlTypePositive | ("link" | "primary" | "secondary" | "pay" | "danger") | null;
    priority?: import("../../common").PriorityPrimary | import("../../common").PrioritySecondary | import("../../common").PriorityTertiary | null;
    size?: import("../../common").SizeSmall | import("../../common").SizeMedium | import("../../common").SizeLarge | "xs";
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
    ref?: ((instance: HTMLAnchorElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLAnchorElement> | null | undefined;
}, "type"> & {
    as?: "a" | undefined;
}, "ref"> | Omit<{
    useNewButton?: boolean;
} & import("../../primitives").PrimitiveButtonProps & import("../Button/src/Button.types").CommonButtonProps, "ref"> | Omit<{
    useNewButton?: boolean;
} & import("../../primitives").PrimitiveAnchorProps & import("../Button/src/Button.types").CommonButtonProps, "ref">) & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
export default Button;
//# sourceMappingURL=Button.d.ts.map