1 | import { DocNode } from '../nodes/DocNode';
|
2 | export declare type DocNodeConstructor = new (...args: any[]) => DocNode;
|
3 | export interface IDocNodeDefinition {
|
4 | docNodeKind: string;
|
5 | constructor: DocNodeConstructor;
|
6 | }
|
7 | /**
|
8 | * Part of the {@link TSDocConfiguration} object.
|
9 | *
|
10 | * @remarks
|
11 | * If you define your own custom subclasses of `DocNode`, they must be registered with the `DocNodeManager`.
|
12 | * Use {@link DocNodeManager.registerAllowableChildren} to specify which {@link DocNodeContainer} subclasses
|
13 | * are allowed to contain your nodes.
|
14 | */
|
15 | export declare class DocNodeManager {
|
16 | private static readonly _nodeKindRegExp;
|
17 | private readonly _docNodeDefinitionsByKind;
|
18 | private readonly _docNodeDefinitionsByConstructor;
|
19 | |
20 |
|
21 |
|
22 |
|
23 | registerDocNodes(packageName: string, definitions: ReadonlyArray<IDocNodeDefinition>): void;
|
24 | |
25 |
|
26 |
|
27 | throwIfNotRegisteredKind(docNodeKind: string): void;
|
28 | |
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 | registerAllowableChildren(parentKind: string, childKinds: ReadonlyArray<string>): void;
|
37 | |
38 |
|
39 |
|
40 |
|
41 | isAllowedChild(parentKind: string, childKind: string): boolean;
|
42 | private _getDefinition;
|
43 | }
|
44 |
|
\ | No newline at end of file |