@docs-sdk-dev/reader 0.0.0-stage → 0.4.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +97 -2
  3. package/dist/annotation-projection.d.ts +35 -0
  4. package/dist/annotation-projection.js +78 -0
  5. package/dist/annotation-projection.js.map +1 -0
  6. package/dist/artifacts.d.ts +19 -0
  7. package/dist/artifacts.js +33 -0
  8. package/dist/artifacts.js.map +1 -0
  9. package/dist/ask.d.ts +41 -0
  10. package/dist/ask.js +89 -0
  11. package/dist/ask.js.map +1 -0
  12. package/dist/collection-view.d.ts +190 -0
  13. package/dist/collection-view.js +170 -0
  14. package/dist/collection-view.js.map +1 -0
  15. package/dist/composition.d.ts +199 -0
  16. package/dist/composition.js +473 -0
  17. package/dist/composition.js.map +1 -0
  18. package/dist/condition.d.ts +17 -0
  19. package/dist/condition.js +61 -0
  20. package/dist/condition.js.map +1 -0
  21. package/dist/content-schema.d.ts +182 -0
  22. package/dist/content-schema.js +288 -0
  23. package/dist/content-schema.js.map +1 -0
  24. package/dist/context-search.d.ts +168 -0
  25. package/dist/context-search.js +73 -0
  26. package/dist/context-search.js.map +1 -0
  27. package/dist/context-store.d.ts +93 -0
  28. package/dist/context-store.js +438 -0
  29. package/dist/context-store.js.map +1 -0
  30. package/dist/dimension-runtime.d.ts +203 -0
  31. package/dist/dimension-runtime.js +737 -0
  32. package/dist/dimension-runtime.js.map +1 -0
  33. package/dist/dimensions.d.ts +84 -0
  34. package/dist/dimensions.js +136 -0
  35. package/dist/dimensions.js.map +1 -0
  36. package/dist/directory-navigation.d.ts +60 -0
  37. package/dist/directory-navigation.js +41 -0
  38. package/dist/directory-navigation.js.map +1 -0
  39. package/dist/directory-sections.d.ts +9 -0
  40. package/dist/directory-sections.js +76 -0
  41. package/dist/directory-sections.js.map +1 -0
  42. package/dist/document-reader.d.ts +1017 -0
  43. package/dist/document-reader.js +396 -0
  44. package/dist/document-reader.js.map +1 -0
  45. package/dist/document-selection.d.ts +412 -0
  46. package/dist/document-selection.js +45 -0
  47. package/dist/document-selection.js.map +1 -0
  48. package/dist/evidence.d.ts +102 -0
  49. package/dist/evidence.js +104 -0
  50. package/dist/evidence.js.map +1 -0
  51. package/dist/index.d.ts +19 -0
  52. package/dist/index.js +23 -0
  53. package/dist/model.d.ts +89 -0
  54. package/dist/model.js +31 -0
  55. package/dist/model.js.map +1 -0
  56. package/dist/module.d.ts +657 -0
  57. package/dist/module.js +199 -0
  58. package/dist/module.js.map +1 -0
  59. package/dist/navigation-view.d.ts +33 -0
  60. package/dist/navigation-view.js +68 -0
  61. package/dist/navigation-view.js.map +1 -0
  62. package/dist/node.d.ts +2004 -0
  63. package/dist/node.js +210 -0
  64. package/dist/node.js.map +1 -0
  65. package/dist/open-docs.d.ts +1396 -0
  66. package/dist/open-docs.js +198 -0
  67. package/dist/open-docs.js.map +1 -0
  68. package/dist/outline.d.ts +97 -0
  69. package/dist/outline.js +171 -0
  70. package/dist/outline.js.map +1 -0
  71. package/dist/persistence.d.ts +82 -0
  72. package/dist/persistence.js +377 -0
  73. package/dist/persistence.js.map +1 -0
  74. package/dist/projection-catalog.d.ts +23 -0
  75. package/dist/projection-catalog.js +45 -0
  76. package/dist/projection-catalog.js.map +1 -0
  77. package/dist/publication.d.ts +59 -0
  78. package/dist/publication.js +11 -0
  79. package/dist/publication.js.map +1 -0
  80. package/dist/reader.d.ts +236 -0
  81. package/dist/reader.js +400 -0
  82. package/dist/reader.js.map +1 -0
  83. package/dist/references.d.ts +54 -0
  84. package/dist/references.js +70 -0
  85. package/dist/references.js.map +1 -0
  86. package/dist/retrieval.d.ts +82 -0
  87. package/dist/retrieval.js +135 -0
  88. package/dist/retrieval.js.map +1 -0
  89. package/dist/search-view.d.ts +11 -0
  90. package/dist/search-view.js +30 -0
  91. package/dist/search-view.js.map +1 -0
  92. package/dist/search.d.ts +95 -0
  93. package/dist/search.js +234 -0
  94. package/dist/search.js.map +1 -0
  95. package/dist/semantic.d.ts +177 -0
  96. package/dist/semantic.js +104 -0
  97. package/dist/semantic.js.map +1 -0
  98. package/dist/skills.d.ts +21 -0
  99. package/dist/skills.js +42 -0
  100. package/dist/skills.js.map +1 -0
  101. package/docs/index.md +10 -0
  102. package/docs/sdk/composition.md +72 -0
  103. package/docs/sdk/reader-storage.md +70 -0
  104. package/docs/sdk/reader.md +99 -0
  105. package/docs/zh-CN/sdk/composition.md +72 -0
  106. package/docs/zh-CN/sdk/reader-storage.md +70 -0
  107. package/docs/zh-CN/sdk/reader.md +99 -0
  108. package/package.json +69 -4
package/dist/node.d.ts ADDED
@@ -0,0 +1,2004 @@
1
+ export * from "./module.js";
2
+ type Software = {
3
+ name: string;
4
+ version: string;
5
+ docsSdk?: unknown;
6
+ };
7
+ type Location = {
8
+ directory: string;
9
+ manifest: Software;
10
+ };
11
+ /** Resolve physical node_modules installs (including workspace symlinks) from the actual importing directory. */
12
+ export declare function findInstalledPackage(fromDirectory: string, name: string, options?: {
13
+ projectRoot?: string;
14
+ }): Promise<Location | undefined>;
15
+ export interface InstallationRead {
16
+ from: string;
17
+ name: string;
18
+ version?: string;
19
+ manifest?: string;
20
+ }
21
+ export interface DiscoveryOptions {
22
+ remoteBases?: readonly string[];
23
+ projectRoot?: string;
24
+ /** Observe actual package lookups, including missing packages and nested import origins. */
25
+ onInstallation?: (read: InstallationRead) => void;
26
+ }
27
+ /** A single operation sees each installed package declaration and opened publication exactly once. */
28
+ export declare function createDocumentationResolver(fromDirectory: string, options?: DiscoveryOptions): {
29
+ find: (name: string) => Promise<Location | undefined>;
30
+ open(name: string): Promise<{
31
+ status: "version-conflict";
32
+ software: {
33
+ name: string;
34
+ version: string;
35
+ };
36
+ documented: {
37
+ name: string;
38
+ version: string;
39
+ };
40
+ } | {
41
+ status: "package-missing";
42
+ package: string;
43
+ base?: undefined;
44
+ software?: undefined;
45
+ inventoryRevision?: undefined;
46
+ } | {
47
+ package?: undefined;
48
+ status: "declaration-missing";
49
+ software: {
50
+ name: string;
51
+ version: string;
52
+ };
53
+ base?: undefined;
54
+ inventoryRevision?: undefined;
55
+ } | {
56
+ package?: undefined;
57
+ status: "remote-denied";
58
+ software: {
59
+ name: string;
60
+ version: string;
61
+ };
62
+ base: string;
63
+ inventoryRevision?: undefined;
64
+ } | {
65
+ package?: undefined;
66
+ base?: undefined;
67
+ status: "sidecar-missing";
68
+ software: {
69
+ name: string;
70
+ version: string;
71
+ };
72
+ inventoryRevision?: undefined;
73
+ } | {
74
+ package?: undefined;
75
+ base?: undefined;
76
+ status: "publication-missing";
77
+ software: {
78
+ name: string;
79
+ version: string;
80
+ };
81
+ inventoryRevision: string;
82
+ } | {
83
+ documented?: undefined;
84
+ status: "opened";
85
+ software: {
86
+ name: string;
87
+ version: string;
88
+ };
89
+ inventoryRevision: string;
90
+ exports: Record<string, import("./module.js").DocumentExport>;
91
+ imports: Record<string, import("./module.js").ModuleImport> | undefined;
92
+ adaptation?: {
93
+ provider: string;
94
+ sources: Record<string, {
95
+ path: string;
96
+ sha256: string;
97
+ kind: "markdown" | "declaration";
98
+ }>;
99
+ } | undefined;
100
+ evidenceFor(name: string, dimensions?: Record<string, string>): Promise<{
101
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
102
+ key: string;
103
+ identity: import("./model.js").Identity & {
104
+ dimensions: Record<string, string>;
105
+ };
106
+ route: string;
107
+ title: string;
108
+ availability?: import("./semantic.js").Context;
109
+ navigationHidden?: boolean;
110
+ outlineView?: import("./outline.js").OutlineView | null;
111
+ description?: string;
112
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
113
+ showMetadata?: readonly string[];
114
+ presentation?: {
115
+ layout?: string | false;
116
+ actions?: readonly {
117
+ text: string;
118
+ href: string;
119
+ }[];
120
+ rendererProfile?: string;
121
+ };
122
+ origin?: {
123
+ kind: "generated" | "overlay" | "authored";
124
+ collection: string;
125
+ source: string;
126
+ upstreamRevision: string;
127
+ authored?: string;
128
+ };
129
+ mode: "template" | "replacement" | "markdown";
130
+ template?: {
131
+ id: string;
132
+ revision: string;
133
+ };
134
+ provenance: import("./model.js").Provenance[];
135
+ markdown: string;
136
+ contextDefaults?: import("./semantic.js").Context;
137
+ contextVariants?: {
138
+ context: import("./semantic.js").Context;
139
+ markdown: string;
140
+ sections: {
141
+ id: string;
142
+ title?: string;
143
+ documentOffset?: number;
144
+ markdown: string;
145
+ provenance: import("./model.js").Provenance[];
146
+ outline?: import("./outline.js").OutlineContribution[];
147
+ headings?: {
148
+ id: string;
149
+ text: string;
150
+ depth: number;
151
+ }[];
152
+ headingRanges?: readonly (readonly [number, number])[];
153
+ outlineRanges?: Record<string, readonly [number, number]>;
154
+ headingFiles?: Record<number, string>;
155
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
156
+ }[];
157
+ }[];
158
+ sections: {
159
+ id: string;
160
+ title?: string;
161
+ documentOffset?: number;
162
+ markdown: string;
163
+ provenance: import("./model.js").Provenance[];
164
+ outline?: import("./outline.js").OutlineContribution[];
165
+ headings?: {
166
+ id: string;
167
+ text: string;
168
+ depth: number;
169
+ }[];
170
+ headingRanges?: readonly (readonly [number, number])[];
171
+ outlineRanges?: Record<string, readonly [number, number]>;
172
+ headingFiles?: Record<number, string>;
173
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
174
+ }[];
175
+ losses?: (import("./model.js").ProjectionLoss & {
176
+ section: string;
177
+ })[];
178
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status"> | undefined;
179
+ status: "published-content";
180
+ entity: string;
181
+ identity: import("./model.js").Identity & {
182
+ dimensions: Record<string, string>;
183
+ };
184
+ mode: "markdown" | "replacement" | "template";
185
+ inventoryRevision: string;
186
+ contentSha256: string;
187
+ provenance: import("./model.js").Provenance[];
188
+ } | {
189
+ status: "not-found";
190
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
191
+ key: string;
192
+ identity: import("./model.js").Identity & {
193
+ dimensions: Record<string, string>;
194
+ };
195
+ route: string;
196
+ title: string;
197
+ availability?: import("./semantic.js").Context;
198
+ navigationHidden?: boolean;
199
+ outlineView?: import("./outline.js").OutlineView | null;
200
+ description?: string;
201
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
202
+ showMetadata?: readonly string[];
203
+ presentation?: {
204
+ layout?: string | false;
205
+ actions?: readonly {
206
+ text: string;
207
+ href: string;
208
+ }[];
209
+ rendererProfile?: string;
210
+ };
211
+ origin?: {
212
+ kind: "generated" | "overlay" | "authored";
213
+ collection: string;
214
+ source: string;
215
+ upstreamRevision: string;
216
+ authored?: string;
217
+ };
218
+ mode: "template" | "replacement" | "markdown";
219
+ template?: {
220
+ id: string;
221
+ revision: string;
222
+ };
223
+ provenance: import("./model.js").Provenance[];
224
+ markdown: string;
225
+ contextDefaults?: import("./semantic.js").Context;
226
+ contextVariants?: {
227
+ context: import("./semantic.js").Context;
228
+ markdown: string;
229
+ sections: {
230
+ id: string;
231
+ title?: string;
232
+ documentOffset?: number;
233
+ markdown: string;
234
+ provenance: import("./model.js").Provenance[];
235
+ outline?: import("./outline.js").OutlineContribution[];
236
+ headings?: {
237
+ id: string;
238
+ text: string;
239
+ depth: number;
240
+ }[];
241
+ headingRanges?: readonly (readonly [number, number])[];
242
+ outlineRanges?: Record<string, readonly [number, number]>;
243
+ headingFiles?: Record<number, string>;
244
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
245
+ }[];
246
+ }[];
247
+ sections: {
248
+ id: string;
249
+ title?: string;
250
+ documentOffset?: number;
251
+ markdown: string;
252
+ provenance: import("./model.js").Provenance[];
253
+ outline?: import("./outline.js").OutlineContribution[];
254
+ headings?: {
255
+ id: string;
256
+ text: string;
257
+ depth: number;
258
+ }[];
259
+ headingRanges?: readonly (readonly [number, number])[];
260
+ outlineRanges?: Record<string, readonly [number, number]>;
261
+ headingFiles?: Record<number, string>;
262
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
263
+ }[];
264
+ losses?: (import("./model.js").ProjectionLoss & {
265
+ section: string;
266
+ })[];
267
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status"> | undefined;
268
+ } | {
269
+ status: "unsupported-context";
270
+ available: import("./semantic.js").Context[];
271
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
272
+ key: string;
273
+ identity: import("./model.js").Identity & {
274
+ dimensions: Record<string, string>;
275
+ };
276
+ route: string;
277
+ title: string;
278
+ availability?: import("./semantic.js").Context;
279
+ navigationHidden?: boolean;
280
+ outlineView?: import("./outline.js").OutlineView | null;
281
+ description?: string;
282
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
283
+ showMetadata?: readonly string[];
284
+ presentation?: {
285
+ layout?: string | false;
286
+ actions?: readonly {
287
+ text: string;
288
+ href: string;
289
+ }[];
290
+ rendererProfile?: string;
291
+ };
292
+ origin?: {
293
+ kind: "generated" | "overlay" | "authored";
294
+ collection: string;
295
+ source: string;
296
+ upstreamRevision: string;
297
+ authored?: string;
298
+ };
299
+ mode: "template" | "replacement" | "markdown";
300
+ template?: {
301
+ id: string;
302
+ revision: string;
303
+ };
304
+ provenance: import("./model.js").Provenance[];
305
+ markdown: string;
306
+ contextDefaults?: import("./semantic.js").Context;
307
+ contextVariants?: {
308
+ context: import("./semantic.js").Context;
309
+ markdown: string;
310
+ sections: {
311
+ id: string;
312
+ title?: string;
313
+ documentOffset?: number;
314
+ markdown: string;
315
+ provenance: import("./model.js").Provenance[];
316
+ outline?: import("./outline.js").OutlineContribution[];
317
+ headings?: {
318
+ id: string;
319
+ text: string;
320
+ depth: number;
321
+ }[];
322
+ headingRanges?: readonly (readonly [number, number])[];
323
+ outlineRanges?: Record<string, readonly [number, number]>;
324
+ headingFiles?: Record<number, string>;
325
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
326
+ }[];
327
+ }[];
328
+ sections: {
329
+ id: string;
330
+ title?: string;
331
+ documentOffset?: number;
332
+ markdown: string;
333
+ provenance: import("./model.js").Provenance[];
334
+ outline?: import("./outline.js").OutlineContribution[];
335
+ headings?: {
336
+ id: string;
337
+ text: string;
338
+ depth: number;
339
+ }[];
340
+ headingRanges?: readonly (readonly [number, number])[];
341
+ outlineRanges?: Record<string, readonly [number, number]>;
342
+ headingFiles?: Record<number, string>;
343
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
344
+ }[];
345
+ losses?: (import("./model.js").ProjectionLoss & {
346
+ section: string;
347
+ })[];
348
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status"> | undefined;
349
+ } | {
350
+ status: "ambiguous";
351
+ candidates: import("./semantic.js").Context[];
352
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
353
+ key: string;
354
+ identity: import("./model.js").Identity & {
355
+ dimensions: Record<string, string>;
356
+ };
357
+ route: string;
358
+ title: string;
359
+ availability?: import("./semantic.js").Context;
360
+ navigationHidden?: boolean;
361
+ outlineView?: import("./outline.js").OutlineView | null;
362
+ description?: string;
363
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
364
+ showMetadata?: readonly string[];
365
+ presentation?: {
366
+ layout?: string | false;
367
+ actions?: readonly {
368
+ text: string;
369
+ href: string;
370
+ }[];
371
+ rendererProfile?: string;
372
+ };
373
+ origin?: {
374
+ kind: "generated" | "overlay" | "authored";
375
+ collection: string;
376
+ source: string;
377
+ upstreamRevision: string;
378
+ authored?: string;
379
+ };
380
+ mode: "template" | "replacement" | "markdown";
381
+ template?: {
382
+ id: string;
383
+ revision: string;
384
+ };
385
+ provenance: import("./model.js").Provenance[];
386
+ markdown: string;
387
+ contextDefaults?: import("./semantic.js").Context;
388
+ contextVariants?: {
389
+ context: import("./semantic.js").Context;
390
+ markdown: string;
391
+ sections: {
392
+ id: string;
393
+ title?: string;
394
+ documentOffset?: number;
395
+ markdown: string;
396
+ provenance: import("./model.js").Provenance[];
397
+ outline?: import("./outline.js").OutlineContribution[];
398
+ headings?: {
399
+ id: string;
400
+ text: string;
401
+ depth: number;
402
+ }[];
403
+ headingRanges?: readonly (readonly [number, number])[];
404
+ outlineRanges?: Record<string, readonly [number, number]>;
405
+ headingFiles?: Record<number, string>;
406
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
407
+ }[];
408
+ }[];
409
+ sections: {
410
+ id: string;
411
+ title?: string;
412
+ documentOffset?: number;
413
+ markdown: string;
414
+ provenance: import("./model.js").Provenance[];
415
+ outline?: import("./outline.js").OutlineContribution[];
416
+ headings?: {
417
+ id: string;
418
+ text: string;
419
+ depth: number;
420
+ }[];
421
+ headingRanges?: readonly (readonly [number, number])[];
422
+ outlineRanges?: Record<string, readonly [number, number]>;
423
+ headingFiles?: Record<number, string>;
424
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
425
+ }[];
426
+ losses?: (import("./model.js").ProjectionLoss & {
427
+ section: string;
428
+ })[];
429
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status"> | undefined;
430
+ } | {
431
+ status: "exact";
432
+ entity: string;
433
+ variant: string;
434
+ revision: string;
435
+ sources: {
436
+ git?: {
437
+ source: string;
438
+ commit: string;
439
+ path: string;
440
+ ownership: "upstream";
441
+ };
442
+ source: string;
443
+ revision?: string;
444
+ symbol?: string;
445
+ layer?: "template" | "collection" | "entry";
446
+ position?: "before" | "body" | "after";
447
+ range?: {
448
+ start: number;
449
+ end: number;
450
+ };
451
+ extractor?: {
452
+ name: string;
453
+ version: string;
454
+ };
455
+ evidence?: import("./semantic.js").Evidence;
456
+ origin: "authored" | "declared" | "extracted" | "inferred" | "unclassified";
457
+ }[];
458
+ checks: import("./evidence.js").FactCheckReceipt[];
459
+ findings?: import("./evidence.js").FactFinding[] | undefined;
460
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
461
+ key: string;
462
+ identity: import("./model.js").Identity & {
463
+ dimensions: Record<string, string>;
464
+ };
465
+ route: string;
466
+ title: string;
467
+ availability?: import("./semantic.js").Context;
468
+ navigationHidden?: boolean;
469
+ outlineView?: import("./outline.js").OutlineView | null;
470
+ description?: string;
471
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
472
+ showMetadata?: readonly string[];
473
+ presentation?: {
474
+ layout?: string | false;
475
+ actions?: readonly {
476
+ text: string;
477
+ href: string;
478
+ }[];
479
+ rendererProfile?: string;
480
+ };
481
+ origin?: {
482
+ kind: "generated" | "overlay" | "authored";
483
+ collection: string;
484
+ source: string;
485
+ upstreamRevision: string;
486
+ authored?: string;
487
+ };
488
+ mode: "template" | "replacement" | "markdown";
489
+ template?: {
490
+ id: string;
491
+ revision: string;
492
+ };
493
+ provenance: import("./model.js").Provenance[];
494
+ markdown: string;
495
+ contextDefaults?: import("./semantic.js").Context;
496
+ contextVariants?: {
497
+ context: import("./semantic.js").Context;
498
+ markdown: string;
499
+ sections: {
500
+ id: string;
501
+ title?: string;
502
+ documentOffset?: number;
503
+ markdown: string;
504
+ provenance: import("./model.js").Provenance[];
505
+ outline?: import("./outline.js").OutlineContribution[];
506
+ headings?: {
507
+ id: string;
508
+ text: string;
509
+ depth: number;
510
+ }[];
511
+ headingRanges?: readonly (readonly [number, number])[];
512
+ outlineRanges?: Record<string, readonly [number, number]>;
513
+ headingFiles?: Record<number, string>;
514
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
515
+ }[];
516
+ }[];
517
+ sections: {
518
+ id: string;
519
+ title?: string;
520
+ documentOffset?: number;
521
+ markdown: string;
522
+ provenance: import("./model.js").Provenance[];
523
+ outline?: import("./outline.js").OutlineContribution[];
524
+ headings?: {
525
+ id: string;
526
+ text: string;
527
+ depth: number;
528
+ }[];
529
+ headingRanges?: readonly (readonly [number, number])[];
530
+ outlineRanges?: Record<string, readonly [number, number]>;
531
+ headingFiles?: Record<number, string>;
532
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
533
+ }[];
534
+ losses?: (import("./model.js").ProjectionLoss & {
535
+ section: string;
536
+ })[];
537
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status"> | undefined;
538
+ }>;
539
+ exportContexts(name: string): Promise<import("./semantic.js").Context[]>;
540
+ consumersOf(name: string, dimensions?: Record<string, string>): Promise<{
541
+ entity: string;
542
+ relation: import("./semantic.js").RelationType;
543
+ provenance: import("./model.js").Provenance[];
544
+ expectedPin: import("./references.js").EntityRevisionPin | undefined;
545
+ }[]>;
546
+ readExport(name: string, dimensions?: Record<string, string>): Promise<{
547
+ status: "not-found";
548
+ } | {
549
+ status: "unsupported-context";
550
+ available: import("./semantic.js").Context[];
551
+ } | {
552
+ status: "ambiguous";
553
+ candidates: import("./semantic.js").Context[];
554
+ } | {
555
+ status: "not-found";
556
+ export: string;
557
+ } | {
558
+ status: "exact";
559
+ kind: "entity";
560
+ software: {
561
+ name: string;
562
+ version: string;
563
+ };
564
+ inventoryRevision: string;
565
+ export: string;
566
+ entity: string;
567
+ value: import("./semantic.js").EntityVariant<unknown>;
568
+ adaptation?: {
569
+ provider: string;
570
+ source: {
571
+ path: string;
572
+ sha256: string;
573
+ kind: "markdown" | "declaration";
574
+ };
575
+ } | undefined;
576
+ } | {
577
+ status: "exact";
578
+ kind: "markdown";
579
+ software: {
580
+ name: string;
581
+ version: string;
582
+ };
583
+ inventoryRevision: string;
584
+ export: string;
585
+ adaptation?: {
586
+ provider: string;
587
+ source: {
588
+ path: string;
589
+ sha256: string;
590
+ kind: "markdown" | "declaration";
591
+ };
592
+ } | undefined;
593
+ entity: string;
594
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
595
+ key: string;
596
+ identity: import("./model.js").Identity & {
597
+ dimensions: Record<string, string>;
598
+ };
599
+ route: string;
600
+ title: string;
601
+ availability?: import("./semantic.js").Context;
602
+ navigationHidden?: boolean;
603
+ outlineView?: import("./outline.js").OutlineView | null;
604
+ description?: string;
605
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
606
+ showMetadata?: readonly string[];
607
+ presentation?: {
608
+ layout?: string | false;
609
+ actions?: readonly {
610
+ text: string;
611
+ href: string;
612
+ }[];
613
+ rendererProfile?: string;
614
+ };
615
+ origin?: {
616
+ kind: "generated" | "overlay" | "authored";
617
+ collection: string;
618
+ source: string;
619
+ upstreamRevision: string;
620
+ authored?: string;
621
+ };
622
+ mode: "template" | "replacement" | "markdown";
623
+ template?: {
624
+ id: string;
625
+ revision: string;
626
+ };
627
+ provenance: import("./model.js").Provenance[];
628
+ markdown: string;
629
+ contextDefaults?: import("./semantic.js").Context;
630
+ contextVariants?: {
631
+ context: import("./semantic.js").Context;
632
+ markdown: string;
633
+ sections: {
634
+ id: string;
635
+ title?: string;
636
+ documentOffset?: number;
637
+ markdown: string;
638
+ provenance: import("./model.js").Provenance[];
639
+ outline?: import("./outline.js").OutlineContribution[];
640
+ headings?: {
641
+ id: string;
642
+ text: string;
643
+ depth: number;
644
+ }[];
645
+ headingRanges?: readonly (readonly [number, number])[];
646
+ outlineRanges?: Record<string, readonly [number, number]>;
647
+ headingFiles?: Record<number, string>;
648
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
649
+ }[];
650
+ }[];
651
+ sections: {
652
+ id: string;
653
+ title?: string;
654
+ documentOffset?: number;
655
+ markdown: string;
656
+ provenance: import("./model.js").Provenance[];
657
+ outline?: import("./outline.js").OutlineContribution[];
658
+ headings?: {
659
+ id: string;
660
+ text: string;
661
+ depth: number;
662
+ }[];
663
+ headingRanges?: readonly (readonly [number, number])[];
664
+ outlineRanges?: Record<string, readonly [number, number]>;
665
+ headingFiles?: Record<number, string>;
666
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
667
+ }[];
668
+ losses?: (import("./model.js").ProjectionLoss & {
669
+ section: string;
670
+ })[];
671
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status"> | undefined;
672
+ route: string;
673
+ losses: (import("./model.js").ProjectionLoss & {
674
+ section: string;
675
+ })[];
676
+ contentSha256: string;
677
+ identity: import("./model.js").Identity & {
678
+ dimensions: Record<string, string>;
679
+ };
680
+ value: import("./document-reader.js").PublishedMarkdownRead;
681
+ }>;
682
+ package?: undefined;
683
+ base?: undefined;
684
+ directory: string;
685
+ }>;
686
+ };
687
+ export declare function discoverDocumentation(fromDirectory: string, name: string, options?: DiscoveryOptions): Promise<{
688
+ status: "version-conflict";
689
+ software: {
690
+ name: string;
691
+ version: string;
692
+ };
693
+ documented: {
694
+ name: string;
695
+ version: string;
696
+ };
697
+ } | {
698
+ status: "package-missing";
699
+ package: string;
700
+ base?: undefined;
701
+ software?: undefined;
702
+ inventoryRevision?: undefined;
703
+ } | {
704
+ package?: undefined;
705
+ status: "declaration-missing";
706
+ software: {
707
+ name: string;
708
+ version: string;
709
+ };
710
+ base?: undefined;
711
+ inventoryRevision?: undefined;
712
+ } | {
713
+ package?: undefined;
714
+ status: "remote-denied";
715
+ software: {
716
+ name: string;
717
+ version: string;
718
+ };
719
+ base: string;
720
+ inventoryRevision?: undefined;
721
+ } | {
722
+ package?: undefined;
723
+ base?: undefined;
724
+ status: "sidecar-missing";
725
+ software: {
726
+ name: string;
727
+ version: string;
728
+ };
729
+ inventoryRevision?: undefined;
730
+ } | {
731
+ package?: undefined;
732
+ base?: undefined;
733
+ status: "publication-missing";
734
+ software: {
735
+ name: string;
736
+ version: string;
737
+ };
738
+ inventoryRevision: string;
739
+ } | {
740
+ documented?: undefined;
741
+ status: "opened";
742
+ software: {
743
+ name: string;
744
+ version: string;
745
+ };
746
+ inventoryRevision: string;
747
+ exports: Record<string, import("./module.js").DocumentExport>;
748
+ imports: Record<string, import("./module.js").ModuleImport> | undefined;
749
+ adaptation?: {
750
+ provider: string;
751
+ sources: Record<string, {
752
+ path: string;
753
+ sha256: string;
754
+ kind: "markdown" | "declaration";
755
+ }>;
756
+ } | undefined;
757
+ evidenceFor(name: string, dimensions?: Record<string, string>): Promise<{
758
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
759
+ key: string;
760
+ identity: import("./model.js").Identity & {
761
+ dimensions: Record<string, string>;
762
+ };
763
+ route: string;
764
+ title: string;
765
+ availability?: import("./semantic.js").Context;
766
+ navigationHidden?: boolean;
767
+ outlineView?: import("./outline.js").OutlineView | null;
768
+ description?: string;
769
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
770
+ showMetadata?: readonly string[];
771
+ presentation?: {
772
+ layout?: string | false;
773
+ actions?: readonly {
774
+ text: string;
775
+ href: string;
776
+ }[];
777
+ rendererProfile?: string;
778
+ };
779
+ origin?: {
780
+ kind: "generated" | "overlay" | "authored";
781
+ collection: string;
782
+ source: string;
783
+ upstreamRevision: string;
784
+ authored?: string;
785
+ };
786
+ mode: "template" | "replacement" | "markdown";
787
+ template?: {
788
+ id: string;
789
+ revision: string;
790
+ };
791
+ provenance: import("./model.js").Provenance[];
792
+ markdown: string;
793
+ contextDefaults?: import("./semantic.js").Context;
794
+ contextVariants?: {
795
+ context: import("./semantic.js").Context;
796
+ markdown: string;
797
+ sections: {
798
+ id: string;
799
+ title?: string;
800
+ documentOffset?: number;
801
+ markdown: string;
802
+ provenance: import("./model.js").Provenance[];
803
+ outline?: import("./outline.js").OutlineContribution[];
804
+ headings?: {
805
+ id: string;
806
+ text: string;
807
+ depth: number;
808
+ }[];
809
+ headingRanges?: readonly (readonly [number, number])[];
810
+ outlineRanges?: Record<string, readonly [number, number]>;
811
+ headingFiles?: Record<number, string>;
812
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
813
+ }[];
814
+ }[];
815
+ sections: {
816
+ id: string;
817
+ title?: string;
818
+ documentOffset?: number;
819
+ markdown: string;
820
+ provenance: import("./model.js").Provenance[];
821
+ outline?: import("./outline.js").OutlineContribution[];
822
+ headings?: {
823
+ id: string;
824
+ text: string;
825
+ depth: number;
826
+ }[];
827
+ headingRanges?: readonly (readonly [number, number])[];
828
+ outlineRanges?: Record<string, readonly [number, number]>;
829
+ headingFiles?: Record<number, string>;
830
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
831
+ }[];
832
+ losses?: (import("./model.js").ProjectionLoss & {
833
+ section: string;
834
+ })[];
835
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status"> | undefined;
836
+ status: "published-content";
837
+ entity: string;
838
+ identity: import("./model.js").Identity & {
839
+ dimensions: Record<string, string>;
840
+ };
841
+ mode: "markdown" | "replacement" | "template";
842
+ inventoryRevision: string;
843
+ contentSha256: string;
844
+ provenance: import("./model.js").Provenance[];
845
+ } | {
846
+ status: "not-found";
847
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
848
+ key: string;
849
+ identity: import("./model.js").Identity & {
850
+ dimensions: Record<string, string>;
851
+ };
852
+ route: string;
853
+ title: string;
854
+ availability?: import("./semantic.js").Context;
855
+ navigationHidden?: boolean;
856
+ outlineView?: import("./outline.js").OutlineView | null;
857
+ description?: string;
858
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
859
+ showMetadata?: readonly string[];
860
+ presentation?: {
861
+ layout?: string | false;
862
+ actions?: readonly {
863
+ text: string;
864
+ href: string;
865
+ }[];
866
+ rendererProfile?: string;
867
+ };
868
+ origin?: {
869
+ kind: "generated" | "overlay" | "authored";
870
+ collection: string;
871
+ source: string;
872
+ upstreamRevision: string;
873
+ authored?: string;
874
+ };
875
+ mode: "template" | "replacement" | "markdown";
876
+ template?: {
877
+ id: string;
878
+ revision: string;
879
+ };
880
+ provenance: import("./model.js").Provenance[];
881
+ markdown: string;
882
+ contextDefaults?: import("./semantic.js").Context;
883
+ contextVariants?: {
884
+ context: import("./semantic.js").Context;
885
+ markdown: string;
886
+ sections: {
887
+ id: string;
888
+ title?: string;
889
+ documentOffset?: number;
890
+ markdown: string;
891
+ provenance: import("./model.js").Provenance[];
892
+ outline?: import("./outline.js").OutlineContribution[];
893
+ headings?: {
894
+ id: string;
895
+ text: string;
896
+ depth: number;
897
+ }[];
898
+ headingRanges?: readonly (readonly [number, number])[];
899
+ outlineRanges?: Record<string, readonly [number, number]>;
900
+ headingFiles?: Record<number, string>;
901
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
902
+ }[];
903
+ }[];
904
+ sections: {
905
+ id: string;
906
+ title?: string;
907
+ documentOffset?: number;
908
+ markdown: string;
909
+ provenance: import("./model.js").Provenance[];
910
+ outline?: import("./outline.js").OutlineContribution[];
911
+ headings?: {
912
+ id: string;
913
+ text: string;
914
+ depth: number;
915
+ }[];
916
+ headingRanges?: readonly (readonly [number, number])[];
917
+ outlineRanges?: Record<string, readonly [number, number]>;
918
+ headingFiles?: Record<number, string>;
919
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
920
+ }[];
921
+ losses?: (import("./model.js").ProjectionLoss & {
922
+ section: string;
923
+ })[];
924
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status"> | undefined;
925
+ } | {
926
+ status: "unsupported-context";
927
+ available: import("./semantic.js").Context[];
928
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
929
+ key: string;
930
+ identity: import("./model.js").Identity & {
931
+ dimensions: Record<string, string>;
932
+ };
933
+ route: string;
934
+ title: string;
935
+ availability?: import("./semantic.js").Context;
936
+ navigationHidden?: boolean;
937
+ outlineView?: import("./outline.js").OutlineView | null;
938
+ description?: string;
939
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
940
+ showMetadata?: readonly string[];
941
+ presentation?: {
942
+ layout?: string | false;
943
+ actions?: readonly {
944
+ text: string;
945
+ href: string;
946
+ }[];
947
+ rendererProfile?: string;
948
+ };
949
+ origin?: {
950
+ kind: "generated" | "overlay" | "authored";
951
+ collection: string;
952
+ source: string;
953
+ upstreamRevision: string;
954
+ authored?: string;
955
+ };
956
+ mode: "template" | "replacement" | "markdown";
957
+ template?: {
958
+ id: string;
959
+ revision: string;
960
+ };
961
+ provenance: import("./model.js").Provenance[];
962
+ markdown: string;
963
+ contextDefaults?: import("./semantic.js").Context;
964
+ contextVariants?: {
965
+ context: import("./semantic.js").Context;
966
+ markdown: string;
967
+ sections: {
968
+ id: string;
969
+ title?: string;
970
+ documentOffset?: number;
971
+ markdown: string;
972
+ provenance: import("./model.js").Provenance[];
973
+ outline?: import("./outline.js").OutlineContribution[];
974
+ headings?: {
975
+ id: string;
976
+ text: string;
977
+ depth: number;
978
+ }[];
979
+ headingRanges?: readonly (readonly [number, number])[];
980
+ outlineRanges?: Record<string, readonly [number, number]>;
981
+ headingFiles?: Record<number, string>;
982
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
983
+ }[];
984
+ }[];
985
+ sections: {
986
+ id: string;
987
+ title?: string;
988
+ documentOffset?: number;
989
+ markdown: string;
990
+ provenance: import("./model.js").Provenance[];
991
+ outline?: import("./outline.js").OutlineContribution[];
992
+ headings?: {
993
+ id: string;
994
+ text: string;
995
+ depth: number;
996
+ }[];
997
+ headingRanges?: readonly (readonly [number, number])[];
998
+ outlineRanges?: Record<string, readonly [number, number]>;
999
+ headingFiles?: Record<number, string>;
1000
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
1001
+ }[];
1002
+ losses?: (import("./model.js").ProjectionLoss & {
1003
+ section: string;
1004
+ })[];
1005
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status"> | undefined;
1006
+ } | {
1007
+ status: "ambiguous";
1008
+ candidates: import("./semantic.js").Context[];
1009
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
1010
+ key: string;
1011
+ identity: import("./model.js").Identity & {
1012
+ dimensions: Record<string, string>;
1013
+ };
1014
+ route: string;
1015
+ title: string;
1016
+ availability?: import("./semantic.js").Context;
1017
+ navigationHidden?: boolean;
1018
+ outlineView?: import("./outline.js").OutlineView | null;
1019
+ description?: string;
1020
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
1021
+ showMetadata?: readonly string[];
1022
+ presentation?: {
1023
+ layout?: string | false;
1024
+ actions?: readonly {
1025
+ text: string;
1026
+ href: string;
1027
+ }[];
1028
+ rendererProfile?: string;
1029
+ };
1030
+ origin?: {
1031
+ kind: "generated" | "overlay" | "authored";
1032
+ collection: string;
1033
+ source: string;
1034
+ upstreamRevision: string;
1035
+ authored?: string;
1036
+ };
1037
+ mode: "template" | "replacement" | "markdown";
1038
+ template?: {
1039
+ id: string;
1040
+ revision: string;
1041
+ };
1042
+ provenance: import("./model.js").Provenance[];
1043
+ markdown: string;
1044
+ contextDefaults?: import("./semantic.js").Context;
1045
+ contextVariants?: {
1046
+ context: import("./semantic.js").Context;
1047
+ markdown: string;
1048
+ sections: {
1049
+ id: string;
1050
+ title?: string;
1051
+ documentOffset?: number;
1052
+ markdown: string;
1053
+ provenance: import("./model.js").Provenance[];
1054
+ outline?: import("./outline.js").OutlineContribution[];
1055
+ headings?: {
1056
+ id: string;
1057
+ text: string;
1058
+ depth: number;
1059
+ }[];
1060
+ headingRanges?: readonly (readonly [number, number])[];
1061
+ outlineRanges?: Record<string, readonly [number, number]>;
1062
+ headingFiles?: Record<number, string>;
1063
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
1064
+ }[];
1065
+ }[];
1066
+ sections: {
1067
+ id: string;
1068
+ title?: string;
1069
+ documentOffset?: number;
1070
+ markdown: string;
1071
+ provenance: import("./model.js").Provenance[];
1072
+ outline?: import("./outline.js").OutlineContribution[];
1073
+ headings?: {
1074
+ id: string;
1075
+ text: string;
1076
+ depth: number;
1077
+ }[];
1078
+ headingRanges?: readonly (readonly [number, number])[];
1079
+ outlineRanges?: Record<string, readonly [number, number]>;
1080
+ headingFiles?: Record<number, string>;
1081
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
1082
+ }[];
1083
+ losses?: (import("./model.js").ProjectionLoss & {
1084
+ section: string;
1085
+ })[];
1086
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status"> | undefined;
1087
+ } | {
1088
+ status: "exact";
1089
+ entity: string;
1090
+ variant: string;
1091
+ revision: string;
1092
+ sources: {
1093
+ git?: {
1094
+ source: string;
1095
+ commit: string;
1096
+ path: string;
1097
+ ownership: "upstream";
1098
+ };
1099
+ source: string;
1100
+ revision?: string;
1101
+ symbol?: string;
1102
+ layer?: "template" | "collection" | "entry";
1103
+ position?: "before" | "body" | "after";
1104
+ range?: {
1105
+ start: number;
1106
+ end: number;
1107
+ };
1108
+ extractor?: {
1109
+ name: string;
1110
+ version: string;
1111
+ };
1112
+ evidence?: import("./semantic.js").Evidence;
1113
+ origin: "authored" | "declared" | "extracted" | "inferred" | "unclassified";
1114
+ }[];
1115
+ checks: import("./evidence.js").FactCheckReceipt[];
1116
+ findings?: import("./evidence.js").FactFinding[] | undefined;
1117
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
1118
+ key: string;
1119
+ identity: import("./model.js").Identity & {
1120
+ dimensions: Record<string, string>;
1121
+ };
1122
+ route: string;
1123
+ title: string;
1124
+ availability?: import("./semantic.js").Context;
1125
+ navigationHidden?: boolean;
1126
+ outlineView?: import("./outline.js").OutlineView | null;
1127
+ description?: string;
1128
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
1129
+ showMetadata?: readonly string[];
1130
+ presentation?: {
1131
+ layout?: string | false;
1132
+ actions?: readonly {
1133
+ text: string;
1134
+ href: string;
1135
+ }[];
1136
+ rendererProfile?: string;
1137
+ };
1138
+ origin?: {
1139
+ kind: "generated" | "overlay" | "authored";
1140
+ collection: string;
1141
+ source: string;
1142
+ upstreamRevision: string;
1143
+ authored?: string;
1144
+ };
1145
+ mode: "template" | "replacement" | "markdown";
1146
+ template?: {
1147
+ id: string;
1148
+ revision: string;
1149
+ };
1150
+ provenance: import("./model.js").Provenance[];
1151
+ markdown: string;
1152
+ contextDefaults?: import("./semantic.js").Context;
1153
+ contextVariants?: {
1154
+ context: import("./semantic.js").Context;
1155
+ markdown: string;
1156
+ sections: {
1157
+ id: string;
1158
+ title?: string;
1159
+ documentOffset?: number;
1160
+ markdown: string;
1161
+ provenance: import("./model.js").Provenance[];
1162
+ outline?: import("./outline.js").OutlineContribution[];
1163
+ headings?: {
1164
+ id: string;
1165
+ text: string;
1166
+ depth: number;
1167
+ }[];
1168
+ headingRanges?: readonly (readonly [number, number])[];
1169
+ outlineRanges?: Record<string, readonly [number, number]>;
1170
+ headingFiles?: Record<number, string>;
1171
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
1172
+ }[];
1173
+ }[];
1174
+ sections: {
1175
+ id: string;
1176
+ title?: string;
1177
+ documentOffset?: number;
1178
+ markdown: string;
1179
+ provenance: import("./model.js").Provenance[];
1180
+ outline?: import("./outline.js").OutlineContribution[];
1181
+ headings?: {
1182
+ id: string;
1183
+ text: string;
1184
+ depth: number;
1185
+ }[];
1186
+ headingRanges?: readonly (readonly [number, number])[];
1187
+ outlineRanges?: Record<string, readonly [number, number]>;
1188
+ headingFiles?: Record<number, string>;
1189
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
1190
+ }[];
1191
+ losses?: (import("./model.js").ProjectionLoss & {
1192
+ section: string;
1193
+ })[];
1194
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status"> | undefined;
1195
+ }>;
1196
+ exportContexts(name: string): Promise<import("./semantic.js").Context[]>;
1197
+ consumersOf(name: string, dimensions?: Record<string, string>): Promise<{
1198
+ entity: string;
1199
+ relation: import("./semantic.js").RelationType;
1200
+ provenance: import("./model.js").Provenance[];
1201
+ expectedPin: import("./references.js").EntityRevisionPin | undefined;
1202
+ }[]>;
1203
+ readExport(name: string, dimensions?: Record<string, string>): Promise<{
1204
+ status: "not-found";
1205
+ } | {
1206
+ status: "unsupported-context";
1207
+ available: import("./semantic.js").Context[];
1208
+ } | {
1209
+ status: "ambiguous";
1210
+ candidates: import("./semantic.js").Context[];
1211
+ } | {
1212
+ status: "not-found";
1213
+ export: string;
1214
+ } | {
1215
+ status: "exact";
1216
+ kind: "entity";
1217
+ software: {
1218
+ name: string;
1219
+ version: string;
1220
+ };
1221
+ inventoryRevision: string;
1222
+ export: string;
1223
+ entity: string;
1224
+ value: import("./semantic.js").EntityVariant<unknown>;
1225
+ adaptation?: {
1226
+ provider: string;
1227
+ source: {
1228
+ path: string;
1229
+ sha256: string;
1230
+ kind: "markdown" | "declaration";
1231
+ };
1232
+ } | undefined;
1233
+ } | {
1234
+ status: "exact";
1235
+ kind: "markdown";
1236
+ software: {
1237
+ name: string;
1238
+ version: string;
1239
+ };
1240
+ inventoryRevision: string;
1241
+ export: string;
1242
+ adaptation?: {
1243
+ provider: string;
1244
+ source: {
1245
+ path: string;
1246
+ sha256: string;
1247
+ kind: "markdown" | "declaration";
1248
+ };
1249
+ } | undefined;
1250
+ entity: string;
1251
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
1252
+ key: string;
1253
+ identity: import("./model.js").Identity & {
1254
+ dimensions: Record<string, string>;
1255
+ };
1256
+ route: string;
1257
+ title: string;
1258
+ availability?: import("./semantic.js").Context;
1259
+ navigationHidden?: boolean;
1260
+ outlineView?: import("./outline.js").OutlineView | null;
1261
+ description?: string;
1262
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
1263
+ showMetadata?: readonly string[];
1264
+ presentation?: {
1265
+ layout?: string | false;
1266
+ actions?: readonly {
1267
+ text: string;
1268
+ href: string;
1269
+ }[];
1270
+ rendererProfile?: string;
1271
+ };
1272
+ origin?: {
1273
+ kind: "generated" | "overlay" | "authored";
1274
+ collection: string;
1275
+ source: string;
1276
+ upstreamRevision: string;
1277
+ authored?: string;
1278
+ };
1279
+ mode: "template" | "replacement" | "markdown";
1280
+ template?: {
1281
+ id: string;
1282
+ revision: string;
1283
+ };
1284
+ provenance: import("./model.js").Provenance[];
1285
+ markdown: string;
1286
+ contextDefaults?: import("./semantic.js").Context;
1287
+ contextVariants?: {
1288
+ context: import("./semantic.js").Context;
1289
+ markdown: string;
1290
+ sections: {
1291
+ id: string;
1292
+ title?: string;
1293
+ documentOffset?: number;
1294
+ markdown: string;
1295
+ provenance: import("./model.js").Provenance[];
1296
+ outline?: import("./outline.js").OutlineContribution[];
1297
+ headings?: {
1298
+ id: string;
1299
+ text: string;
1300
+ depth: number;
1301
+ }[];
1302
+ headingRanges?: readonly (readonly [number, number])[];
1303
+ outlineRanges?: Record<string, readonly [number, number]>;
1304
+ headingFiles?: Record<number, string>;
1305
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
1306
+ }[];
1307
+ }[];
1308
+ sections: {
1309
+ id: string;
1310
+ title?: string;
1311
+ documentOffset?: number;
1312
+ markdown: string;
1313
+ provenance: import("./model.js").Provenance[];
1314
+ outline?: import("./outline.js").OutlineContribution[];
1315
+ headings?: {
1316
+ id: string;
1317
+ text: string;
1318
+ depth: number;
1319
+ }[];
1320
+ headingRanges?: readonly (readonly [number, number])[];
1321
+ outlineRanges?: Record<string, readonly [number, number]>;
1322
+ headingFiles?: Record<number, string>;
1323
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
1324
+ }[];
1325
+ losses?: (import("./model.js").ProjectionLoss & {
1326
+ section: string;
1327
+ })[];
1328
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status"> | undefined;
1329
+ route: string;
1330
+ losses: (import("./model.js").ProjectionLoss & {
1331
+ section: string;
1332
+ })[];
1333
+ contentSha256: string;
1334
+ identity: import("./model.js").Identity & {
1335
+ dimensions: Record<string, string>;
1336
+ };
1337
+ value: import("./document-reader.js").PublishedMarkdownRead;
1338
+ }>;
1339
+ package?: undefined;
1340
+ base?: undefined;
1341
+ directory: string;
1342
+ }>;
1343
+ /** Resolve documentation relative to an importing module, including nested installs. */
1344
+ export declare function openPackageDocs(name: string, { from, ...options }: DiscoveryOptions & {
1345
+ from: URL | string;
1346
+ }): Promise<{
1347
+ status: "version-conflict";
1348
+ software: {
1349
+ name: string;
1350
+ version: string;
1351
+ };
1352
+ documented: {
1353
+ name: string;
1354
+ version: string;
1355
+ };
1356
+ } | {
1357
+ status: "opened";
1358
+ docs: {
1359
+ documented?: undefined;
1360
+ status: "opened";
1361
+ software: {
1362
+ name: string;
1363
+ version: string;
1364
+ };
1365
+ inventoryRevision: string;
1366
+ exports: Record<string, import("./module.js").DocumentExport>;
1367
+ imports: Record<string, import("./module.js").ModuleImport> | undefined;
1368
+ adaptation?: {
1369
+ provider: string;
1370
+ sources: Record<string, {
1371
+ path: string;
1372
+ sha256: string;
1373
+ kind: "markdown" | "declaration";
1374
+ }>;
1375
+ } | undefined;
1376
+ evidenceFor(name: string, dimensions?: Record<string, string>): Promise<{
1377
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
1378
+ key: string;
1379
+ identity: import("./model.js").Identity & {
1380
+ dimensions: Record<string, string>;
1381
+ };
1382
+ route: string;
1383
+ title: string;
1384
+ availability?: import("./semantic.js").Context;
1385
+ navigationHidden?: boolean;
1386
+ outlineView?: import("./outline.js").OutlineView | null;
1387
+ description?: string;
1388
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
1389
+ showMetadata?: readonly string[];
1390
+ presentation?: {
1391
+ layout?: string | false;
1392
+ actions?: readonly {
1393
+ text: string;
1394
+ href: string;
1395
+ }[];
1396
+ rendererProfile?: string;
1397
+ };
1398
+ origin?: {
1399
+ kind: "generated" | "overlay" | "authored";
1400
+ collection: string;
1401
+ source: string;
1402
+ upstreamRevision: string;
1403
+ authored?: string;
1404
+ };
1405
+ mode: "template" | "replacement" | "markdown";
1406
+ template?: {
1407
+ id: string;
1408
+ revision: string;
1409
+ };
1410
+ provenance: import("./model.js").Provenance[];
1411
+ markdown: string;
1412
+ contextDefaults?: import("./semantic.js").Context;
1413
+ contextVariants?: {
1414
+ context: import("./semantic.js").Context;
1415
+ markdown: string;
1416
+ sections: {
1417
+ id: string;
1418
+ title?: string;
1419
+ documentOffset?: number;
1420
+ markdown: string;
1421
+ provenance: import("./model.js").Provenance[];
1422
+ outline?: import("./outline.js").OutlineContribution[];
1423
+ headings?: {
1424
+ id: string;
1425
+ text: string;
1426
+ depth: number;
1427
+ }[];
1428
+ headingRanges?: readonly (readonly [number, number])[];
1429
+ outlineRanges?: Record<string, readonly [number, number]>;
1430
+ headingFiles?: Record<number, string>;
1431
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
1432
+ }[];
1433
+ }[];
1434
+ sections: {
1435
+ id: string;
1436
+ title?: string;
1437
+ documentOffset?: number;
1438
+ markdown: string;
1439
+ provenance: import("./model.js").Provenance[];
1440
+ outline?: import("./outline.js").OutlineContribution[];
1441
+ headings?: {
1442
+ id: string;
1443
+ text: string;
1444
+ depth: number;
1445
+ }[];
1446
+ headingRanges?: readonly (readonly [number, number])[];
1447
+ outlineRanges?: Record<string, readonly [number, number]>;
1448
+ headingFiles?: Record<number, string>;
1449
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
1450
+ }[];
1451
+ losses?: (import("./model.js").ProjectionLoss & {
1452
+ section: string;
1453
+ })[];
1454
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status"> | undefined;
1455
+ status: "published-content";
1456
+ entity: string;
1457
+ identity: import("./model.js").Identity & {
1458
+ dimensions: Record<string, string>;
1459
+ };
1460
+ mode: "markdown" | "replacement" | "template";
1461
+ inventoryRevision: string;
1462
+ contentSha256: string;
1463
+ provenance: import("./model.js").Provenance[];
1464
+ } | {
1465
+ status: "not-found";
1466
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
1467
+ key: string;
1468
+ identity: import("./model.js").Identity & {
1469
+ dimensions: Record<string, string>;
1470
+ };
1471
+ route: string;
1472
+ title: string;
1473
+ availability?: import("./semantic.js").Context;
1474
+ navigationHidden?: boolean;
1475
+ outlineView?: import("./outline.js").OutlineView | null;
1476
+ description?: string;
1477
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
1478
+ showMetadata?: readonly string[];
1479
+ presentation?: {
1480
+ layout?: string | false;
1481
+ actions?: readonly {
1482
+ text: string;
1483
+ href: string;
1484
+ }[];
1485
+ rendererProfile?: string;
1486
+ };
1487
+ origin?: {
1488
+ kind: "generated" | "overlay" | "authored";
1489
+ collection: string;
1490
+ source: string;
1491
+ upstreamRevision: string;
1492
+ authored?: string;
1493
+ };
1494
+ mode: "template" | "replacement" | "markdown";
1495
+ template?: {
1496
+ id: string;
1497
+ revision: string;
1498
+ };
1499
+ provenance: import("./model.js").Provenance[];
1500
+ markdown: string;
1501
+ contextDefaults?: import("./semantic.js").Context;
1502
+ contextVariants?: {
1503
+ context: import("./semantic.js").Context;
1504
+ markdown: string;
1505
+ sections: {
1506
+ id: string;
1507
+ title?: string;
1508
+ documentOffset?: number;
1509
+ markdown: string;
1510
+ provenance: import("./model.js").Provenance[];
1511
+ outline?: import("./outline.js").OutlineContribution[];
1512
+ headings?: {
1513
+ id: string;
1514
+ text: string;
1515
+ depth: number;
1516
+ }[];
1517
+ headingRanges?: readonly (readonly [number, number])[];
1518
+ outlineRanges?: Record<string, readonly [number, number]>;
1519
+ headingFiles?: Record<number, string>;
1520
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
1521
+ }[];
1522
+ }[];
1523
+ sections: {
1524
+ id: string;
1525
+ title?: string;
1526
+ documentOffset?: number;
1527
+ markdown: string;
1528
+ provenance: import("./model.js").Provenance[];
1529
+ outline?: import("./outline.js").OutlineContribution[];
1530
+ headings?: {
1531
+ id: string;
1532
+ text: string;
1533
+ depth: number;
1534
+ }[];
1535
+ headingRanges?: readonly (readonly [number, number])[];
1536
+ outlineRanges?: Record<string, readonly [number, number]>;
1537
+ headingFiles?: Record<number, string>;
1538
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
1539
+ }[];
1540
+ losses?: (import("./model.js").ProjectionLoss & {
1541
+ section: string;
1542
+ })[];
1543
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status"> | undefined;
1544
+ } | {
1545
+ status: "unsupported-context";
1546
+ available: import("./semantic.js").Context[];
1547
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
1548
+ key: string;
1549
+ identity: import("./model.js").Identity & {
1550
+ dimensions: Record<string, string>;
1551
+ };
1552
+ route: string;
1553
+ title: string;
1554
+ availability?: import("./semantic.js").Context;
1555
+ navigationHidden?: boolean;
1556
+ outlineView?: import("./outline.js").OutlineView | null;
1557
+ description?: string;
1558
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
1559
+ showMetadata?: readonly string[];
1560
+ presentation?: {
1561
+ layout?: string | false;
1562
+ actions?: readonly {
1563
+ text: string;
1564
+ href: string;
1565
+ }[];
1566
+ rendererProfile?: string;
1567
+ };
1568
+ origin?: {
1569
+ kind: "generated" | "overlay" | "authored";
1570
+ collection: string;
1571
+ source: string;
1572
+ upstreamRevision: string;
1573
+ authored?: string;
1574
+ };
1575
+ mode: "template" | "replacement" | "markdown";
1576
+ template?: {
1577
+ id: string;
1578
+ revision: string;
1579
+ };
1580
+ provenance: import("./model.js").Provenance[];
1581
+ markdown: string;
1582
+ contextDefaults?: import("./semantic.js").Context;
1583
+ contextVariants?: {
1584
+ context: import("./semantic.js").Context;
1585
+ markdown: string;
1586
+ sections: {
1587
+ id: string;
1588
+ title?: string;
1589
+ documentOffset?: number;
1590
+ markdown: string;
1591
+ provenance: import("./model.js").Provenance[];
1592
+ outline?: import("./outline.js").OutlineContribution[];
1593
+ headings?: {
1594
+ id: string;
1595
+ text: string;
1596
+ depth: number;
1597
+ }[];
1598
+ headingRanges?: readonly (readonly [number, number])[];
1599
+ outlineRanges?: Record<string, readonly [number, number]>;
1600
+ headingFiles?: Record<number, string>;
1601
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
1602
+ }[];
1603
+ }[];
1604
+ sections: {
1605
+ id: string;
1606
+ title?: string;
1607
+ documentOffset?: number;
1608
+ markdown: string;
1609
+ provenance: import("./model.js").Provenance[];
1610
+ outline?: import("./outline.js").OutlineContribution[];
1611
+ headings?: {
1612
+ id: string;
1613
+ text: string;
1614
+ depth: number;
1615
+ }[];
1616
+ headingRanges?: readonly (readonly [number, number])[];
1617
+ outlineRanges?: Record<string, readonly [number, number]>;
1618
+ headingFiles?: Record<number, string>;
1619
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
1620
+ }[];
1621
+ losses?: (import("./model.js").ProjectionLoss & {
1622
+ section: string;
1623
+ })[];
1624
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status"> | undefined;
1625
+ } | {
1626
+ status: "ambiguous";
1627
+ candidates: import("./semantic.js").Context[];
1628
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
1629
+ key: string;
1630
+ identity: import("./model.js").Identity & {
1631
+ dimensions: Record<string, string>;
1632
+ };
1633
+ route: string;
1634
+ title: string;
1635
+ availability?: import("./semantic.js").Context;
1636
+ navigationHidden?: boolean;
1637
+ outlineView?: import("./outline.js").OutlineView | null;
1638
+ description?: string;
1639
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
1640
+ showMetadata?: readonly string[];
1641
+ presentation?: {
1642
+ layout?: string | false;
1643
+ actions?: readonly {
1644
+ text: string;
1645
+ href: string;
1646
+ }[];
1647
+ rendererProfile?: string;
1648
+ };
1649
+ origin?: {
1650
+ kind: "generated" | "overlay" | "authored";
1651
+ collection: string;
1652
+ source: string;
1653
+ upstreamRevision: string;
1654
+ authored?: string;
1655
+ };
1656
+ mode: "template" | "replacement" | "markdown";
1657
+ template?: {
1658
+ id: string;
1659
+ revision: string;
1660
+ };
1661
+ provenance: import("./model.js").Provenance[];
1662
+ markdown: string;
1663
+ contextDefaults?: import("./semantic.js").Context;
1664
+ contextVariants?: {
1665
+ context: import("./semantic.js").Context;
1666
+ markdown: string;
1667
+ sections: {
1668
+ id: string;
1669
+ title?: string;
1670
+ documentOffset?: number;
1671
+ markdown: string;
1672
+ provenance: import("./model.js").Provenance[];
1673
+ outline?: import("./outline.js").OutlineContribution[];
1674
+ headings?: {
1675
+ id: string;
1676
+ text: string;
1677
+ depth: number;
1678
+ }[];
1679
+ headingRanges?: readonly (readonly [number, number])[];
1680
+ outlineRanges?: Record<string, readonly [number, number]>;
1681
+ headingFiles?: Record<number, string>;
1682
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
1683
+ }[];
1684
+ }[];
1685
+ sections: {
1686
+ id: string;
1687
+ title?: string;
1688
+ documentOffset?: number;
1689
+ markdown: string;
1690
+ provenance: import("./model.js").Provenance[];
1691
+ outline?: import("./outline.js").OutlineContribution[];
1692
+ headings?: {
1693
+ id: string;
1694
+ text: string;
1695
+ depth: number;
1696
+ }[];
1697
+ headingRanges?: readonly (readonly [number, number])[];
1698
+ outlineRanges?: Record<string, readonly [number, number]>;
1699
+ headingFiles?: Record<number, string>;
1700
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
1701
+ }[];
1702
+ losses?: (import("./model.js").ProjectionLoss & {
1703
+ section: string;
1704
+ })[];
1705
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status"> | undefined;
1706
+ } | {
1707
+ status: "exact";
1708
+ entity: string;
1709
+ variant: string;
1710
+ revision: string;
1711
+ sources: {
1712
+ git?: {
1713
+ source: string;
1714
+ commit: string;
1715
+ path: string;
1716
+ ownership: "upstream";
1717
+ };
1718
+ source: string;
1719
+ revision?: string;
1720
+ symbol?: string;
1721
+ layer?: "template" | "collection" | "entry";
1722
+ position?: "before" | "body" | "after";
1723
+ range?: {
1724
+ start: number;
1725
+ end: number;
1726
+ };
1727
+ extractor?: {
1728
+ name: string;
1729
+ version: string;
1730
+ };
1731
+ evidence?: import("./semantic.js").Evidence;
1732
+ origin: "authored" | "declared" | "extracted" | "inferred" | "unclassified";
1733
+ }[];
1734
+ checks: import("./evidence.js").FactCheckReceipt[];
1735
+ findings?: import("./evidence.js").FactFinding[] | undefined;
1736
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
1737
+ key: string;
1738
+ identity: import("./model.js").Identity & {
1739
+ dimensions: Record<string, string>;
1740
+ };
1741
+ route: string;
1742
+ title: string;
1743
+ availability?: import("./semantic.js").Context;
1744
+ navigationHidden?: boolean;
1745
+ outlineView?: import("./outline.js").OutlineView | null;
1746
+ description?: string;
1747
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
1748
+ showMetadata?: readonly string[];
1749
+ presentation?: {
1750
+ layout?: string | false;
1751
+ actions?: readonly {
1752
+ text: string;
1753
+ href: string;
1754
+ }[];
1755
+ rendererProfile?: string;
1756
+ };
1757
+ origin?: {
1758
+ kind: "generated" | "overlay" | "authored";
1759
+ collection: string;
1760
+ source: string;
1761
+ upstreamRevision: string;
1762
+ authored?: string;
1763
+ };
1764
+ mode: "template" | "replacement" | "markdown";
1765
+ template?: {
1766
+ id: string;
1767
+ revision: string;
1768
+ };
1769
+ provenance: import("./model.js").Provenance[];
1770
+ markdown: string;
1771
+ contextDefaults?: import("./semantic.js").Context;
1772
+ contextVariants?: {
1773
+ context: import("./semantic.js").Context;
1774
+ markdown: string;
1775
+ sections: {
1776
+ id: string;
1777
+ title?: string;
1778
+ documentOffset?: number;
1779
+ markdown: string;
1780
+ provenance: import("./model.js").Provenance[];
1781
+ outline?: import("./outline.js").OutlineContribution[];
1782
+ headings?: {
1783
+ id: string;
1784
+ text: string;
1785
+ depth: number;
1786
+ }[];
1787
+ headingRanges?: readonly (readonly [number, number])[];
1788
+ outlineRanges?: Record<string, readonly [number, number]>;
1789
+ headingFiles?: Record<number, string>;
1790
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
1791
+ }[];
1792
+ }[];
1793
+ sections: {
1794
+ id: string;
1795
+ title?: string;
1796
+ documentOffset?: number;
1797
+ markdown: string;
1798
+ provenance: import("./model.js").Provenance[];
1799
+ outline?: import("./outline.js").OutlineContribution[];
1800
+ headings?: {
1801
+ id: string;
1802
+ text: string;
1803
+ depth: number;
1804
+ }[];
1805
+ headingRanges?: readonly (readonly [number, number])[];
1806
+ outlineRanges?: Record<string, readonly [number, number]>;
1807
+ headingFiles?: Record<number, string>;
1808
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
1809
+ }[];
1810
+ losses?: (import("./model.js").ProjectionLoss & {
1811
+ section: string;
1812
+ })[];
1813
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status"> | undefined;
1814
+ }>;
1815
+ exportContexts(name: string): Promise<import("./semantic.js").Context[]>;
1816
+ consumersOf(name: string, dimensions?: Record<string, string>): Promise<{
1817
+ entity: string;
1818
+ relation: import("./semantic.js").RelationType;
1819
+ provenance: import("./model.js").Provenance[];
1820
+ expectedPin: import("./references.js").EntityRevisionPin | undefined;
1821
+ }[]>;
1822
+ readExport(name: string, dimensions?: Record<string, string>): Promise<{
1823
+ status: "not-found";
1824
+ } | {
1825
+ status: "unsupported-context";
1826
+ available: import("./semantic.js").Context[];
1827
+ } | {
1828
+ status: "ambiguous";
1829
+ candidates: import("./semantic.js").Context[];
1830
+ } | {
1831
+ status: "not-found";
1832
+ export: string;
1833
+ } | {
1834
+ status: "exact";
1835
+ kind: "entity";
1836
+ software: {
1837
+ name: string;
1838
+ version: string;
1839
+ };
1840
+ inventoryRevision: string;
1841
+ export: string;
1842
+ entity: string;
1843
+ value: import("./semantic.js").EntityVariant<unknown>;
1844
+ adaptation?: {
1845
+ provider: string;
1846
+ source: {
1847
+ path: string;
1848
+ sha256: string;
1849
+ kind: "markdown" | "declaration";
1850
+ };
1851
+ } | undefined;
1852
+ } | {
1853
+ status: "exact";
1854
+ kind: "markdown";
1855
+ software: {
1856
+ name: string;
1857
+ version: string;
1858
+ };
1859
+ inventoryRevision: string;
1860
+ export: string;
1861
+ adaptation?: {
1862
+ provider: string;
1863
+ source: {
1864
+ path: string;
1865
+ sha256: string;
1866
+ kind: "markdown" | "declaration";
1867
+ };
1868
+ } | undefined;
1869
+ entity: string;
1870
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
1871
+ key: string;
1872
+ identity: import("./model.js").Identity & {
1873
+ dimensions: Record<string, string>;
1874
+ };
1875
+ route: string;
1876
+ title: string;
1877
+ availability?: import("./semantic.js").Context;
1878
+ navigationHidden?: boolean;
1879
+ outlineView?: import("./outline.js").OutlineView | null;
1880
+ description?: string;
1881
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
1882
+ showMetadata?: readonly string[];
1883
+ presentation?: {
1884
+ layout?: string | false;
1885
+ actions?: readonly {
1886
+ text: string;
1887
+ href: string;
1888
+ }[];
1889
+ rendererProfile?: string;
1890
+ };
1891
+ origin?: {
1892
+ kind: "generated" | "overlay" | "authored";
1893
+ collection: string;
1894
+ source: string;
1895
+ upstreamRevision: string;
1896
+ authored?: string;
1897
+ };
1898
+ mode: "template" | "replacement" | "markdown";
1899
+ template?: {
1900
+ id: string;
1901
+ revision: string;
1902
+ };
1903
+ provenance: import("./model.js").Provenance[];
1904
+ markdown: string;
1905
+ contextDefaults?: import("./semantic.js").Context;
1906
+ contextVariants?: {
1907
+ context: import("./semantic.js").Context;
1908
+ markdown: string;
1909
+ sections: {
1910
+ id: string;
1911
+ title?: string;
1912
+ documentOffset?: number;
1913
+ markdown: string;
1914
+ provenance: import("./model.js").Provenance[];
1915
+ outline?: import("./outline.js").OutlineContribution[];
1916
+ headings?: {
1917
+ id: string;
1918
+ text: string;
1919
+ depth: number;
1920
+ }[];
1921
+ headingRanges?: readonly (readonly [number, number])[];
1922
+ outlineRanges?: Record<string, readonly [number, number]>;
1923
+ headingFiles?: Record<number, string>;
1924
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
1925
+ }[];
1926
+ }[];
1927
+ sections: {
1928
+ id: string;
1929
+ title?: string;
1930
+ documentOffset?: number;
1931
+ markdown: string;
1932
+ provenance: import("./model.js").Provenance[];
1933
+ outline?: import("./outline.js").OutlineContribution[];
1934
+ headings?: {
1935
+ id: string;
1936
+ text: string;
1937
+ depth: number;
1938
+ }[];
1939
+ headingRanges?: readonly (readonly [number, number])[];
1940
+ outlineRanges?: Record<string, readonly [number, number]>;
1941
+ headingFiles?: Record<number, string>;
1942
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
1943
+ }[];
1944
+ losses?: (import("./model.js").ProjectionLoss & {
1945
+ section: string;
1946
+ })[];
1947
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status"> | undefined;
1948
+ route: string;
1949
+ losses: (import("./model.js").ProjectionLoss & {
1950
+ section: string;
1951
+ })[];
1952
+ contentSha256: string;
1953
+ identity: import("./model.js").Identity & {
1954
+ dimensions: Record<string, string>;
1955
+ };
1956
+ value: import("./document-reader.js").PublishedMarkdownRead;
1957
+ }>;
1958
+ package?: undefined;
1959
+ base?: undefined;
1960
+ directory: string;
1961
+ };
1962
+ } | {
1963
+ status: "package-missing";
1964
+ package: string;
1965
+ base?: undefined;
1966
+ software?: undefined;
1967
+ inventoryRevision?: undefined;
1968
+ } | {
1969
+ package?: undefined;
1970
+ status: "declaration-missing";
1971
+ software: {
1972
+ name: string;
1973
+ version: string;
1974
+ };
1975
+ base?: undefined;
1976
+ inventoryRevision?: undefined;
1977
+ } | {
1978
+ package?: undefined;
1979
+ status: "remote-denied";
1980
+ software: {
1981
+ name: string;
1982
+ version: string;
1983
+ };
1984
+ base: string;
1985
+ inventoryRevision?: undefined;
1986
+ } | {
1987
+ package?: undefined;
1988
+ base?: undefined;
1989
+ status: "sidecar-missing";
1990
+ software: {
1991
+ name: string;
1992
+ version: string;
1993
+ };
1994
+ inventoryRevision?: undefined;
1995
+ } | {
1996
+ package?: undefined;
1997
+ base?: undefined;
1998
+ status: "publication-missing";
1999
+ software: {
2000
+ name: string;
2001
+ version: string;
2002
+ };
2003
+ inventoryRevision: string;
2004
+ }>;