/** * This file gathers views related to table of content. */ import { AnyVirtualDOM, ChildrenLike, RxHTMLElement, VirtualDOM } from '@youwol/rx-vdom'; import { Router } from '../router'; import { BehaviorSubject } from 'rxjs'; /** * The table of content view when the screen is large enough to display it, otherwise see {@link ModalTocView} */ export declare class TOCView implements VirtualDOM<'div'> { readonly router: Router; readonly html: HTMLElement; readonly tag = "div"; readonly class = "mkdocs-TOCView h-100"; readonly children: ChildrenLike; readonly style: { lineHeight: string; }; readonly indexFirstVisibleHeading$: BehaviorSubject; readonly connectedCallback: (elem: RxHTMLElement<'div'>) => void; readonly disconnectedCallback: (elem: RxHTMLElement<'div'>) => void; constructor(params: { html: HTMLElement; router: Router; domConvertor?: (e: HTMLHeadingElement) => AnyVirtualDOM; }); getFirstVisible(headings: HTMLElement[]): void; } export declare function tocView({ html, router, domConvertor, }: { html: HTMLElement; router: Router; domConvertor?: (e: HTMLHeadingElement) => AnyVirtualDOM; }): Promise;