/** * Outline parser shared by MindMap and WBS: OrgMode (`*`, `**`), +/- side * markers, Markdown-style indentation, colours `*[#red]`, boxless `*_`, * multi-line `*:text;` nodes and `left side` / `right side` switches. * @module diagrams/tree/parse */ export type TreeNode = { text: string; children: TreeNode[]; side: "left" | "right"; colors: import("../../syntax/color.mjs").ColorSpec; boxless: boolean; /** * 0 = root. */ depth: number; /** * Index of the root child this node descends from. */ branch: number; stereotypes: string[]; }; export type TreeModel = { meta: import("../../syntax/commons.mjs").DiagramMeta; roots: TreeNode[]; /** * WBS `left direction` (children hang left). */ leftDirection: boolean; }; /** * @param {import("../../core/source.mjs").SourceLine[]} lines * @param {import("../../core/registry.mjs").ModuleContext} module * @returns {TreeModel} */ export declare function parseOutline(lines: import("../../core/source.mjs").SourceLine[], module: import("../../core/registry.mjs").ModuleContext): TreeModel;