1 | import { DocNodeKind, type IDocNodeParameters, type IDocNodeParsedParameters, DocNode } from './DocNode';
|
2 | import type { TokenSequence } from '../parser/TokenSequence';
|
3 |
|
4 |
|
5 |
|
6 | export interface IDocPlainTextParameters extends IDocNodeParameters {
|
7 | text: string;
|
8 | }
|
9 |
|
10 |
|
11 |
|
12 | export interface IDocPlainTextParsedParameters extends IDocNodeParsedParameters {
|
13 | textExcerpt: TokenSequence;
|
14 | }
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 | export declare class DocPlainText extends DocNode {
|
24 | private static readonly _newlineCharacterRegExp;
|
25 | private _text;
|
26 | private readonly _textExcerpt;
|
27 | |
28 |
|
29 |
|
30 |
|
31 | constructor(parameters: IDocPlainTextParameters | IDocPlainTextParsedParameters);
|
32 | /** @override */
|
33 | get kind(): DocNodeKind | string;
|
34 | /**
|
35 | * The text content.
|
36 | */
|
37 | get text(): string;
|
38 | get textExcerpt(): TokenSequence | undefined;
|
39 | /** @override */
|
40 | protected onGetChildNodes(): ReadonlyArray<DocNode | undefined>;
|
41 | }
|
42 | //# sourceMappingURL=DocPlainText.d.ts.map |
\ | No newline at end of file |