import { default as React, PropsWithChildren } from 'react'; import { ButtonOwnProps, ButtonProps } from '../Button/Button'; export type ButtonProp = ButtonOwnProps & Pick; type HTMLAnchorProps = React.AnchorHTMLAttributes; export interface AnchorProps extends PropsWithChildren, HTMLAnchorProps { /** * URL of the link. */ href?: string; /** * ID of the link. */ id?: HTMLAnchorProps['id']; /** * Button variant. */ button?: true | ButtonProp; /** * Function to be called on click. */ onClick?: HTMLAnchorProps['onClick']; /** * The target property of the HTMLAnchorElement interface is a string * that indicates where to display the linked resource. * * [Read more at MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/target) */ target?: HTMLAnchorProps['target']; } export declare function Anchor({ button, onClick, 'aria-label': a11yLabel, 'aria-labelledby': a11yLabeledBy, 'aria-description': a11yDescription, 'aria-describedby': a11yDescribedBy, ...props }: PropsWithChildren): React.JSX.Element; export {};