import { default as React } from 'react'; export type LinkSize = "medium" | "large"; export type LinkColor = "brand" | "neutral"; type LinkBaseProps = { size?: LinkSize; color?: LinkColor; withBackground?: boolean; disabled?: boolean; children?: React.ReactNode | (() => React.ReactNode); className?: string; }; export type LinkAsAnchor = LinkBaseProps & Omit, "children" | "disabled"> & { href: string; }; export type LinkAsButton = LinkBaseProps & Omit, "children" | "disabled"> & { href?: never; }; export type LinkProps = LinkAsAnchor | LinkAsButton; export declare function isAnchorProps(props: LinkProps): props is LinkAsAnchor; export {};