import React, { ReactElement, ReactChildren } from 'react'; import { VARIANTS, ButtonStyleProps } from '../../styles/button'; declare const EXTERNAL_TARGET_DEFAULT = "_blank"; declare const EXTERNAL_REL_DEFAULT = "noreferrer noopener"; export declare const isExternalUrl: (url: string) => boolean; export declare const secureExternalLink: (href: string) => { rel: typeof EXTERNAL_REL_DEFAULT; target: typeof EXTERNAL_TARGET_DEFAULT; } | undefined; export interface LinkButtonProps extends ButtonStyleProps { /** * The text that is going to be displayed */ children?: ReactChildren; href: string; /** * Appends an external link svg */ isExternalLink?: boolean; onClick?: (event: React.MouseEvent) => void; target?: '_blank' | '_self' | '_parent' | '_top'; /** * The text that is going to be displayed, alternative way */ text?: string; rel?: string; } declare const LinkButton: ({ variant, loading, text, children, isExternalLink, ...props }: LinkButtonProps) => ReactElement; export default LinkButton; export { VARIANTS };