import React, { ButtonHTMLAttributes, LinkHTMLAttributes, MouseEvent, ReactNode } from 'react';
type Base = {
as?: 'a' | 'button';
variant?: 'solid' | 'naked';
children: ReactNode;
};
type Button = {
as: 'button';
onClick(e: MouseEvent): void;
} & ButtonHTMLAttributes & Base;
type Link = {
as?: 'a';
href?: string;
newTab?: boolean;
onClick?(e: MouseEvent): void;
} & LinkHTMLAttributes & Base;
type TextLinkProps = 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 TextLink: React.ForwardRefExoticComponent>;
export {};