1 | import type { Deserializer, JSONOutput, Serializer } from "../../serialization/index.js";
|
2 | import { type CommentDisplayPart } from "../comments/index.js";
|
3 | import { Reflection, type TraverseCallback } from "./abstract.js";
|
4 |
|
5 |
|
6 |
|
7 | export declare class DocumentReflection extends Reflection {
|
8 | readonly variant = "document";
|
9 | |
10 |
|
11 |
|
12 | content: CommentDisplayPart[];
|
13 | |
14 |
|
15 |
|
16 | frontmatter: Record<string, unknown>;
|
17 | |
18 |
|
19 |
|
20 |
|
21 | relevanceBoost?: number;
|
22 | |
23 |
|
24 |
|
25 | children?: DocumentReflection[];
|
26 | constructor(name: string, parent: Reflection, content: CommentDisplayPart[], frontmatter: Record<string, unknown>);
|
27 | addChild(child: DocumentReflection): void;
|
28 | isDocument(): this is DocumentReflection;
|
29 | traverse(callback: TraverseCallback): void;
|
30 | toObject(serializer: Serializer): JSONOutput.DocumentReflection;
|
31 | fromObject(de: Deserializer, obj: JSONOutput.DocumentReflection): void;
|
32 | }
|