import React from "react"; import type { AnchorHTMLAttributes, ButtonHTMLAttributes, ForwardedRef, FunctionComponent, ReactNode, SVGProps } from "react"; export interface BaseButtonProps { onClick?: (event: React.MouseEvent) => void; disabled?: boolean; loading?: boolean; className?: { root?: string; iconWrapper?: string; icon?: string; contentWrapper?: string; }; icon?: FunctionComponent>; iconPlacement?: "left" | "right"; size?: "big" | "small" | "xsmall"; variant?: "primary" | "secondary"; active?: boolean; children?: ReactNode; } export type CleanHTMLButtonProps = BaseButtonProps & Omit, keyof BaseButtonProps>; export type CleanHTMLAnchorProps = BaseButtonProps & Omit, keyof BaseButtonProps>; export type ButtonProps = CleanHTMLButtonProps | CleanHTMLAnchorProps; export type RefType

= ForwardedRef<"href" extends keyof P ? HTMLAnchorElement : HTMLButtonElement>; declare const Component: (props: ButtonProps, ref: RefType) => React.JSX.Element; export declare const Button:

(props: P & { ref?: RefType

| undefined; }) => ReturnType; export {}; //# sourceMappingURL=button.d.ts.map