import { ProjectReflection } from 'typedoc'; import { IPluginComponent } from '@knodes/typedoc-pluginutils'; import { MenuReflection } from '../../models/reflections'; import { IPluginOptions } from '../../options'; import type { PagesPlugin } from '../../plugin'; export declare class PageTreeBuilder implements IPluginComponent { readonly plugin: PagesPlugin; private readonly _logger; constructor(plugin: PagesPlugin); /** * Convert pages specified in the plugin options to reflections. * * @param project - The project reflection. * @param options - The plugin options. * @returns the nodes tree. */ buildPagesTree(project: ProjectReflection, options: IPluginOptions): MenuReflection; /** * Get the module with the given {@link name}. * * @param reflection - The reflection to get the project from. * @param name - The name of the module to search. * @returns the module declaration reflection, or `undefined`. */ private _getModule; /** * Map multiple raw page node objects to node reflections. * * @param nodes - The nodes. * @param parent - The parent of this node (project, module or node). * @param io - The children base input/output paths * @returns the node reflections. */ private _mapNodesToReflectionsTree; /** * Map a single raw page node object to node reflections. * * @param node - The node. * @param parent - The parent of this node (project, module or node). * @param io - The children base input/output paths * @returns the node reflections. */ private _mapNodeToReflection; /** * Infer the parent & module for the given node. * * @param node - The node to get parent & modules for. * @param parent - The default parent. * @returns an object containing the final module & parent for the node. */ private _getNodeParent; /** * Generate a node reflection. * * @param node - The node. * @param parent - The parent of this node (project, module or node). * @param io - This node input/output paths. * @returns the node reflection. */ private _getNodeReflection; } //# sourceMappingURL=page-tree-builder.d.ts.map