import React, { ButtonHTMLAttributes, LinkHTMLAttributes, MouseEvent, ReactNode } from 'react';
type Base = {
as?: 'a' | 'button';
children: ReactNode;
variant?: 'solid' | 'naked';
onClick?(e: MouseEvent): void;
disabled?: boolean;
width?: 'auto' | 'full';
};
type Link = {
as: 'a';
href?: string;
newTab?: boolean;
} & LinkHTMLAttributes & Base;
type Button = {
as: 'button';
} & ButtonHTMLAttributes & Base;
export type ButtonProps = Link | Button;
/**
* Unfortunately right now `forwardRef` can't deal with generic/dynamic components (this should be `forwardRef`).
* So we have to use any. ðŸ˜
*/
export declare const Button: React.ForwardRefExoticComponent>;
export {};