@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
@@ -0,0 +1,1396 @@
1
+ import { type PublicationHost } from "./document-reader.js";
2
+ import type { OpenDocumentModule } from "./module.js";
3
+ import { doc, type ContentView, type packageDoc } from "./references.js";
4
+ import type { CollectionRecord } from "./collection-view.js";
5
+ import { type Context, type EntityType } from "./semantic.js";
6
+ import type { RetrievalQueryOptions, SearchDefinition } from "./retrieval.js";
7
+ type LocalRef = string | ReturnType<typeof doc>;
8
+ type PackageRef = ReturnType<typeof packageDoc>;
9
+ type ContextBound<Reader> = Reader & {
10
+ withContext(dimensions: Context): ContextBound<Reader>;
11
+ };
12
+ export declare function openDocs({ revision, host, packages, publicSearch, }: {
13
+ revision: string;
14
+ host: PublicationHost;
15
+ packages?: readonly OpenDocumentModule[];
16
+ /** Opt in only for pinned public artifacts. The adapter receives search queries. */
17
+ publicSearch?: SearchDefinition;
18
+ }): Promise<ContextBound<{
19
+ revision: string;
20
+ read: (ref: string | ReturnType<typeof doc>, options?: {
21
+ section?: string;
22
+ fallback?: Context;
23
+ }) => Promise<{
24
+ status: "unavailable";
25
+ available: Context[];
26
+ } | {
27
+ available?: undefined;
28
+ status: "missing";
29
+ } | {
30
+ available?: undefined;
31
+ status: "exact" | "fallback";
32
+ value: import("./document-reader.js").PublishedMarkdownRead;
33
+ identity: import("./model.js").Identity & {
34
+ dimensions: Record<string, string>;
35
+ };
36
+ revision: string;
37
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
38
+ key: string;
39
+ identity: import("./model.js").Identity & {
40
+ dimensions: Record<string, string>;
41
+ };
42
+ route: string;
43
+ title: string;
44
+ availability?: Context;
45
+ navigationHidden?: boolean;
46
+ outlineView?: import("./outline.js").OutlineView | null;
47
+ description?: string;
48
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
49
+ showMetadata?: readonly string[];
50
+ presentation?: {
51
+ layout?: string | false;
52
+ actions?: readonly {
53
+ text: string;
54
+ href: string;
55
+ }[];
56
+ rendererProfile?: string;
57
+ };
58
+ origin?: {
59
+ kind: "generated" | "overlay" | "authored";
60
+ collection: string;
61
+ source: string;
62
+ upstreamRevision: string;
63
+ authored?: string;
64
+ };
65
+ mode: "template" | "replacement" | "markdown";
66
+ template?: {
67
+ id: string;
68
+ revision: string;
69
+ };
70
+ provenance: import("./model.js").Provenance[];
71
+ markdown: string;
72
+ contextDefaults?: Context;
73
+ contextVariants?: {
74
+ context: Context;
75
+ markdown: string;
76
+ sections: {
77
+ id: string;
78
+ title?: string;
79
+ documentOffset?: number;
80
+ markdown: string;
81
+ provenance: import("./model.js").Provenance[];
82
+ outline?: import("./outline.js").OutlineContribution[];
83
+ headings?: {
84
+ id: string;
85
+ text: string;
86
+ depth: number;
87
+ }[];
88
+ headingRanges?: readonly (readonly [number, number])[];
89
+ outlineRanges?: Record<string, readonly [number, number]>;
90
+ headingFiles?: Record<number, string>;
91
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
92
+ }[];
93
+ }[];
94
+ sections: {
95
+ id: string;
96
+ title?: string;
97
+ documentOffset?: number;
98
+ markdown: string;
99
+ provenance: import("./model.js").Provenance[];
100
+ outline?: import("./outline.js").OutlineContribution[];
101
+ headings?: {
102
+ id: string;
103
+ text: string;
104
+ depth: number;
105
+ }[];
106
+ headingRanges?: readonly (readonly [number, number])[];
107
+ outlineRanges?: Record<string, readonly [number, number]>;
108
+ headingFiles?: Record<number, string>;
109
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
110
+ }[];
111
+ losses?: (import("./model.js").ProjectionLoss & {
112
+ section: string;
113
+ })[];
114
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status"> | undefined;
115
+ } | ({
116
+ status: "ambiguous";
117
+ candidates: Context[];
118
+ } & {
119
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
120
+ key: string;
121
+ identity: import("./model.js").Identity & {
122
+ dimensions: Record<string, string>;
123
+ };
124
+ route: string;
125
+ title: string;
126
+ availability?: Context;
127
+ navigationHidden?: boolean;
128
+ outlineView?: import("./outline.js").OutlineView | null;
129
+ description?: string;
130
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
131
+ showMetadata?: readonly string[];
132
+ presentation?: {
133
+ layout?: string | false;
134
+ actions?: readonly {
135
+ text: string;
136
+ href: string;
137
+ }[];
138
+ rendererProfile?: string;
139
+ };
140
+ origin?: {
141
+ kind: "generated" | "overlay" | "authored";
142
+ collection: string;
143
+ source: string;
144
+ upstreamRevision: string;
145
+ authored?: string;
146
+ };
147
+ mode: "template" | "replacement" | "markdown";
148
+ template?: {
149
+ id: string;
150
+ revision: string;
151
+ };
152
+ provenance: import("./model.js").Provenance[];
153
+ markdown: string;
154
+ contextDefaults?: Context;
155
+ contextVariants?: {
156
+ context: Context;
157
+ markdown: string;
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
+ }[];
176
+ sections: {
177
+ id: string;
178
+ title?: string;
179
+ documentOffset?: number;
180
+ markdown: string;
181
+ provenance: import("./model.js").Provenance[];
182
+ outline?: import("./outline.js").OutlineContribution[];
183
+ headings?: {
184
+ id: string;
185
+ text: string;
186
+ depth: number;
187
+ }[];
188
+ headingRanges?: readonly (readonly [number, number])[];
189
+ outlineRanges?: Record<string, readonly [number, number]>;
190
+ headingFiles?: Record<number, string>;
191
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
192
+ }[];
193
+ losses?: (import("./model.js").ProjectionLoss & {
194
+ section: string;
195
+ })[];
196
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status">;
197
+ })>;
198
+ readPackage: (ref: PackageRef) => Promise<{
199
+ status: "ambiguous";
200
+ candidates: Context[];
201
+ } | {
202
+ status: "exact";
203
+ kind: "markdown";
204
+ software: {
205
+ name: string;
206
+ version: string;
207
+ };
208
+ inventoryRevision: string;
209
+ export: string;
210
+ adaptation?: {
211
+ provider: string;
212
+ source: {
213
+ path: string;
214
+ sha256: string;
215
+ kind: "markdown" | "declaration";
216
+ };
217
+ } | undefined;
218
+ entity: string;
219
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
220
+ key: string;
221
+ identity: import("./model.js").Identity & {
222
+ dimensions: Record<string, string>;
223
+ };
224
+ route: string;
225
+ title: string;
226
+ availability?: Context;
227
+ navigationHidden?: boolean;
228
+ outlineView?: import("./outline.js").OutlineView | null;
229
+ description?: string;
230
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
231
+ showMetadata?: readonly string[];
232
+ presentation?: {
233
+ layout?: string | false;
234
+ actions?: readonly {
235
+ text: string;
236
+ href: string;
237
+ }[];
238
+ rendererProfile?: string;
239
+ };
240
+ origin?: {
241
+ kind: "generated" | "overlay" | "authored";
242
+ collection: string;
243
+ source: string;
244
+ upstreamRevision: string;
245
+ authored?: string;
246
+ };
247
+ mode: "template" | "replacement" | "markdown";
248
+ template?: {
249
+ id: string;
250
+ revision: string;
251
+ };
252
+ provenance: import("./model.js").Provenance[];
253
+ markdown: string;
254
+ contextDefaults?: Context;
255
+ contextVariants?: {
256
+ context: Context;
257
+ markdown: string;
258
+ sections: {
259
+ id: string;
260
+ title?: string;
261
+ documentOffset?: number;
262
+ markdown: string;
263
+ provenance: import("./model.js").Provenance[];
264
+ outline?: import("./outline.js").OutlineContribution[];
265
+ headings?: {
266
+ id: string;
267
+ text: string;
268
+ depth: number;
269
+ }[];
270
+ headingRanges?: readonly (readonly [number, number])[];
271
+ outlineRanges?: Record<string, readonly [number, number]>;
272
+ headingFiles?: Record<number, string>;
273
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
274
+ }[];
275
+ }[];
276
+ sections: {
277
+ id: string;
278
+ title?: string;
279
+ documentOffset?: number;
280
+ markdown: string;
281
+ provenance: import("./model.js").Provenance[];
282
+ outline?: import("./outline.js").OutlineContribution[];
283
+ headings?: {
284
+ id: string;
285
+ text: string;
286
+ depth: number;
287
+ }[];
288
+ headingRanges?: readonly (readonly [number, number])[];
289
+ outlineRanges?: Record<string, readonly [number, number]>;
290
+ headingFiles?: Record<number, string>;
291
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
292
+ }[];
293
+ losses?: (import("./model.js").ProjectionLoss & {
294
+ section: string;
295
+ })[];
296
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status"> | undefined;
297
+ route: string;
298
+ losses: (import("./model.js").ProjectionLoss & {
299
+ section: string;
300
+ })[];
301
+ contentSha256: string;
302
+ identity: import("./model.js").Identity & {
303
+ dimensions: Record<string, string>;
304
+ };
305
+ value: import("./document-reader.js").PublishedMarkdownRead;
306
+ } | {
307
+ available?: undefined;
308
+ status: "missing";
309
+ ref: {
310
+ package: string;
311
+ export: string;
312
+ };
313
+ } | {
314
+ status: "unavailable";
315
+ available: Context[];
316
+ ref: {
317
+ package: string;
318
+ export: string;
319
+ };
320
+ }>;
321
+ compose: {
322
+ (refs: readonly LocalRef[]): Promise<Awaited<ReturnType<(ref: string | ReturnType<typeof doc>, options?: {
323
+ section?: string;
324
+ fallback?: Context;
325
+ }) => Promise<{
326
+ status: "unavailable";
327
+ available: Context[];
328
+ } | {
329
+ available?: undefined;
330
+ status: "missing";
331
+ } | {
332
+ available?: undefined;
333
+ status: "exact" | "fallback";
334
+ value: import("./document-reader.js").PublishedMarkdownRead;
335
+ identity: import("./model.js").Identity & {
336
+ dimensions: Record<string, string>;
337
+ };
338
+ revision: string;
339
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
340
+ key: string;
341
+ identity: import("./model.js").Identity & {
342
+ dimensions: Record<string, string>;
343
+ };
344
+ route: string;
345
+ title: string;
346
+ availability?: Context;
347
+ navigationHidden?: boolean;
348
+ outlineView?: import("./outline.js").OutlineView | null;
349
+ description?: string;
350
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
351
+ showMetadata?: readonly string[];
352
+ presentation?: {
353
+ layout?: string | false;
354
+ actions?: readonly {
355
+ text: string;
356
+ href: string;
357
+ }[];
358
+ rendererProfile?: string;
359
+ };
360
+ origin?: {
361
+ kind: "generated" | "overlay" | "authored";
362
+ collection: string;
363
+ source: string;
364
+ upstreamRevision: string;
365
+ authored?: string;
366
+ };
367
+ mode: "template" | "replacement" | "markdown";
368
+ template?: {
369
+ id: string;
370
+ revision: string;
371
+ };
372
+ provenance: import("./model.js").Provenance[];
373
+ markdown: string;
374
+ contextDefaults?: Context;
375
+ contextVariants?: {
376
+ context: Context;
377
+ markdown: string;
378
+ sections: {
379
+ id: string;
380
+ title?: string;
381
+ documentOffset?: number;
382
+ markdown: string;
383
+ provenance: import("./model.js").Provenance[];
384
+ outline?: import("./outline.js").OutlineContribution[];
385
+ headings?: {
386
+ id: string;
387
+ text: string;
388
+ depth: number;
389
+ }[];
390
+ headingRanges?: readonly (readonly [number, number])[];
391
+ outlineRanges?: Record<string, readonly [number, number]>;
392
+ headingFiles?: Record<number, string>;
393
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
394
+ }[];
395
+ }[];
396
+ sections: {
397
+ id: string;
398
+ title?: string;
399
+ documentOffset?: number;
400
+ markdown: string;
401
+ provenance: import("./model.js").Provenance[];
402
+ outline?: import("./outline.js").OutlineContribution[];
403
+ headings?: {
404
+ id: string;
405
+ text: string;
406
+ depth: number;
407
+ }[];
408
+ headingRanges?: readonly (readonly [number, number])[];
409
+ outlineRanges?: Record<string, readonly [number, number]>;
410
+ headingFiles?: Record<number, string>;
411
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
412
+ }[];
413
+ losses?: (import("./model.js").ProjectionLoss & {
414
+ section: string;
415
+ })[];
416
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status"> | undefined;
417
+ } | ({
418
+ status: "ambiguous";
419
+ candidates: Context[];
420
+ } & {
421
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
422
+ key: string;
423
+ identity: import("./model.js").Identity & {
424
+ dimensions: Record<string, string>;
425
+ };
426
+ route: string;
427
+ title: string;
428
+ availability?: Context;
429
+ navigationHidden?: boolean;
430
+ outlineView?: import("./outline.js").OutlineView | null;
431
+ description?: string;
432
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
433
+ showMetadata?: readonly string[];
434
+ presentation?: {
435
+ layout?: string | false;
436
+ actions?: readonly {
437
+ text: string;
438
+ href: string;
439
+ }[];
440
+ rendererProfile?: string;
441
+ };
442
+ origin?: {
443
+ kind: "generated" | "overlay" | "authored";
444
+ collection: string;
445
+ source: string;
446
+ upstreamRevision: string;
447
+ authored?: string;
448
+ };
449
+ mode: "template" | "replacement" | "markdown";
450
+ template?: {
451
+ id: string;
452
+ revision: string;
453
+ };
454
+ provenance: import("./model.js").Provenance[];
455
+ markdown: string;
456
+ contextDefaults?: Context;
457
+ contextVariants?: {
458
+ context: Context;
459
+ markdown: string;
460
+ sections: {
461
+ id: string;
462
+ title?: string;
463
+ documentOffset?: number;
464
+ markdown: string;
465
+ provenance: import("./model.js").Provenance[];
466
+ outline?: import("./outline.js").OutlineContribution[];
467
+ headings?: {
468
+ id: string;
469
+ text: string;
470
+ depth: number;
471
+ }[];
472
+ headingRanges?: readonly (readonly [number, number])[];
473
+ outlineRanges?: Record<string, readonly [number, number]>;
474
+ headingFiles?: Record<number, string>;
475
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
476
+ }[];
477
+ }[];
478
+ sections: {
479
+ id: string;
480
+ title?: string;
481
+ documentOffset?: number;
482
+ markdown: string;
483
+ provenance: import("./model.js").Provenance[];
484
+ outline?: import("./outline.js").OutlineContribution[];
485
+ headings?: {
486
+ id: string;
487
+ text: string;
488
+ depth: number;
489
+ }[];
490
+ headingRanges?: readonly (readonly [number, number])[];
491
+ outlineRanges?: Record<string, readonly [number, number]>;
492
+ headingFiles?: Record<number, string>;
493
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
494
+ }[];
495
+ losses?: (import("./model.js").ProjectionLoss & {
496
+ section: string;
497
+ })[];
498
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status">;
499
+ })>>>[]>;
500
+ (refs: readonly (LocalRef | PackageRef)[] | ContentView): Promise<(Awaited<ReturnType<(ref: string | ReturnType<typeof doc>, options?: {
501
+ section?: string;
502
+ fallback?: Context;
503
+ }) => Promise<{
504
+ status: "unavailable";
505
+ available: Context[];
506
+ } | {
507
+ available?: undefined;
508
+ status: "missing";
509
+ } | {
510
+ available?: undefined;
511
+ status: "exact" | "fallback";
512
+ value: import("./document-reader.js").PublishedMarkdownRead;
513
+ identity: import("./model.js").Identity & {
514
+ dimensions: Record<string, string>;
515
+ };
516
+ revision: string;
517
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
518
+ key: string;
519
+ identity: import("./model.js").Identity & {
520
+ dimensions: Record<string, string>;
521
+ };
522
+ route: string;
523
+ title: string;
524
+ availability?: Context;
525
+ navigationHidden?: boolean;
526
+ outlineView?: import("./outline.js").OutlineView | null;
527
+ description?: string;
528
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
529
+ showMetadata?: readonly string[];
530
+ presentation?: {
531
+ layout?: string | false;
532
+ actions?: readonly {
533
+ text: string;
534
+ href: string;
535
+ }[];
536
+ rendererProfile?: string;
537
+ };
538
+ origin?: {
539
+ kind: "generated" | "overlay" | "authored";
540
+ collection: string;
541
+ source: string;
542
+ upstreamRevision: string;
543
+ authored?: string;
544
+ };
545
+ mode: "template" | "replacement" | "markdown";
546
+ template?: {
547
+ id: string;
548
+ revision: string;
549
+ };
550
+ provenance: import("./model.js").Provenance[];
551
+ markdown: string;
552
+ contextDefaults?: Context;
553
+ contextVariants?: {
554
+ context: Context;
555
+ markdown: string;
556
+ sections: {
557
+ id: string;
558
+ title?: string;
559
+ documentOffset?: number;
560
+ markdown: string;
561
+ provenance: import("./model.js").Provenance[];
562
+ outline?: import("./outline.js").OutlineContribution[];
563
+ headings?: {
564
+ id: string;
565
+ text: string;
566
+ depth: number;
567
+ }[];
568
+ headingRanges?: readonly (readonly [number, number])[];
569
+ outlineRanges?: Record<string, readonly [number, number]>;
570
+ headingFiles?: Record<number, string>;
571
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
572
+ }[];
573
+ }[];
574
+ sections: {
575
+ id: string;
576
+ title?: string;
577
+ documentOffset?: number;
578
+ markdown: string;
579
+ provenance: import("./model.js").Provenance[];
580
+ outline?: import("./outline.js").OutlineContribution[];
581
+ headings?: {
582
+ id: string;
583
+ text: string;
584
+ depth: number;
585
+ }[];
586
+ headingRanges?: readonly (readonly [number, number])[];
587
+ outlineRanges?: Record<string, readonly [number, number]>;
588
+ headingFiles?: Record<number, string>;
589
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
590
+ }[];
591
+ losses?: (import("./model.js").ProjectionLoss & {
592
+ section: string;
593
+ })[];
594
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status"> | undefined;
595
+ } | ({
596
+ status: "ambiguous";
597
+ candidates: Context[];
598
+ } & {
599
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
600
+ key: string;
601
+ identity: import("./model.js").Identity & {
602
+ dimensions: Record<string, string>;
603
+ };
604
+ route: string;
605
+ title: string;
606
+ availability?: Context;
607
+ navigationHidden?: boolean;
608
+ outlineView?: import("./outline.js").OutlineView | null;
609
+ description?: string;
610
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
611
+ showMetadata?: readonly string[];
612
+ presentation?: {
613
+ layout?: string | false;
614
+ actions?: readonly {
615
+ text: string;
616
+ href: string;
617
+ }[];
618
+ rendererProfile?: string;
619
+ };
620
+ origin?: {
621
+ kind: "generated" | "overlay" | "authored";
622
+ collection: string;
623
+ source: string;
624
+ upstreamRevision: string;
625
+ authored?: string;
626
+ };
627
+ mode: "template" | "replacement" | "markdown";
628
+ template?: {
629
+ id: string;
630
+ revision: string;
631
+ };
632
+ provenance: import("./model.js").Provenance[];
633
+ markdown: string;
634
+ contextDefaults?: Context;
635
+ contextVariants?: {
636
+ context: Context;
637
+ markdown: string;
638
+ sections: {
639
+ id: string;
640
+ title?: string;
641
+ documentOffset?: number;
642
+ markdown: string;
643
+ provenance: import("./model.js").Provenance[];
644
+ outline?: import("./outline.js").OutlineContribution[];
645
+ headings?: {
646
+ id: string;
647
+ text: string;
648
+ depth: number;
649
+ }[];
650
+ headingRanges?: readonly (readonly [number, number])[];
651
+ outlineRanges?: Record<string, readonly [number, number]>;
652
+ headingFiles?: Record<number, string>;
653
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
654
+ }[];
655
+ }[];
656
+ sections: {
657
+ id: string;
658
+ title?: string;
659
+ documentOffset?: number;
660
+ markdown: string;
661
+ provenance: import("./model.js").Provenance[];
662
+ outline?: import("./outline.js").OutlineContribution[];
663
+ headings?: {
664
+ id: string;
665
+ text: string;
666
+ depth: number;
667
+ }[];
668
+ headingRanges?: readonly (readonly [number, number])[];
669
+ outlineRanges?: Record<string, readonly [number, number]>;
670
+ headingFiles?: Record<number, string>;
671
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
672
+ }[];
673
+ losses?: (import("./model.js").ProjectionLoss & {
674
+ section: string;
675
+ })[];
676
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status">;
677
+ })>>> | Awaited<ReturnType<(ref: PackageRef) => Promise<{
678
+ status: "ambiguous";
679
+ candidates: Context[];
680
+ } | {
681
+ status: "exact";
682
+ kind: "markdown";
683
+ software: {
684
+ name: string;
685
+ version: string;
686
+ };
687
+ inventoryRevision: string;
688
+ export: string;
689
+ adaptation?: {
690
+ provider: string;
691
+ source: {
692
+ path: string;
693
+ sha256: string;
694
+ kind: "markdown" | "declaration";
695
+ };
696
+ } | undefined;
697
+ entity: string;
698
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
699
+ key: string;
700
+ identity: import("./model.js").Identity & {
701
+ dimensions: Record<string, string>;
702
+ };
703
+ route: string;
704
+ title: string;
705
+ availability?: Context;
706
+ navigationHidden?: boolean;
707
+ outlineView?: import("./outline.js").OutlineView | null;
708
+ description?: string;
709
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
710
+ showMetadata?: readonly string[];
711
+ presentation?: {
712
+ layout?: string | false;
713
+ actions?: readonly {
714
+ text: string;
715
+ href: string;
716
+ }[];
717
+ rendererProfile?: string;
718
+ };
719
+ origin?: {
720
+ kind: "generated" | "overlay" | "authored";
721
+ collection: string;
722
+ source: string;
723
+ upstreamRevision: string;
724
+ authored?: string;
725
+ };
726
+ mode: "template" | "replacement" | "markdown";
727
+ template?: {
728
+ id: string;
729
+ revision: string;
730
+ };
731
+ provenance: import("./model.js").Provenance[];
732
+ markdown: string;
733
+ contextDefaults?: Context;
734
+ contextVariants?: {
735
+ context: Context;
736
+ markdown: string;
737
+ sections: {
738
+ id: string;
739
+ title?: string;
740
+ documentOffset?: number;
741
+ markdown: string;
742
+ provenance: import("./model.js").Provenance[];
743
+ outline?: import("./outline.js").OutlineContribution[];
744
+ headings?: {
745
+ id: string;
746
+ text: string;
747
+ depth: number;
748
+ }[];
749
+ headingRanges?: readonly (readonly [number, number])[];
750
+ outlineRanges?: Record<string, readonly [number, number]>;
751
+ headingFiles?: Record<number, string>;
752
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
753
+ }[];
754
+ }[];
755
+ sections: {
756
+ id: string;
757
+ title?: string;
758
+ documentOffset?: number;
759
+ markdown: string;
760
+ provenance: import("./model.js").Provenance[];
761
+ outline?: import("./outline.js").OutlineContribution[];
762
+ headings?: {
763
+ id: string;
764
+ text: string;
765
+ depth: number;
766
+ }[];
767
+ headingRanges?: readonly (readonly [number, number])[];
768
+ outlineRanges?: Record<string, readonly [number, number]>;
769
+ headingFiles?: Record<number, string>;
770
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
771
+ }[];
772
+ losses?: (import("./model.js").ProjectionLoss & {
773
+ section: string;
774
+ })[];
775
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status"> | undefined;
776
+ route: string;
777
+ losses: (import("./model.js").ProjectionLoss & {
778
+ section: string;
779
+ })[];
780
+ contentSha256: string;
781
+ identity: import("./model.js").Identity & {
782
+ dimensions: Record<string, string>;
783
+ };
784
+ value: import("./document-reader.js").PublishedMarkdownRead;
785
+ } | {
786
+ available?: undefined;
787
+ status: "missing";
788
+ ref: {
789
+ package: string;
790
+ export: string;
791
+ };
792
+ } | {
793
+ status: "unavailable";
794
+ available: Context[];
795
+ ref: {
796
+ package: string;
797
+ export: string;
798
+ };
799
+ }>>>)[]>;
800
+ };
801
+ manifest: import("./document-reader.js").Manifest;
802
+ readText: (path: string) => Promise<string>;
803
+ reader: {
804
+ lookup: (identity: import("./model.js").Identity) => {
805
+ key: string;
806
+ identity: import("./model.js").Identity & {
807
+ dimensions: Record<string, string>;
808
+ };
809
+ route: string;
810
+ title: string;
811
+ availability?: Context;
812
+ navigationHidden?: boolean;
813
+ outlineView?: import("./outline.js").OutlineView | null;
814
+ description?: string;
815
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
816
+ showMetadata?: readonly string[];
817
+ presentation?: {
818
+ layout?: string | false;
819
+ actions?: readonly {
820
+ text: string;
821
+ href: string;
822
+ }[];
823
+ rendererProfile?: string;
824
+ };
825
+ origin?: {
826
+ kind: "generated" | "overlay" | "authored";
827
+ collection: string;
828
+ source: string;
829
+ upstreamRevision: string;
830
+ authored?: string;
831
+ };
832
+ mode: "template" | "replacement" | "markdown";
833
+ template?: {
834
+ id: string;
835
+ revision: string;
836
+ };
837
+ provenance: import("./model.js").Provenance[];
838
+ markdown: string;
839
+ contextDefaults?: Context;
840
+ contextVariants?: {
841
+ context: Context;
842
+ markdown: string;
843
+ sections: {
844
+ id: string;
845
+ title?: string;
846
+ documentOffset?: number;
847
+ markdown: string;
848
+ provenance: import("./model.js").Provenance[];
849
+ outline?: import("./outline.js").OutlineContribution[];
850
+ headings?: {
851
+ id: string;
852
+ text: string;
853
+ depth: number;
854
+ }[];
855
+ headingRanges?: readonly (readonly [number, number])[];
856
+ outlineRanges?: Record<string, readonly [number, number]>;
857
+ headingFiles?: Record<number, string>;
858
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
859
+ }[];
860
+ }[];
861
+ sections: {
862
+ id: string;
863
+ title?: string;
864
+ documentOffset?: number;
865
+ markdown: string;
866
+ provenance: import("./model.js").Provenance[];
867
+ outline?: import("./outline.js").OutlineContribution[];
868
+ headings?: {
869
+ id: string;
870
+ text: string;
871
+ depth: number;
872
+ }[];
873
+ headingRanges?: readonly (readonly [number, number])[];
874
+ outlineRanges?: Record<string, readonly [number, number]>;
875
+ headingFiles?: Record<number, string>;
876
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
877
+ }[];
878
+ losses?: (import("./model.js").ProjectionLoss & {
879
+ section: string;
880
+ })[];
881
+ } | null;
882
+ projection: (identity: import("./model.js").Identity, requested?: Context) => {
883
+ key: string;
884
+ identity: import("./model.js").Identity & {
885
+ dimensions: Record<string, string>;
886
+ };
887
+ route: string;
888
+ title: string;
889
+ availability?: Context;
890
+ navigationHidden?: boolean;
891
+ outlineView?: import("./outline.js").OutlineView | null;
892
+ description?: string;
893
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
894
+ showMetadata?: readonly string[];
895
+ presentation?: {
896
+ layout?: string | false;
897
+ actions?: readonly {
898
+ text: string;
899
+ href: string;
900
+ }[];
901
+ rendererProfile?: string;
902
+ };
903
+ origin?: {
904
+ kind: "generated" | "overlay" | "authored";
905
+ collection: string;
906
+ source: string;
907
+ upstreamRevision: string;
908
+ authored?: string;
909
+ };
910
+ mode: "template" | "replacement" | "markdown";
911
+ template?: {
912
+ id: string;
913
+ revision: string;
914
+ };
915
+ provenance: import("./model.js").Provenance[];
916
+ markdown: string;
917
+ contextDefaults?: Context;
918
+ contextVariants?: {
919
+ context: Context;
920
+ markdown: string;
921
+ sections: {
922
+ id: string;
923
+ title?: string;
924
+ documentOffset?: number;
925
+ markdown: string;
926
+ provenance: import("./model.js").Provenance[];
927
+ outline?: import("./outline.js").OutlineContribution[];
928
+ headings?: {
929
+ id: string;
930
+ text: string;
931
+ depth: number;
932
+ }[];
933
+ headingRanges?: readonly (readonly [number, number])[];
934
+ outlineRanges?: Record<string, readonly [number, number]>;
935
+ headingFiles?: Record<number, string>;
936
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
937
+ }[];
938
+ }[];
939
+ sections: {
940
+ id: string;
941
+ title?: string;
942
+ documentOffset?: number;
943
+ markdown: string;
944
+ provenance: import("./model.js").Provenance[];
945
+ outline?: import("./outline.js").OutlineContribution[];
946
+ headings?: {
947
+ id: string;
948
+ text: string;
949
+ depth: number;
950
+ }[];
951
+ headingRanges?: readonly (readonly [number, number])[];
952
+ outlineRanges?: Record<string, readonly [number, number]>;
953
+ headingFiles?: Record<number, string>;
954
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
955
+ }[];
956
+ losses?: (import("./model.js").ProjectionLoss & {
957
+ section: string;
958
+ })[];
959
+ } | null;
960
+ resolveCompatible: (identity: import("./model.js").Identity) => import("./semantic.js").Resolution<{
961
+ key: string;
962
+ identity: import("./model.js").Identity & {
963
+ dimensions: Record<string, string>;
964
+ };
965
+ route: string;
966
+ title: string;
967
+ availability?: Context;
968
+ navigationHidden?: boolean;
969
+ outlineView?: import("./outline.js").OutlineView | null;
970
+ description?: string;
971
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
972
+ showMetadata?: readonly string[];
973
+ presentation?: {
974
+ layout?: string | false;
975
+ actions?: readonly {
976
+ text: string;
977
+ href: string;
978
+ }[];
979
+ rendererProfile?: string;
980
+ };
981
+ origin?: {
982
+ kind: "generated" | "overlay" | "authored";
983
+ collection: string;
984
+ source: string;
985
+ upstreamRevision: string;
986
+ authored?: string;
987
+ };
988
+ mode: "template" | "replacement" | "markdown";
989
+ template?: {
990
+ id: string;
991
+ revision: string;
992
+ };
993
+ provenance: import("./model.js").Provenance[];
994
+ markdown: string;
995
+ contextDefaults?: Context;
996
+ contextVariants?: {
997
+ context: Context;
998
+ markdown: string;
999
+ sections: {
1000
+ id: string;
1001
+ title?: string;
1002
+ documentOffset?: number;
1003
+ markdown: string;
1004
+ provenance: import("./model.js").Provenance[];
1005
+ outline?: import("./outline.js").OutlineContribution[];
1006
+ headings?: {
1007
+ id: string;
1008
+ text: string;
1009
+ depth: number;
1010
+ }[];
1011
+ headingRanges?: readonly (readonly [number, number])[];
1012
+ outlineRanges?: Record<string, readonly [number, number]>;
1013
+ headingFiles?: Record<number, string>;
1014
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
1015
+ }[];
1016
+ }[];
1017
+ sections: {
1018
+ id: string;
1019
+ title?: string;
1020
+ documentOffset?: number;
1021
+ markdown: string;
1022
+ provenance: import("./model.js").Provenance[];
1023
+ outline?: import("./outline.js").OutlineContribution[];
1024
+ headings?: {
1025
+ id: string;
1026
+ text: string;
1027
+ depth: number;
1028
+ }[];
1029
+ headingRanges?: readonly (readonly [number, number])[];
1030
+ outlineRanges?: Record<string, readonly [number, number]>;
1031
+ headingFiles?: Record<number, string>;
1032
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
1033
+ }[];
1034
+ losses?: (import("./model.js").ProjectionLoss & {
1035
+ section: string;
1036
+ })[];
1037
+ }>;
1038
+ resolveEdition: (identity: import("./model.js").Identity) => import("./semantic.js").Resolution<{
1039
+ key: string;
1040
+ identity: import("./model.js").Identity & {
1041
+ dimensions: Record<string, string>;
1042
+ };
1043
+ route: string;
1044
+ title: string;
1045
+ availability?: Context;
1046
+ navigationHidden?: boolean;
1047
+ outlineView?: import("./outline.js").OutlineView | null;
1048
+ description?: string;
1049
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
1050
+ showMetadata?: readonly string[];
1051
+ presentation?: {
1052
+ layout?: string | false;
1053
+ actions?: readonly {
1054
+ text: string;
1055
+ href: string;
1056
+ }[];
1057
+ rendererProfile?: string;
1058
+ };
1059
+ origin?: {
1060
+ kind: "generated" | "overlay" | "authored";
1061
+ collection: string;
1062
+ source: string;
1063
+ upstreamRevision: string;
1064
+ authored?: string;
1065
+ };
1066
+ mode: "template" | "replacement" | "markdown";
1067
+ template?: {
1068
+ id: string;
1069
+ revision: string;
1070
+ };
1071
+ provenance: import("./model.js").Provenance[];
1072
+ markdown: string;
1073
+ contextDefaults?: Context;
1074
+ contextVariants?: {
1075
+ context: Context;
1076
+ markdown: string;
1077
+ sections: {
1078
+ id: string;
1079
+ title?: string;
1080
+ documentOffset?: number;
1081
+ markdown: string;
1082
+ provenance: import("./model.js").Provenance[];
1083
+ outline?: import("./outline.js").OutlineContribution[];
1084
+ headings?: {
1085
+ id: string;
1086
+ text: string;
1087
+ depth: number;
1088
+ }[];
1089
+ headingRanges?: readonly (readonly [number, number])[];
1090
+ outlineRanges?: Record<string, readonly [number, number]>;
1091
+ headingFiles?: Record<number, string>;
1092
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
1093
+ }[];
1094
+ }[];
1095
+ sections: {
1096
+ id: string;
1097
+ title?: string;
1098
+ documentOffset?: number;
1099
+ markdown: string;
1100
+ provenance: import("./model.js").Provenance[];
1101
+ outline?: import("./outline.js").OutlineContribution[];
1102
+ headings?: {
1103
+ id: string;
1104
+ text: string;
1105
+ depth: number;
1106
+ }[];
1107
+ headingRanges?: readonly (readonly [number, number])[];
1108
+ outlineRanges?: Record<string, readonly [number, number]>;
1109
+ headingFiles?: Record<number, string>;
1110
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
1111
+ }[];
1112
+ losses?: (import("./model.js").ProjectionLoss & {
1113
+ section: string;
1114
+ })[];
1115
+ }> & {
1116
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
1117
+ key: string;
1118
+ identity: import("./model.js").Identity & {
1119
+ dimensions: Record<string, string>;
1120
+ };
1121
+ route: string;
1122
+ title: string;
1123
+ availability?: Context;
1124
+ navigationHidden?: boolean;
1125
+ outlineView?: import("./outline.js").OutlineView | null;
1126
+ description?: string;
1127
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
1128
+ showMetadata?: readonly string[];
1129
+ presentation?: {
1130
+ layout?: string | false;
1131
+ actions?: readonly {
1132
+ text: string;
1133
+ href: string;
1134
+ }[];
1135
+ rendererProfile?: string;
1136
+ };
1137
+ origin?: {
1138
+ kind: "generated" | "overlay" | "authored";
1139
+ collection: string;
1140
+ source: string;
1141
+ upstreamRevision: string;
1142
+ authored?: string;
1143
+ };
1144
+ mode: "template" | "replacement" | "markdown";
1145
+ template?: {
1146
+ id: string;
1147
+ revision: string;
1148
+ };
1149
+ provenance: import("./model.js").Provenance[];
1150
+ markdown: string;
1151
+ contextDefaults?: Context;
1152
+ contextVariants?: {
1153
+ context: Context;
1154
+ markdown: string;
1155
+ sections: {
1156
+ id: string;
1157
+ title?: string;
1158
+ documentOffset?: number;
1159
+ markdown: string;
1160
+ provenance: import("./model.js").Provenance[];
1161
+ outline?: import("./outline.js").OutlineContribution[];
1162
+ headings?: {
1163
+ id: string;
1164
+ text: string;
1165
+ depth: number;
1166
+ }[];
1167
+ headingRanges?: readonly (readonly [number, number])[];
1168
+ outlineRanges?: Record<string, readonly [number, number]>;
1169
+ headingFiles?: Record<number, string>;
1170
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
1171
+ }[];
1172
+ }[];
1173
+ sections: {
1174
+ id: string;
1175
+ title?: string;
1176
+ documentOffset?: number;
1177
+ markdown: string;
1178
+ provenance: import("./model.js").Provenance[];
1179
+ outline?: import("./outline.js").OutlineContribution[];
1180
+ headings?: {
1181
+ id: string;
1182
+ text: string;
1183
+ depth: number;
1184
+ }[];
1185
+ headingRanges?: readonly (readonly [number, number])[];
1186
+ outlineRanges?: Record<string, readonly [number, number]>;
1187
+ headingFiles?: Record<number, string>;
1188
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
1189
+ }[];
1190
+ losses?: (import("./model.js").ProjectionLoss & {
1191
+ section: string;
1192
+ })[];
1193
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status">;
1194
+ };
1195
+ resolve: (identity: import("./model.js").Identity) => import("./semantic.js").Resolution<import("./document-reader.js").Manifest["documents"][number]>;
1196
+ context(identity: import("./model.js").Identity, request?: import("./dimension-runtime.js").DimensionRequest): import("./dimension-runtime.js").DimensionInspection<{
1197
+ key: string;
1198
+ identity: import("./model.js").Identity & {
1199
+ dimensions: Record<string, string>;
1200
+ };
1201
+ route: string;
1202
+ title: string;
1203
+ availability?: Context;
1204
+ navigationHidden?: boolean;
1205
+ outlineView?: import("./outline.js").OutlineView | null;
1206
+ description?: string;
1207
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
1208
+ showMetadata?: readonly string[];
1209
+ presentation?: {
1210
+ layout?: string | false;
1211
+ actions?: readonly {
1212
+ text: string;
1213
+ href: string;
1214
+ }[];
1215
+ rendererProfile?: string;
1216
+ };
1217
+ origin?: {
1218
+ kind: "generated" | "overlay" | "authored";
1219
+ collection: string;
1220
+ source: string;
1221
+ upstreamRevision: string;
1222
+ authored?: string;
1223
+ };
1224
+ mode: "template" | "replacement" | "markdown";
1225
+ template?: {
1226
+ id: string;
1227
+ revision: string;
1228
+ };
1229
+ provenance: import("./model.js").Provenance[];
1230
+ markdown: string;
1231
+ contextDefaults?: Context;
1232
+ contextVariants?: {
1233
+ context: Context;
1234
+ markdown: string;
1235
+ sections: {
1236
+ id: string;
1237
+ title?: string;
1238
+ documentOffset?: number;
1239
+ markdown: string;
1240
+ provenance: import("./model.js").Provenance[];
1241
+ outline?: import("./outline.js").OutlineContribution[];
1242
+ headings?: {
1243
+ id: string;
1244
+ text: string;
1245
+ depth: number;
1246
+ }[];
1247
+ headingRanges?: readonly (readonly [number, number])[];
1248
+ outlineRanges?: Record<string, readonly [number, number]>;
1249
+ headingFiles?: Record<number, string>;
1250
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
1251
+ }[];
1252
+ }[];
1253
+ sections: {
1254
+ id: string;
1255
+ title?: string;
1256
+ documentOffset?: number;
1257
+ markdown: string;
1258
+ provenance: import("./model.js").Provenance[];
1259
+ outline?: import("./outline.js").OutlineContribution[];
1260
+ headings?: {
1261
+ id: string;
1262
+ text: string;
1263
+ depth: number;
1264
+ }[];
1265
+ headingRanges?: readonly (readonly [number, number])[];
1266
+ outlineRanges?: Record<string, readonly [number, number]>;
1267
+ headingFiles?: Record<number, string>;
1268
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
1269
+ }[];
1270
+ losses?: (import("./model.js").ProjectionLoss & {
1271
+ section: string;
1272
+ })[];
1273
+ }>;
1274
+ navigation(identity: import("./model.js").Identity, view?: string, placement?: string, requested?: Context): {
1275
+ current: import("./navigation-view.js").NavigationPlacement | undefined;
1276
+ breadcrumbs: import("./navigation-view.js").NavigationPlacement[];
1277
+ previous: import("./navigation-view.js").NavigationPlacement | undefined;
1278
+ next: import("./navigation-view.js").NavigationPlacement | undefined;
1279
+ view: import("./navigation-view.js").PublishedNavigation;
1280
+ } | null | undefined;
1281
+ outline(identity: import("./model.js").Identity, view?: import("./outline.js").OutlineProjection | string, requested?: Context): import("./outline.js").OutlineEntry[] | null;
1282
+ route(pathname: string): {
1283
+ status: "redirect";
1284
+ to: string;
1285
+ document?: undefined;
1286
+ } | {
1287
+ to?: undefined;
1288
+ status: "not-found";
1289
+ document?: undefined;
1290
+ } | {
1291
+ to?: undefined;
1292
+ status: "document";
1293
+ document: {
1294
+ key: string;
1295
+ identity: import("./model.js").Identity & {
1296
+ dimensions: Record<string, string>;
1297
+ };
1298
+ route: string;
1299
+ title: string;
1300
+ availability?: Context;
1301
+ navigationHidden?: boolean;
1302
+ outlineView?: import("./outline.js").OutlineView | null;
1303
+ description?: string;
1304
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
1305
+ showMetadata?: readonly string[];
1306
+ presentation?: {
1307
+ layout?: string | false;
1308
+ actions?: readonly {
1309
+ text: string;
1310
+ href: string;
1311
+ }[];
1312
+ rendererProfile?: string;
1313
+ };
1314
+ origin?: {
1315
+ kind: "generated" | "overlay" | "authored";
1316
+ collection: string;
1317
+ source: string;
1318
+ upstreamRevision: string;
1319
+ authored?: string;
1320
+ };
1321
+ mode: "template" | "replacement" | "markdown";
1322
+ template?: {
1323
+ id: string;
1324
+ revision: string;
1325
+ };
1326
+ provenance: import("./model.js").Provenance[];
1327
+ markdown: string;
1328
+ contextDefaults?: Context;
1329
+ contextVariants?: {
1330
+ context: Context;
1331
+ markdown: string;
1332
+ sections: {
1333
+ id: string;
1334
+ title?: string;
1335
+ documentOffset?: number;
1336
+ markdown: string;
1337
+ provenance: import("./model.js").Provenance[];
1338
+ outline?: import("./outline.js").OutlineContribution[];
1339
+ headings?: {
1340
+ id: string;
1341
+ text: string;
1342
+ depth: number;
1343
+ }[];
1344
+ headingRanges?: readonly (readonly [number, number])[];
1345
+ outlineRanges?: Record<string, readonly [number, number]>;
1346
+ headingFiles?: Record<number, string>;
1347
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
1348
+ }[];
1349
+ }[];
1350
+ sections: {
1351
+ id: string;
1352
+ title?: string;
1353
+ documentOffset?: number;
1354
+ markdown: string;
1355
+ provenance: import("./model.js").Provenance[];
1356
+ outline?: import("./outline.js").OutlineContribution[];
1357
+ headings?: {
1358
+ id: string;
1359
+ text: string;
1360
+ depth: number;
1361
+ }[];
1362
+ headingRanges?: readonly (readonly [number, number])[];
1363
+ outlineRanges?: Record<string, readonly [number, number]>;
1364
+ headingFiles?: Record<number, string>;
1365
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
1366
+ }[];
1367
+ losses?: (import("./model.js").ProjectionLoss & {
1368
+ section: string;
1369
+ })[];
1370
+ };
1371
+ };
1372
+ read(identity: import("./model.js").Identity, sectionId?: string, headingId?: string, requested?: Context): Promise<import("./document-reader.js").PublishedMarkdownRead | null>;
1373
+ };
1374
+ resolve(id: string, dimensions?: Context): Promise<{
1375
+ status: "exact";
1376
+ value: import("./semantic.js").EntityVariant<unknown>;
1377
+ } | {
1378
+ status: "not-found";
1379
+ } | {
1380
+ status: "unsupported-context";
1381
+ available: Context[];
1382
+ } | {
1383
+ status: "ambiguous";
1384
+ candidates: Context[];
1385
+ } | {
1386
+ status: "not-found";
1387
+ }>;
1388
+ /** Resolve only the members declared by a published facts collection, in its recorded order. */
1389
+ collection<Value>(name: string, project: (data: unknown, id: string) => Value, options?: {
1390
+ type?: EntityType;
1391
+ }): Promise<CollectionRecord<Value>[]>;
1392
+ entities<Value>(type: EntityType, project: (data: unknown, id: string) => Value, subjectPrefix?: string): Promise<CollectionRecord<Value>[]>;
1393
+ retrieve: (query: string, options?: RetrievalQueryOptions) => Promise<import("./retrieval.js").RetrievalResponse>;
1394
+ search(query: string, options?: RetrievalQueryOptions): Promise<import("./search.js").SearchResult[]>;
1395
+ }>>;
1396
+ export {};