/// import { CommentParser, ParserConfig as CDocParserConfig, Annotations, Annotation, Range, Context, ContextType } from "cdocparser"; import { ParseResult } from "./types.js"; export type { Annotation, Annotations, Range, Context, ContextType, ParseResult, }; export interface ParserConfig extends CDocParserConfig { } declare class Parser { commentParser: CommentParser; private extractor; constructor(annotations: Annotations, config?: ParserConfig); /** * Extract the code following `offset` in `code` buffer, * delimited by braces. * * `offset` should be set to the position of the opening brace. If not, * the function will jump to the next opening brace. * * @param {String} code Code buffer. * @param {Number} offset Index of the opening brace. * @return {String} Extracted code between braces. */ private _extractCode; private contextParser; private _findCodeStart; private _addCodeToContext; parse(code: string, id?: string): ParseResult[]; private _filterAndGroup; } export default Parser;