You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
518 B
TypeScript

interface TOCCrawlerArgs {
/** Set generate mode to automatically set heading IDs. */
mode?: 'generate' | undefined;
/** Provide query list of elements. Defaults h2-h6. */
queryElements?: string;
scrollTarget?: string;
/** Reload the action when this key value changes. */
key?: unknown;
prefix?: string;
suffix?: string;
}
export declare function tocCrawler(node: HTMLElement, args?: TOCCrawlerArgs): {
update(newArgs: TOCCrawlerArgs): void;
destroy(): void;
};
export {};