/** * Manages a line. */ export class Line { /****************************************************************************\ * Private static properties \****************************************************************************/ /** @type {Map} */ static "__#6@#collection": Map; /****************************************************************************\ * Public static methods \****************************************************************************/ /** * Gets a line from the global collection by its ID. * * @param {string} lineID The ID of the line to be retrieved. * @returns {Line | undefined} The retrieved line. */ static getByID(lineID: string): Line | undefined; /****************************************************************************\ * Constructor \****************************************************************************/ /** * Creates a new Line. * * @param {string} lineString The original, unparsed line string. * @param {string} nodeID The ID of the node to which this line belongs. */ constructor(lineString: string, nodeID: string); /****************************************************************************\ * Public instance methods \****************************************************************************/ /** * Adds a tag. * * @param {string | Tag} tag The tag to be added. * @returns {Tag} The generated tag. */ addTag(tag: string | Tag): Tag; /****************************************************************************\ * Public getters/setters \****************************************************************************/ /** @returns {Character | undefined} The character of this line. */ get character(): Character | undefined; /** @param {Line} line The first child of this line. */ set firstChild(line: Line | undefined); /** @returns {Line | undefined} The first child of this line. */ get firstChild(): Line | undefined; /** @returns {string} A unique identifier for this line. */ get id(): string; /** @returns {number} The number of spaces at the beginning of this line. */ get indentationLevel(): number; /** @returns {boolean} Whether this line is an option. */ get isOption(): boolean; /** @param {Line} line The next line at this indentation level. */ set nextSibling(line: Line | undefined); /** @returns {Line | undefined} The next line at this indentation level. */ get nextSibling(): Line | undefined; /** @returns {string} The ID of the node to which this line belongs. */ get nodeID(): string; /** @returns {string} The original, unparsed line. */ get original(): string; /** @returns {Set} An array of the segments of this line. */ get tags(): Set; /** @returns {Set} An array of the segments of this line. */ get segments(): Set; #private; } import { Tag } from './Tag.js'; import { Character } from './Character.js'; //# sourceMappingURL=Line.d.ts.map