import { type RuleTestResponse } from '@os-team/lexical-rules'; import type { DataWithOptionsRef, Parser } from './Parser.js'; import { type Element } from './ElementParser.js'; export type Primitive = string | number | boolean | null | undefined; export type ContentWithElement = Element & { '#content'?: Primitive; }; export type Content = Primitive | ContentWithElement; /** * The content of an element. * See https://www.w3.org/TR/xml/#NT-content */ declare class ContentParser implements Parser { private readonly elementParser; private readonly cdSectParser; private readonly piParser; private readonly rule; constructor(); test(ref: DataWithOptionsRef, pos: number): RuleTestResponse; build(data: Content): string; } export default ContentParser; //# sourceMappingURL=ContentParser.d.ts.map