import * as React from 'react'; import AnchorLink from './AnchorLink'; export interface AnchorProps { title?: string; className?: string; style?: React.CSSProperties; children?: React.ReactNode; affix?: boolean; offsetTop?: number; onClick?: (e: React.MouseEvent, href: string) => void; onChange?: (href: string) => void; } interface AnchorState { currentLink: null | string; } export default class Anchor extends React.Component { static Link: typeof AnchorLink; static defaultProps: { affix: boolean; offsetTop: number; }; private links; private scrollEvent; private animating; state: { currentLink: null; }; componentDidMount(): void; componentWillUnmount(): void; getCurrentLinkWhileScroll: () => string; handleDocumentScroll: (this: unknown) => void; addLink: (href: string) => void; removeLink: (href: string) => void; setCurrentLink: (targetHref: string) => void; handleClick: (href: string) => void; render(): JSX.Element; } export {};