import { HeadingLevel } from '../elements/heading.cjs'; interface DocumentSectionOptions { title: string; parent?: DocumentSection; subSections?: Array; } /** * Represents a markdown document section. */ declare abstract class DocumentSection { private _subSections; title: string; parent: DocumentSection | undefined; constructor(options: DocumentSectionOptions); get subSections(): ReadonlyArray; get headingLevel(): HeadingLevel; addSubSection(section: DocumentSection): this; /** * Transform the section data into an array of strings */ protected abstract synthesizeContent(): Array; /** * Synthesize the section data so it can be written to the readme */ synthesize(): string; } declare function tryFindSection(sections: ReadonlyArray, path: Array): S | undefined; export { DocumentSection, DocumentSectionOptions, tryFindSection };