import BaseFoundation, { DefaultAdapter } from '../base/foundation'; export interface AnchorAdapter
, S = Record {
addLink: (link: string) => void;
removeLink: (link: string) => void;
setChildMap: (value: Record , S = Record );
init: () => void;
destroy: () => void;
addLink: (link: string) => void;
removeLink: (link: string) => void;
setActiveLink: (link: string, prevLink: string, shouldNotify?: boolean) => void;
setScrollHeight: () => void;
updateScrollHeight: (prevState: any, state: any) => void;
setChildMap: () => void;
updateChildMap: (prevState: any, state: any) => void;
getLinksTop: () => number[];
handleScroll: () => void;
handleClick: (e: any, link: string, shouldNotify?: boolean) => void;
handleClickLink: () => void;
_getLinkToMap: (link: any, parents: string[], linkMap: {
[key: string]: Set