import * as React from 'react'; import { StandardProps } from '../../common'; export interface AnchorUrlLocator { pathname?: string; search?: string; state?: any; hash?: string; key?: string; } export interface AnchorProps extends StandardProps { /** * Sets the component as disabled. */ disabled?: boolean; /** * Redirects to the given URL if clicked. */ href?: string; /** * Redirects to the given internal URL if clicked. */ to?: string | AnchorUrlLocator; /** * The tagName to use, e.g., a or button. * @default a */ tagName?: string; /** * Used to notify once clicked. */ onClick?(e: React.MouseEvent): void; /** * Sets the action link children. */ children?: React.ReactNode | void; /** * Specifies where to display the linked URL. * Applies only in case of `a` tag * Default is `_self` * @default _self */ target?: '_self' | '_blank' | '_parent' | '_top'; } export declare class Anchor extends React.PureComponent { static contextTypes: { router: () => null; }; private clicked; render(): React.DOMElement<{ onClick: (e: React.MouseEvent) => void; href: string | undefined; children?: ((string | number | boolean | void | {} | React.ReactElement> | React.ReactNodeArray | React.ReactPortal) & (boolean | React.ReactChild | React.ReactFragment | React.ReactPortal)) | null | undefined; className?: string | undefined; style?: React.CSSProperties | undefined; }, Element>; }