1 | import { DocNodeKind, DocNode, type IDocNodeParsedParameters, type IDocNodeParameters } from './DocNode';
|
2 | import type { TokenSequence } from '../parser/TokenSequence';
|
3 |
|
4 |
|
5 |
|
6 | export declare enum SelectorKind {
|
7 | |
8 |
|
9 |
|
10 |
|
11 | Error = "error",
|
12 | |
13 |
|
14 |
|
15 | System = "system",
|
16 | |
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 | Index = "index",
|
27 | |
28 |
|
29 |
|
30 |
|
31 |
|
32 | Label = "label"
|
33 | }
|
34 |
|
35 |
|
36 |
|
37 | export interface IDocMemberSelectorParameters extends IDocNodeParameters {
|
38 | selector: string;
|
39 | }
|
40 |
|
41 |
|
42 |
|
43 | export interface IDocMemberSelectorParsedParameters extends IDocNodeParsedParameters {
|
44 | selectorExcerpt: TokenSequence;
|
45 | }
|
46 |
|
47 |
|
48 | export declare class DocMemberSelector extends DocNode {
|
49 | private static readonly _likeIndexSelectorRegExp;
|
50 | private static readonly _indexSelectorRegExp;
|
51 | private static readonly _likeLabelSelectorRegExp;
|
52 | private static readonly _labelSelectorRegExp;
|
53 | private static readonly _likeSystemSelectorRegExp;
|
54 | private readonly _selector;
|
55 | private _selectorExcerpt;
|
56 | private readonly _selectorKind;
|
57 | private readonly _errorMessage;
|
58 | |
59 |
|
60 |
|
61 |
|
62 | constructor(parameters: IDocMemberSelectorParameters | IDocMemberSelectorParsedParameters);
|
63 | /** @override */
|
64 | get kind(): DocNodeKind | string;
|
65 | /**
|
66 | * The text representation of the selector.
|
67 | *
|
68 | * @remarks
|
69 | * For system selectors, it will be a predefined lower case name.
|
70 | * For label selectors, it will be an upper case name defined using the `{@label}` tag.
|
71 | * For index selectors, it will be a positive integer.
|
72 | */
|
73 | get selector(): string;
|
74 | /**
|
75 | * Indicates the kind of selector.
|
76 | */
|
77 | get selectorKind(): SelectorKind;
|
78 | /**
|
79 | * If the `selectorKind` is `SelectorKind.Error`, this string will be defined and provide
|
80 | * more detail about why the string was not valid.
|
81 | */
|
82 | get errorMessage(): string | undefined;
|
83 | /** @override */
|
84 | protected onGetChildNodes(): ReadonlyArray<DocNode | undefined>;
|
85 | }
|
86 | //# sourceMappingURL=DocMemberSelector.d.ts.map |
\ | No newline at end of file |