/** * * This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Modifications”). * All Bytedance Inc.'s Modifications are Copyright (year) Bytedance Inc.. * * This source code is licensed under the Apache license. * See LICENSE file in the project root for license information. * */ import * as React from 'react'; import { AntAnchor } from './Anchor'; import { ConfigConsumerProps } from '../../config-provider'; export interface AnchorLinkProps { prefixCls?: string; href: string; target?: string; title: React.ReactNode; children?: React.ReactNode; className?: string; } declare class AnchorLink extends React.Component { static defaultProps: { href: string; }; static contextType: React.Context; context: AntAnchor; componentDidMount(): void; componentDidUpdate({ href: prevHref }: AnchorLinkProps): void; componentWillUnmount(): void; handleClick: (e: React.MouseEvent) => void; renderAnchorLink: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element; render(): JSX.Element; } export default AnchorLink;