/** * @param {TreeModelOfPage} a * @param {TreeModelOfPage} b * @returns {number} */ export function modelComparatorFn(a: import("../../types/menu.js").TreeModelOfPage, b: import("../../types/menu.js").TreeModelOfPage): number; export class PageTree { /** * @param {object} options * @param {string | URL} options.inputDir * @param {string | URL} options.outputDir */ constructor({ inputDir, outputDir }?: { inputDir: string | URL; outputDir: string | URL; }); docsDir: string; outputDir: string; dataFilePath: string | undefined; treeModel: TreeModel, keyof import("../../types/menu.js").TreeModelOfPage>; needsAnotherRenderingPass: boolean; pageTreeChangedOnSave: boolean; /** * @param {string} sourceRelativeFilePath */ add(sourceRelativeFilePath: string): Promise; tree: import("@d4kmor/tree-model").Node, keyof import("../../types/menu.js").TreeModelOfPage> | undefined; /** * @param {string} sourceRelativeFilePath */ remove(sourceRelativeFilePath: string): Promise; /** * @param {string | URL} [filePath] Path to the pageTreeData.rocketGenerated.json */ restore(filePath?: string | URL | undefined): Promise; save(): Promise; /** * @param {string} sourceRelativeFilePath */ setCurrent(sourceRelativeFilePath: string): void; removeCurrent(): void; /** * @param {any} inst * @param {string} sourceRelativeFilePath * @returns {import('lit').TemplateResult} */ renderMenu(inst: any, sourceRelativeFilePath: string): import('lit').TemplateResult; /** * * @param {string} sourceRelativeFilePath * @returns {NodeOfPage | undefined} */ getPage(sourceRelativeFilePath: string): import("../../types/menu.js").NodeOfPage | undefined; /** * @param {() => boolean} [predicate] * @returns {NodeOfPage[]} */ all(predicate?: (() => boolean) | undefined): import("../../types/menu.js").NodeOfPage[]; } export type NodeOfPage = import('../../types/menu.js').NodeOfPage; export type TreeModelOfPage = import('../../types/menu.js').TreeModelOfPage; import { TreeModel } from "@d4kmor/tree-model"; //# sourceMappingURL=PageTree.d.ts.map