@docs-sdk-dev/next 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.
@@ -0,0 +1,1253 @@
1
+ import "server-only";
2
+ import type { Labels } from "@docs-sdk-dev/web/internal/labels-runtime";
3
+ import type { Metadata } from "next";
4
+ import { type ReactNode } from "react";
5
+ import { type Document } from "@docs-sdk-dev/core";
6
+ import { type Manifest, type PublishedMarkdownRead } from "@docs-sdk-dev/reader";
7
+ import { type NativePageModule, type PresentedPage } from "@docs-sdk-dev/react/server";
8
+ import { type DocsRequestPreferences } from "@docs-sdk-dev/web/context-bridge";
9
+ import { type IslandResource } from "@docs-sdk-dev/web/islands";
10
+ import { type DocsRuntime, type RuntimeReader } from "@docs-sdk-dev/web/runtime";
11
+ type PageEntry = Manifest["documents"][number];
12
+ type Awaitable<T> = T | Promise<T>;
13
+ export { openAccessPublication, openPublication, publicPublication } from "./publication.js";
14
+ export { DocsMetadata, toNextMetadata } from "./metadata.js";
15
+ export interface NativeViews {
16
+ revision: string;
17
+ modules: Readonly<Record<string, () => Promise<NativePageModule>>>;
18
+ }
19
+ interface RouteView {
20
+ revision: string;
21
+ module: string;
22
+ view: NativePageModule;
23
+ }
24
+ export interface DocsPublication extends RuntimeReader {
25
+ accessRequired?: boolean;
26
+ readDocument(page: PageEntry): Awaitable<Document>;
27
+ readLabels?(locale: string): Labels;
28
+ readNativeView?(path: string): Awaitable<NativePageModule | undefined>;
29
+ readOgResource?(path: string, request?: Request): Awaitable<Response | undefined>;
30
+ serveMcp?(request: Request): Awaitable<Response>;
31
+ }
32
+ declare function privateResponse(body: BodyInit | null, init?: ResponseInit): Response;
33
+ export declare function createDocs(settings: {
34
+ publicPublication(): Awaitable<DocsPublication>;
35
+ /** Open a filtered publication for a verified host request and the current public revision. */
36
+ accessPublication?(request: Request, publicRevision: string): Awaitable<DocsPublication>;
37
+ basePath?: string;
38
+ /** Resolve an application-owned, verified preference namespace for one request. */
39
+ persistenceForRequest?(request: Request): Awaitable<DocsRequestPreferences | undefined>;
40
+ }): {
41
+ forRequest: (request: Request) => Promise<{
42
+ manifest: Manifest;
43
+ /** A runtime over the same filtered Reader and resource indexes as the page. */
44
+ runtime: DocsRuntime<undefined>;
45
+ signal: AbortSignal;
46
+ dispose: () => void;
47
+ reader: {
48
+ lookup: (identity: import("@docs-sdk-dev/core").Identity) => {
49
+ key: string;
50
+ identity: import("@docs-sdk-dev/core").Identity & {
51
+ dimensions: Record<string, string>;
52
+ };
53
+ route: string;
54
+ title: string;
55
+ availability?: import("@docs-sdk-dev/core").Context;
56
+ navigationHidden?: boolean;
57
+ outlineView?: import("@docs-sdk-dev/reader").OutlineView | null;
58
+ description?: string;
59
+ meta?: Record<string, import("@docs-sdk-dev/reader/content-schema").JsonValue>;
60
+ showMetadata?: readonly string[];
61
+ presentation?: {
62
+ layout?: string | false;
63
+ actions?: readonly {
64
+ text: string;
65
+ href: string;
66
+ }[];
67
+ rendererProfile?: string;
68
+ };
69
+ origin?: {
70
+ kind: "generated" | "overlay" | "authored";
71
+ collection: string;
72
+ source: string;
73
+ upstreamRevision: string;
74
+ authored?: string;
75
+ };
76
+ mode: "template" | "replacement" | "markdown";
77
+ template?: {
78
+ id: string;
79
+ revision: string;
80
+ };
81
+ provenance: import("@docs-sdk-dev/core").Provenance[];
82
+ markdown: string;
83
+ contextDefaults?: import("@docs-sdk-dev/core").Context;
84
+ contextVariants?: {
85
+ context: import("@docs-sdk-dev/core").Context;
86
+ markdown: string;
87
+ sections: {
88
+ id: string;
89
+ title?: string;
90
+ documentOffset?: number;
91
+ markdown: string;
92
+ provenance: import("@docs-sdk-dev/core").Provenance[];
93
+ outline?: import("@docs-sdk-dev/reader").OutlineContribution[];
94
+ headings?: {
95
+ id: string;
96
+ text: string;
97
+ depth: number;
98
+ }[];
99
+ headingRanges?: readonly (readonly [number, number])[];
100
+ outlineRanges?: Record<string, readonly [number, number]>;
101
+ headingFiles?: Record<number, string>;
102
+ headingIndexes?: import("@docs-sdk-dev/core").MarkdownHeadingIndexes;
103
+ }[];
104
+ }[];
105
+ sections: {
106
+ id: string;
107
+ title?: string;
108
+ documentOffset?: number;
109
+ markdown: string;
110
+ provenance: import("@docs-sdk-dev/core").Provenance[];
111
+ outline?: import("@docs-sdk-dev/reader").OutlineContribution[];
112
+ headings?: {
113
+ id: string;
114
+ text: string;
115
+ depth: number;
116
+ }[];
117
+ headingRanges?: readonly (readonly [number, number])[];
118
+ outlineRanges?: Record<string, readonly [number, number]>;
119
+ headingFiles?: Record<number, string>;
120
+ headingIndexes?: import("@docs-sdk-dev/core").MarkdownHeadingIndexes;
121
+ }[];
122
+ losses?: (import("@docs-sdk-dev/core").ProjectionLoss & {
123
+ section: string;
124
+ })[];
125
+ } | null;
126
+ projection: (identity: import("@docs-sdk-dev/core").Identity, requested?: import("@docs-sdk-dev/core").Context) => {
127
+ key: string;
128
+ identity: import("@docs-sdk-dev/core").Identity & {
129
+ dimensions: Record<string, string>;
130
+ };
131
+ route: string;
132
+ title: string;
133
+ availability?: import("@docs-sdk-dev/core").Context;
134
+ navigationHidden?: boolean;
135
+ outlineView?: import("@docs-sdk-dev/reader").OutlineView | null;
136
+ description?: string;
137
+ meta?: Record<string, import("@docs-sdk-dev/reader/content-schema").JsonValue>;
138
+ showMetadata?: readonly string[];
139
+ presentation?: {
140
+ layout?: string | false;
141
+ actions?: readonly {
142
+ text: string;
143
+ href: string;
144
+ }[];
145
+ rendererProfile?: string;
146
+ };
147
+ origin?: {
148
+ kind: "generated" | "overlay" | "authored";
149
+ collection: string;
150
+ source: string;
151
+ upstreamRevision: string;
152
+ authored?: string;
153
+ };
154
+ mode: "template" | "replacement" | "markdown";
155
+ template?: {
156
+ id: string;
157
+ revision: string;
158
+ };
159
+ provenance: import("@docs-sdk-dev/core").Provenance[];
160
+ markdown: string;
161
+ contextDefaults?: import("@docs-sdk-dev/core").Context;
162
+ contextVariants?: {
163
+ context: import("@docs-sdk-dev/core").Context;
164
+ markdown: string;
165
+ sections: {
166
+ id: string;
167
+ title?: string;
168
+ documentOffset?: number;
169
+ markdown: string;
170
+ provenance: import("@docs-sdk-dev/core").Provenance[];
171
+ outline?: import("@docs-sdk-dev/reader").OutlineContribution[];
172
+ headings?: {
173
+ id: string;
174
+ text: string;
175
+ depth: number;
176
+ }[];
177
+ headingRanges?: readonly (readonly [number, number])[];
178
+ outlineRanges?: Record<string, readonly [number, number]>;
179
+ headingFiles?: Record<number, string>;
180
+ headingIndexes?: import("@docs-sdk-dev/core").MarkdownHeadingIndexes;
181
+ }[];
182
+ }[];
183
+ sections: {
184
+ id: string;
185
+ title?: string;
186
+ documentOffset?: number;
187
+ markdown: string;
188
+ provenance: import("@docs-sdk-dev/core").Provenance[];
189
+ outline?: import("@docs-sdk-dev/reader").OutlineContribution[];
190
+ headings?: {
191
+ id: string;
192
+ text: string;
193
+ depth: number;
194
+ }[];
195
+ headingRanges?: readonly (readonly [number, number])[];
196
+ outlineRanges?: Record<string, readonly [number, number]>;
197
+ headingFiles?: Record<number, string>;
198
+ headingIndexes?: import("@docs-sdk-dev/core").MarkdownHeadingIndexes;
199
+ }[];
200
+ losses?: (import("@docs-sdk-dev/core").ProjectionLoss & {
201
+ section: string;
202
+ })[];
203
+ } | null;
204
+ resolveCompatible: (identity: import("@docs-sdk-dev/core").Identity) => import("@docs-sdk-dev/core").Resolution<{
205
+ key: string;
206
+ identity: import("@docs-sdk-dev/core").Identity & {
207
+ dimensions: Record<string, string>;
208
+ };
209
+ route: string;
210
+ title: string;
211
+ availability?: import("@docs-sdk-dev/core").Context;
212
+ navigationHidden?: boolean;
213
+ outlineView?: import("@docs-sdk-dev/reader").OutlineView | null;
214
+ description?: string;
215
+ meta?: Record<string, import("@docs-sdk-dev/reader/content-schema").JsonValue>;
216
+ showMetadata?: readonly string[];
217
+ presentation?: {
218
+ layout?: string | false;
219
+ actions?: readonly {
220
+ text: string;
221
+ href: string;
222
+ }[];
223
+ rendererProfile?: string;
224
+ };
225
+ origin?: {
226
+ kind: "generated" | "overlay" | "authored";
227
+ collection: string;
228
+ source: string;
229
+ upstreamRevision: string;
230
+ authored?: string;
231
+ };
232
+ mode: "template" | "replacement" | "markdown";
233
+ template?: {
234
+ id: string;
235
+ revision: string;
236
+ };
237
+ provenance: import("@docs-sdk-dev/core").Provenance[];
238
+ markdown: string;
239
+ contextDefaults?: import("@docs-sdk-dev/core").Context;
240
+ contextVariants?: {
241
+ context: import("@docs-sdk-dev/core").Context;
242
+ markdown: string;
243
+ sections: {
244
+ id: string;
245
+ title?: string;
246
+ documentOffset?: number;
247
+ markdown: string;
248
+ provenance: import("@docs-sdk-dev/core").Provenance[];
249
+ outline?: import("@docs-sdk-dev/reader").OutlineContribution[];
250
+ headings?: {
251
+ id: string;
252
+ text: string;
253
+ depth: number;
254
+ }[];
255
+ headingRanges?: readonly (readonly [number, number])[];
256
+ outlineRanges?: Record<string, readonly [number, number]>;
257
+ headingFiles?: Record<number, string>;
258
+ headingIndexes?: import("@docs-sdk-dev/core").MarkdownHeadingIndexes;
259
+ }[];
260
+ }[];
261
+ sections: {
262
+ id: string;
263
+ title?: string;
264
+ documentOffset?: number;
265
+ markdown: string;
266
+ provenance: import("@docs-sdk-dev/core").Provenance[];
267
+ outline?: import("@docs-sdk-dev/reader").OutlineContribution[];
268
+ headings?: {
269
+ id: string;
270
+ text: string;
271
+ depth: number;
272
+ }[];
273
+ headingRanges?: readonly (readonly [number, number])[];
274
+ outlineRanges?: Record<string, readonly [number, number]>;
275
+ headingFiles?: Record<number, string>;
276
+ headingIndexes?: import("@docs-sdk-dev/core").MarkdownHeadingIndexes;
277
+ }[];
278
+ losses?: (import("@docs-sdk-dev/core").ProjectionLoss & {
279
+ section: string;
280
+ })[];
281
+ }>;
282
+ resolveEdition: (identity: import("@docs-sdk-dev/core").Identity) => import("@docs-sdk-dev/core").Resolution<{
283
+ key: string;
284
+ identity: import("@docs-sdk-dev/core").Identity & {
285
+ dimensions: Record<string, string>;
286
+ };
287
+ route: string;
288
+ title: string;
289
+ availability?: import("@docs-sdk-dev/core").Context;
290
+ navigationHidden?: boolean;
291
+ outlineView?: import("@docs-sdk-dev/reader").OutlineView | null;
292
+ description?: string;
293
+ meta?: Record<string, import("@docs-sdk-dev/reader/content-schema").JsonValue>;
294
+ showMetadata?: readonly string[];
295
+ presentation?: {
296
+ layout?: string | false;
297
+ actions?: readonly {
298
+ text: string;
299
+ href: string;
300
+ }[];
301
+ rendererProfile?: string;
302
+ };
303
+ origin?: {
304
+ kind: "generated" | "overlay" | "authored";
305
+ collection: string;
306
+ source: string;
307
+ upstreamRevision: string;
308
+ authored?: string;
309
+ };
310
+ mode: "template" | "replacement" | "markdown";
311
+ template?: {
312
+ id: string;
313
+ revision: string;
314
+ };
315
+ provenance: import("@docs-sdk-dev/core").Provenance[];
316
+ markdown: string;
317
+ contextDefaults?: import("@docs-sdk-dev/core").Context;
318
+ contextVariants?: {
319
+ context: import("@docs-sdk-dev/core").Context;
320
+ markdown: string;
321
+ sections: {
322
+ id: string;
323
+ title?: string;
324
+ documentOffset?: number;
325
+ markdown: string;
326
+ provenance: import("@docs-sdk-dev/core").Provenance[];
327
+ outline?: import("@docs-sdk-dev/reader").OutlineContribution[];
328
+ headings?: {
329
+ id: string;
330
+ text: string;
331
+ depth: number;
332
+ }[];
333
+ headingRanges?: readonly (readonly [number, number])[];
334
+ outlineRanges?: Record<string, readonly [number, number]>;
335
+ headingFiles?: Record<number, string>;
336
+ headingIndexes?: import("@docs-sdk-dev/core").MarkdownHeadingIndexes;
337
+ }[];
338
+ }[];
339
+ sections: {
340
+ id: string;
341
+ title?: string;
342
+ documentOffset?: number;
343
+ markdown: string;
344
+ provenance: import("@docs-sdk-dev/core").Provenance[];
345
+ outline?: import("@docs-sdk-dev/reader").OutlineContribution[];
346
+ headings?: {
347
+ id: string;
348
+ text: string;
349
+ depth: number;
350
+ }[];
351
+ headingRanges?: readonly (readonly [number, number])[];
352
+ outlineRanges?: Record<string, readonly [number, number]>;
353
+ headingFiles?: Record<number, string>;
354
+ headingIndexes?: import("@docs-sdk-dev/core").MarkdownHeadingIndexes;
355
+ }[];
356
+ losses?: (import("@docs-sdk-dev/core").ProjectionLoss & {
357
+ section: string;
358
+ })[];
359
+ }> & {
360
+ resolution?: Pick<import("@docs-sdk-dev/reader").DimensionInspection<{
361
+ key: string;
362
+ identity: import("@docs-sdk-dev/core").Identity & {
363
+ dimensions: Record<string, string>;
364
+ };
365
+ route: string;
366
+ title: string;
367
+ availability?: import("@docs-sdk-dev/core").Context;
368
+ navigationHidden?: boolean;
369
+ outlineView?: import("@docs-sdk-dev/reader").OutlineView | null;
370
+ description?: string;
371
+ meta?: Record<string, import("@docs-sdk-dev/reader/content-schema").JsonValue>;
372
+ showMetadata?: readonly string[];
373
+ presentation?: {
374
+ layout?: string | false;
375
+ actions?: readonly {
376
+ text: string;
377
+ href: string;
378
+ }[];
379
+ rendererProfile?: string;
380
+ };
381
+ origin?: {
382
+ kind: "generated" | "overlay" | "authored";
383
+ collection: string;
384
+ source: string;
385
+ upstreamRevision: string;
386
+ authored?: string;
387
+ };
388
+ mode: "template" | "replacement" | "markdown";
389
+ template?: {
390
+ id: string;
391
+ revision: string;
392
+ };
393
+ provenance: import("@docs-sdk-dev/core").Provenance[];
394
+ markdown: string;
395
+ contextDefaults?: import("@docs-sdk-dev/core").Context;
396
+ contextVariants?: {
397
+ context: import("@docs-sdk-dev/core").Context;
398
+ markdown: string;
399
+ sections: {
400
+ id: string;
401
+ title?: string;
402
+ documentOffset?: number;
403
+ markdown: string;
404
+ provenance: import("@docs-sdk-dev/core").Provenance[];
405
+ outline?: import("@docs-sdk-dev/reader").OutlineContribution[];
406
+ headings?: {
407
+ id: string;
408
+ text: string;
409
+ depth: number;
410
+ }[];
411
+ headingRanges?: readonly (readonly [number, number])[];
412
+ outlineRanges?: Record<string, readonly [number, number]>;
413
+ headingFiles?: Record<number, string>;
414
+ headingIndexes?: import("@docs-sdk-dev/core").MarkdownHeadingIndexes;
415
+ }[];
416
+ }[];
417
+ sections: {
418
+ id: string;
419
+ title?: string;
420
+ documentOffset?: number;
421
+ markdown: string;
422
+ provenance: import("@docs-sdk-dev/core").Provenance[];
423
+ outline?: import("@docs-sdk-dev/reader").OutlineContribution[];
424
+ headings?: {
425
+ id: string;
426
+ text: string;
427
+ depth: number;
428
+ }[];
429
+ headingRanges?: readonly (readonly [number, number])[];
430
+ outlineRanges?: Record<string, readonly [number, number]>;
431
+ headingFiles?: Record<number, string>;
432
+ headingIndexes?: import("@docs-sdk-dev/core").MarkdownHeadingIndexes;
433
+ }[];
434
+ losses?: (import("@docs-sdk-dev/core").ProjectionLoss & {
435
+ section: string;
436
+ })[];
437
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status">;
438
+ };
439
+ resolve: (identity: import("@docs-sdk-dev/core").Identity) => import("@docs-sdk-dev/core").Resolution<Manifest["documents"][number]>;
440
+ context(identity: import("@docs-sdk-dev/core").Identity, request?: import("@docs-sdk-dev/reader").DimensionRequest): import("@docs-sdk-dev/reader").DimensionInspection<{
441
+ key: string;
442
+ identity: import("@docs-sdk-dev/core").Identity & {
443
+ dimensions: Record<string, string>;
444
+ };
445
+ route: string;
446
+ title: string;
447
+ availability?: import("@docs-sdk-dev/core").Context;
448
+ navigationHidden?: boolean;
449
+ outlineView?: import("@docs-sdk-dev/reader").OutlineView | null;
450
+ description?: string;
451
+ meta?: Record<string, import("@docs-sdk-dev/reader/content-schema").JsonValue>;
452
+ showMetadata?: readonly string[];
453
+ presentation?: {
454
+ layout?: string | false;
455
+ actions?: readonly {
456
+ text: string;
457
+ href: string;
458
+ }[];
459
+ rendererProfile?: string;
460
+ };
461
+ origin?: {
462
+ kind: "generated" | "overlay" | "authored";
463
+ collection: string;
464
+ source: string;
465
+ upstreamRevision: string;
466
+ authored?: string;
467
+ };
468
+ mode: "template" | "replacement" | "markdown";
469
+ template?: {
470
+ id: string;
471
+ revision: string;
472
+ };
473
+ provenance: import("@docs-sdk-dev/core").Provenance[];
474
+ markdown: string;
475
+ contextDefaults?: import("@docs-sdk-dev/core").Context;
476
+ contextVariants?: {
477
+ context: import("@docs-sdk-dev/core").Context;
478
+ markdown: string;
479
+ sections: {
480
+ id: string;
481
+ title?: string;
482
+ documentOffset?: number;
483
+ markdown: string;
484
+ provenance: import("@docs-sdk-dev/core").Provenance[];
485
+ outline?: import("@docs-sdk-dev/reader").OutlineContribution[];
486
+ headings?: {
487
+ id: string;
488
+ text: string;
489
+ depth: number;
490
+ }[];
491
+ headingRanges?: readonly (readonly [number, number])[];
492
+ outlineRanges?: Record<string, readonly [number, number]>;
493
+ headingFiles?: Record<number, string>;
494
+ headingIndexes?: import("@docs-sdk-dev/core").MarkdownHeadingIndexes;
495
+ }[];
496
+ }[];
497
+ sections: {
498
+ id: string;
499
+ title?: string;
500
+ documentOffset?: number;
501
+ markdown: string;
502
+ provenance: import("@docs-sdk-dev/core").Provenance[];
503
+ outline?: import("@docs-sdk-dev/reader").OutlineContribution[];
504
+ headings?: {
505
+ id: string;
506
+ text: string;
507
+ depth: number;
508
+ }[];
509
+ headingRanges?: readonly (readonly [number, number])[];
510
+ outlineRanges?: Record<string, readonly [number, number]>;
511
+ headingFiles?: Record<number, string>;
512
+ headingIndexes?: import("@docs-sdk-dev/core").MarkdownHeadingIndexes;
513
+ }[];
514
+ losses?: (import("@docs-sdk-dev/core").ProjectionLoss & {
515
+ section: string;
516
+ })[];
517
+ }>;
518
+ navigation(identity: import("@docs-sdk-dev/core").Identity, view?: string, placement?: string, requested?: import("@docs-sdk-dev/core").Context): {
519
+ current: import("@docs-sdk-dev/reader").NavigationPlacement | undefined;
520
+ breadcrumbs: import("@docs-sdk-dev/reader").NavigationPlacement[];
521
+ previous: import("@docs-sdk-dev/reader").NavigationPlacement | undefined;
522
+ next: import("@docs-sdk-dev/reader").NavigationPlacement | undefined;
523
+ view: import("@docs-sdk-dev/reader").PublishedNavigation;
524
+ } | null | undefined;
525
+ outline(identity: import("@docs-sdk-dev/core").Identity, view?: import("@docs-sdk-dev/reader").OutlineProjection | string, requested?: import("@docs-sdk-dev/core").Context): import("@docs-sdk-dev/reader").OutlineEntry[] | null;
526
+ route(pathname: string): {
527
+ status: "redirect";
528
+ to: string;
529
+ document?: undefined;
530
+ } | {
531
+ to?: undefined;
532
+ status: "not-found";
533
+ document?: undefined;
534
+ } | {
535
+ to?: undefined;
536
+ status: "document";
537
+ document: {
538
+ key: string;
539
+ identity: import("@docs-sdk-dev/core").Identity & {
540
+ dimensions: Record<string, string>;
541
+ };
542
+ route: string;
543
+ title: string;
544
+ availability?: import("@docs-sdk-dev/core").Context;
545
+ navigationHidden?: boolean;
546
+ outlineView?: import("@docs-sdk-dev/reader").OutlineView | null;
547
+ description?: string;
548
+ meta?: Record<string, import("@docs-sdk-dev/reader/content-schema").JsonValue>;
549
+ showMetadata?: readonly string[];
550
+ presentation?: {
551
+ layout?: string | false;
552
+ actions?: readonly {
553
+ text: string;
554
+ href: string;
555
+ }[];
556
+ rendererProfile?: string;
557
+ };
558
+ origin?: {
559
+ kind: "generated" | "overlay" | "authored";
560
+ collection: string;
561
+ source: string;
562
+ upstreamRevision: string;
563
+ authored?: string;
564
+ };
565
+ mode: "template" | "replacement" | "markdown";
566
+ template?: {
567
+ id: string;
568
+ revision: string;
569
+ };
570
+ provenance: import("@docs-sdk-dev/core").Provenance[];
571
+ markdown: string;
572
+ contextDefaults?: import("@docs-sdk-dev/core").Context;
573
+ contextVariants?: {
574
+ context: import("@docs-sdk-dev/core").Context;
575
+ markdown: string;
576
+ sections: {
577
+ id: string;
578
+ title?: string;
579
+ documentOffset?: number;
580
+ markdown: string;
581
+ provenance: import("@docs-sdk-dev/core").Provenance[];
582
+ outline?: import("@docs-sdk-dev/reader").OutlineContribution[];
583
+ headings?: {
584
+ id: string;
585
+ text: string;
586
+ depth: number;
587
+ }[];
588
+ headingRanges?: readonly (readonly [number, number])[];
589
+ outlineRanges?: Record<string, readonly [number, number]>;
590
+ headingFiles?: Record<number, string>;
591
+ headingIndexes?: import("@docs-sdk-dev/core").MarkdownHeadingIndexes;
592
+ }[];
593
+ }[];
594
+ sections: {
595
+ id: string;
596
+ title?: string;
597
+ documentOffset?: number;
598
+ markdown: string;
599
+ provenance: import("@docs-sdk-dev/core").Provenance[];
600
+ outline?: import("@docs-sdk-dev/reader").OutlineContribution[];
601
+ headings?: {
602
+ id: string;
603
+ text: string;
604
+ depth: number;
605
+ }[];
606
+ headingRanges?: readonly (readonly [number, number])[];
607
+ outlineRanges?: Record<string, readonly [number, number]>;
608
+ headingFiles?: Record<number, string>;
609
+ headingIndexes?: import("@docs-sdk-dev/core").MarkdownHeadingIndexes;
610
+ }[];
611
+ losses?: (import("@docs-sdk-dev/core").ProjectionLoss & {
612
+ section: string;
613
+ })[];
614
+ };
615
+ };
616
+ read(identity: import("@docs-sdk-dev/core").Identity, sectionId?: string, headingId?: string, requested?: import("@docs-sdk-dev/core").Context): Promise<PublishedMarkdownRead | null>;
617
+ };
618
+ getPage(slug: readonly string[]): Promise<PresentedPage | null>;
619
+ getMetadata(slug: readonly string[]): Metadata;
620
+ getRedirect(slug: readonly string[]): string | undefined;
621
+ getAgentContext(slug: readonly string[], section?: string): Promise<(PublishedMarkdownRead & {
622
+ buildRevision: string;
623
+ }) | null>;
624
+ getMarkdown(slug: readonly string[]): Promise<string | undefined>;
625
+ resolveFact(id: string, context?: import("@docs-sdk-dev/core").Context | undefined): Promise<import("@docs-sdk-dev/core").Resolution<import("@docs-sdk-dev/core").EntityVariant<unknown>>>;
626
+ search(text: string, options?: Parameters<NonNullable<DocsPublication["search"]>>[1]): Promise<import("@docs-sdk-dev/reader/search").SearchResult[]>;
627
+ getResourceAsset(path: readonly string[]): Promise<Response>;
628
+ getAsset(path: string): Promise<Response>;
629
+ mcp(): Promise<Response>;
630
+ response: typeof privateResponse;
631
+ }>;
632
+ /** Use the incoming Next headers with a URL from the application's trusted origin. */
633
+ forPage(url: URL): Promise<{
634
+ manifest: Manifest;
635
+ /** A runtime over the same filtered Reader and resource indexes as the page. */
636
+ runtime: DocsRuntime<undefined>;
637
+ signal: AbortSignal;
638
+ dispose: () => void;
639
+ reader: {
640
+ lookup: (identity: import("@docs-sdk-dev/core").Identity) => {
641
+ key: string;
642
+ identity: import("@docs-sdk-dev/core").Identity & {
643
+ dimensions: Record<string, string>;
644
+ };
645
+ route: string;
646
+ title: string;
647
+ availability?: import("@docs-sdk-dev/core").Context;
648
+ navigationHidden?: boolean;
649
+ outlineView?: import("@docs-sdk-dev/reader").OutlineView | null;
650
+ description?: string;
651
+ meta?: Record<string, import("@docs-sdk-dev/reader/content-schema").JsonValue>;
652
+ showMetadata?: readonly string[];
653
+ presentation?: {
654
+ layout?: string | false;
655
+ actions?: readonly {
656
+ text: string;
657
+ href: string;
658
+ }[];
659
+ rendererProfile?: string;
660
+ };
661
+ origin?: {
662
+ kind: "generated" | "overlay" | "authored";
663
+ collection: string;
664
+ source: string;
665
+ upstreamRevision: string;
666
+ authored?: string;
667
+ };
668
+ mode: "template" | "replacement" | "markdown";
669
+ template?: {
670
+ id: string;
671
+ revision: string;
672
+ };
673
+ provenance: import("@docs-sdk-dev/core").Provenance[];
674
+ markdown: string;
675
+ contextDefaults?: import("@docs-sdk-dev/core").Context;
676
+ contextVariants?: {
677
+ context: import("@docs-sdk-dev/core").Context;
678
+ markdown: string;
679
+ sections: {
680
+ id: string;
681
+ title?: string;
682
+ documentOffset?: number;
683
+ markdown: string;
684
+ provenance: import("@docs-sdk-dev/core").Provenance[];
685
+ outline?: import("@docs-sdk-dev/reader").OutlineContribution[];
686
+ headings?: {
687
+ id: string;
688
+ text: string;
689
+ depth: number;
690
+ }[];
691
+ headingRanges?: readonly (readonly [number, number])[];
692
+ outlineRanges?: Record<string, readonly [number, number]>;
693
+ headingFiles?: Record<number, string>;
694
+ headingIndexes?: import("@docs-sdk-dev/core").MarkdownHeadingIndexes;
695
+ }[];
696
+ }[];
697
+ sections: {
698
+ id: string;
699
+ title?: string;
700
+ documentOffset?: number;
701
+ markdown: string;
702
+ provenance: import("@docs-sdk-dev/core").Provenance[];
703
+ outline?: import("@docs-sdk-dev/reader").OutlineContribution[];
704
+ headings?: {
705
+ id: string;
706
+ text: string;
707
+ depth: number;
708
+ }[];
709
+ headingRanges?: readonly (readonly [number, number])[];
710
+ outlineRanges?: Record<string, readonly [number, number]>;
711
+ headingFiles?: Record<number, string>;
712
+ headingIndexes?: import("@docs-sdk-dev/core").MarkdownHeadingIndexes;
713
+ }[];
714
+ losses?: (import("@docs-sdk-dev/core").ProjectionLoss & {
715
+ section: string;
716
+ })[];
717
+ } | null;
718
+ projection: (identity: import("@docs-sdk-dev/core").Identity, requested?: import("@docs-sdk-dev/core").Context) => {
719
+ key: string;
720
+ identity: import("@docs-sdk-dev/core").Identity & {
721
+ dimensions: Record<string, string>;
722
+ };
723
+ route: string;
724
+ title: string;
725
+ availability?: import("@docs-sdk-dev/core").Context;
726
+ navigationHidden?: boolean;
727
+ outlineView?: import("@docs-sdk-dev/reader").OutlineView | null;
728
+ description?: string;
729
+ meta?: Record<string, import("@docs-sdk-dev/reader/content-schema").JsonValue>;
730
+ showMetadata?: readonly string[];
731
+ presentation?: {
732
+ layout?: string | false;
733
+ actions?: readonly {
734
+ text: string;
735
+ href: string;
736
+ }[];
737
+ rendererProfile?: string;
738
+ };
739
+ origin?: {
740
+ kind: "generated" | "overlay" | "authored";
741
+ collection: string;
742
+ source: string;
743
+ upstreamRevision: string;
744
+ authored?: string;
745
+ };
746
+ mode: "template" | "replacement" | "markdown";
747
+ template?: {
748
+ id: string;
749
+ revision: string;
750
+ };
751
+ provenance: import("@docs-sdk-dev/core").Provenance[];
752
+ markdown: string;
753
+ contextDefaults?: import("@docs-sdk-dev/core").Context;
754
+ contextVariants?: {
755
+ context: import("@docs-sdk-dev/core").Context;
756
+ markdown: string;
757
+ sections: {
758
+ id: string;
759
+ title?: string;
760
+ documentOffset?: number;
761
+ markdown: string;
762
+ provenance: import("@docs-sdk-dev/core").Provenance[];
763
+ outline?: import("@docs-sdk-dev/reader").OutlineContribution[];
764
+ headings?: {
765
+ id: string;
766
+ text: string;
767
+ depth: number;
768
+ }[];
769
+ headingRanges?: readonly (readonly [number, number])[];
770
+ outlineRanges?: Record<string, readonly [number, number]>;
771
+ headingFiles?: Record<number, string>;
772
+ headingIndexes?: import("@docs-sdk-dev/core").MarkdownHeadingIndexes;
773
+ }[];
774
+ }[];
775
+ sections: {
776
+ id: string;
777
+ title?: string;
778
+ documentOffset?: number;
779
+ markdown: string;
780
+ provenance: import("@docs-sdk-dev/core").Provenance[];
781
+ outline?: import("@docs-sdk-dev/reader").OutlineContribution[];
782
+ headings?: {
783
+ id: string;
784
+ text: string;
785
+ depth: number;
786
+ }[];
787
+ headingRanges?: readonly (readonly [number, number])[];
788
+ outlineRanges?: Record<string, readonly [number, number]>;
789
+ headingFiles?: Record<number, string>;
790
+ headingIndexes?: import("@docs-sdk-dev/core").MarkdownHeadingIndexes;
791
+ }[];
792
+ losses?: (import("@docs-sdk-dev/core").ProjectionLoss & {
793
+ section: string;
794
+ })[];
795
+ } | null;
796
+ resolveCompatible: (identity: import("@docs-sdk-dev/core").Identity) => import("@docs-sdk-dev/core").Resolution<{
797
+ key: string;
798
+ identity: import("@docs-sdk-dev/core").Identity & {
799
+ dimensions: Record<string, string>;
800
+ };
801
+ route: string;
802
+ title: string;
803
+ availability?: import("@docs-sdk-dev/core").Context;
804
+ navigationHidden?: boolean;
805
+ outlineView?: import("@docs-sdk-dev/reader").OutlineView | null;
806
+ description?: string;
807
+ meta?: Record<string, import("@docs-sdk-dev/reader/content-schema").JsonValue>;
808
+ showMetadata?: readonly string[];
809
+ presentation?: {
810
+ layout?: string | false;
811
+ actions?: readonly {
812
+ text: string;
813
+ href: string;
814
+ }[];
815
+ rendererProfile?: string;
816
+ };
817
+ origin?: {
818
+ kind: "generated" | "overlay" | "authored";
819
+ collection: string;
820
+ source: string;
821
+ upstreamRevision: string;
822
+ authored?: string;
823
+ };
824
+ mode: "template" | "replacement" | "markdown";
825
+ template?: {
826
+ id: string;
827
+ revision: string;
828
+ };
829
+ provenance: import("@docs-sdk-dev/core").Provenance[];
830
+ markdown: string;
831
+ contextDefaults?: import("@docs-sdk-dev/core").Context;
832
+ contextVariants?: {
833
+ context: import("@docs-sdk-dev/core").Context;
834
+ markdown: string;
835
+ sections: {
836
+ id: string;
837
+ title?: string;
838
+ documentOffset?: number;
839
+ markdown: string;
840
+ provenance: import("@docs-sdk-dev/core").Provenance[];
841
+ outline?: import("@docs-sdk-dev/reader").OutlineContribution[];
842
+ headings?: {
843
+ id: string;
844
+ text: string;
845
+ depth: number;
846
+ }[];
847
+ headingRanges?: readonly (readonly [number, number])[];
848
+ outlineRanges?: Record<string, readonly [number, number]>;
849
+ headingFiles?: Record<number, string>;
850
+ headingIndexes?: import("@docs-sdk-dev/core").MarkdownHeadingIndexes;
851
+ }[];
852
+ }[];
853
+ sections: {
854
+ id: string;
855
+ title?: string;
856
+ documentOffset?: number;
857
+ markdown: string;
858
+ provenance: import("@docs-sdk-dev/core").Provenance[];
859
+ outline?: import("@docs-sdk-dev/reader").OutlineContribution[];
860
+ headings?: {
861
+ id: string;
862
+ text: string;
863
+ depth: number;
864
+ }[];
865
+ headingRanges?: readonly (readonly [number, number])[];
866
+ outlineRanges?: Record<string, readonly [number, number]>;
867
+ headingFiles?: Record<number, string>;
868
+ headingIndexes?: import("@docs-sdk-dev/core").MarkdownHeadingIndexes;
869
+ }[];
870
+ losses?: (import("@docs-sdk-dev/core").ProjectionLoss & {
871
+ section: string;
872
+ })[];
873
+ }>;
874
+ resolveEdition: (identity: import("@docs-sdk-dev/core").Identity) => import("@docs-sdk-dev/core").Resolution<{
875
+ key: string;
876
+ identity: import("@docs-sdk-dev/core").Identity & {
877
+ dimensions: Record<string, string>;
878
+ };
879
+ route: string;
880
+ title: string;
881
+ availability?: import("@docs-sdk-dev/core").Context;
882
+ navigationHidden?: boolean;
883
+ outlineView?: import("@docs-sdk-dev/reader").OutlineView | null;
884
+ description?: string;
885
+ meta?: Record<string, import("@docs-sdk-dev/reader/content-schema").JsonValue>;
886
+ showMetadata?: readonly string[];
887
+ presentation?: {
888
+ layout?: string | false;
889
+ actions?: readonly {
890
+ text: string;
891
+ href: string;
892
+ }[];
893
+ rendererProfile?: string;
894
+ };
895
+ origin?: {
896
+ kind: "generated" | "overlay" | "authored";
897
+ collection: string;
898
+ source: string;
899
+ upstreamRevision: string;
900
+ authored?: string;
901
+ };
902
+ mode: "template" | "replacement" | "markdown";
903
+ template?: {
904
+ id: string;
905
+ revision: string;
906
+ };
907
+ provenance: import("@docs-sdk-dev/core").Provenance[];
908
+ markdown: string;
909
+ contextDefaults?: import("@docs-sdk-dev/core").Context;
910
+ contextVariants?: {
911
+ context: import("@docs-sdk-dev/core").Context;
912
+ markdown: string;
913
+ sections: {
914
+ id: string;
915
+ title?: string;
916
+ documentOffset?: number;
917
+ markdown: string;
918
+ provenance: import("@docs-sdk-dev/core").Provenance[];
919
+ outline?: import("@docs-sdk-dev/reader").OutlineContribution[];
920
+ headings?: {
921
+ id: string;
922
+ text: string;
923
+ depth: number;
924
+ }[];
925
+ headingRanges?: readonly (readonly [number, number])[];
926
+ outlineRanges?: Record<string, readonly [number, number]>;
927
+ headingFiles?: Record<number, string>;
928
+ headingIndexes?: import("@docs-sdk-dev/core").MarkdownHeadingIndexes;
929
+ }[];
930
+ }[];
931
+ sections: {
932
+ id: string;
933
+ title?: string;
934
+ documentOffset?: number;
935
+ markdown: string;
936
+ provenance: import("@docs-sdk-dev/core").Provenance[];
937
+ outline?: import("@docs-sdk-dev/reader").OutlineContribution[];
938
+ headings?: {
939
+ id: string;
940
+ text: string;
941
+ depth: number;
942
+ }[];
943
+ headingRanges?: readonly (readonly [number, number])[];
944
+ outlineRanges?: Record<string, readonly [number, number]>;
945
+ headingFiles?: Record<number, string>;
946
+ headingIndexes?: import("@docs-sdk-dev/core").MarkdownHeadingIndexes;
947
+ }[];
948
+ losses?: (import("@docs-sdk-dev/core").ProjectionLoss & {
949
+ section: string;
950
+ })[];
951
+ }> & {
952
+ resolution?: Pick<import("@docs-sdk-dev/reader").DimensionInspection<{
953
+ key: string;
954
+ identity: import("@docs-sdk-dev/core").Identity & {
955
+ dimensions: Record<string, string>;
956
+ };
957
+ route: string;
958
+ title: string;
959
+ availability?: import("@docs-sdk-dev/core").Context;
960
+ navigationHidden?: boolean;
961
+ outlineView?: import("@docs-sdk-dev/reader").OutlineView | null;
962
+ description?: string;
963
+ meta?: Record<string, import("@docs-sdk-dev/reader/content-schema").JsonValue>;
964
+ showMetadata?: readonly string[];
965
+ presentation?: {
966
+ layout?: string | false;
967
+ actions?: readonly {
968
+ text: string;
969
+ href: string;
970
+ }[];
971
+ rendererProfile?: string;
972
+ };
973
+ origin?: {
974
+ kind: "generated" | "overlay" | "authored";
975
+ collection: string;
976
+ source: string;
977
+ upstreamRevision: string;
978
+ authored?: string;
979
+ };
980
+ mode: "template" | "replacement" | "markdown";
981
+ template?: {
982
+ id: string;
983
+ revision: string;
984
+ };
985
+ provenance: import("@docs-sdk-dev/core").Provenance[];
986
+ markdown: string;
987
+ contextDefaults?: import("@docs-sdk-dev/core").Context;
988
+ contextVariants?: {
989
+ context: import("@docs-sdk-dev/core").Context;
990
+ markdown: string;
991
+ sections: {
992
+ id: string;
993
+ title?: string;
994
+ documentOffset?: number;
995
+ markdown: string;
996
+ provenance: import("@docs-sdk-dev/core").Provenance[];
997
+ outline?: import("@docs-sdk-dev/reader").OutlineContribution[];
998
+ headings?: {
999
+ id: string;
1000
+ text: string;
1001
+ depth: number;
1002
+ }[];
1003
+ headingRanges?: readonly (readonly [number, number])[];
1004
+ outlineRanges?: Record<string, readonly [number, number]>;
1005
+ headingFiles?: Record<number, string>;
1006
+ headingIndexes?: import("@docs-sdk-dev/core").MarkdownHeadingIndexes;
1007
+ }[];
1008
+ }[];
1009
+ sections: {
1010
+ id: string;
1011
+ title?: string;
1012
+ documentOffset?: number;
1013
+ markdown: string;
1014
+ provenance: import("@docs-sdk-dev/core").Provenance[];
1015
+ outline?: import("@docs-sdk-dev/reader").OutlineContribution[];
1016
+ headings?: {
1017
+ id: string;
1018
+ text: string;
1019
+ depth: number;
1020
+ }[];
1021
+ headingRanges?: readonly (readonly [number, number])[];
1022
+ outlineRanges?: Record<string, readonly [number, number]>;
1023
+ headingFiles?: Record<number, string>;
1024
+ headingIndexes?: import("@docs-sdk-dev/core").MarkdownHeadingIndexes;
1025
+ }[];
1026
+ losses?: (import("@docs-sdk-dev/core").ProjectionLoss & {
1027
+ section: string;
1028
+ })[];
1029
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status">;
1030
+ };
1031
+ resolve: (identity: import("@docs-sdk-dev/core").Identity) => import("@docs-sdk-dev/core").Resolution<Manifest["documents"][number]>;
1032
+ context(identity: import("@docs-sdk-dev/core").Identity, request?: import("@docs-sdk-dev/reader").DimensionRequest): import("@docs-sdk-dev/reader").DimensionInspection<{
1033
+ key: string;
1034
+ identity: import("@docs-sdk-dev/core").Identity & {
1035
+ dimensions: Record<string, string>;
1036
+ };
1037
+ route: string;
1038
+ title: string;
1039
+ availability?: import("@docs-sdk-dev/core").Context;
1040
+ navigationHidden?: boolean;
1041
+ outlineView?: import("@docs-sdk-dev/reader").OutlineView | null;
1042
+ description?: string;
1043
+ meta?: Record<string, import("@docs-sdk-dev/reader/content-schema").JsonValue>;
1044
+ showMetadata?: readonly string[];
1045
+ presentation?: {
1046
+ layout?: string | false;
1047
+ actions?: readonly {
1048
+ text: string;
1049
+ href: string;
1050
+ }[];
1051
+ rendererProfile?: string;
1052
+ };
1053
+ origin?: {
1054
+ kind: "generated" | "overlay" | "authored";
1055
+ collection: string;
1056
+ source: string;
1057
+ upstreamRevision: string;
1058
+ authored?: string;
1059
+ };
1060
+ mode: "template" | "replacement" | "markdown";
1061
+ template?: {
1062
+ id: string;
1063
+ revision: string;
1064
+ };
1065
+ provenance: import("@docs-sdk-dev/core").Provenance[];
1066
+ markdown: string;
1067
+ contextDefaults?: import("@docs-sdk-dev/core").Context;
1068
+ contextVariants?: {
1069
+ context: import("@docs-sdk-dev/core").Context;
1070
+ markdown: string;
1071
+ sections: {
1072
+ id: string;
1073
+ title?: string;
1074
+ documentOffset?: number;
1075
+ markdown: string;
1076
+ provenance: import("@docs-sdk-dev/core").Provenance[];
1077
+ outline?: import("@docs-sdk-dev/reader").OutlineContribution[];
1078
+ headings?: {
1079
+ id: string;
1080
+ text: string;
1081
+ depth: number;
1082
+ }[];
1083
+ headingRanges?: readonly (readonly [number, number])[];
1084
+ outlineRanges?: Record<string, readonly [number, number]>;
1085
+ headingFiles?: Record<number, string>;
1086
+ headingIndexes?: import("@docs-sdk-dev/core").MarkdownHeadingIndexes;
1087
+ }[];
1088
+ }[];
1089
+ sections: {
1090
+ id: string;
1091
+ title?: string;
1092
+ documentOffset?: number;
1093
+ markdown: string;
1094
+ provenance: import("@docs-sdk-dev/core").Provenance[];
1095
+ outline?: import("@docs-sdk-dev/reader").OutlineContribution[];
1096
+ headings?: {
1097
+ id: string;
1098
+ text: string;
1099
+ depth: number;
1100
+ }[];
1101
+ headingRanges?: readonly (readonly [number, number])[];
1102
+ outlineRanges?: Record<string, readonly [number, number]>;
1103
+ headingFiles?: Record<number, string>;
1104
+ headingIndexes?: import("@docs-sdk-dev/core").MarkdownHeadingIndexes;
1105
+ }[];
1106
+ losses?: (import("@docs-sdk-dev/core").ProjectionLoss & {
1107
+ section: string;
1108
+ })[];
1109
+ }>;
1110
+ navigation(identity: import("@docs-sdk-dev/core").Identity, view?: string, placement?: string, requested?: import("@docs-sdk-dev/core").Context): {
1111
+ current: import("@docs-sdk-dev/reader").NavigationPlacement | undefined;
1112
+ breadcrumbs: import("@docs-sdk-dev/reader").NavigationPlacement[];
1113
+ previous: import("@docs-sdk-dev/reader").NavigationPlacement | undefined;
1114
+ next: import("@docs-sdk-dev/reader").NavigationPlacement | undefined;
1115
+ view: import("@docs-sdk-dev/reader").PublishedNavigation;
1116
+ } | null | undefined;
1117
+ outline(identity: import("@docs-sdk-dev/core").Identity, view?: import("@docs-sdk-dev/reader").OutlineProjection | string, requested?: import("@docs-sdk-dev/core").Context): import("@docs-sdk-dev/reader").OutlineEntry[] | null;
1118
+ route(pathname: string): {
1119
+ status: "redirect";
1120
+ to: string;
1121
+ document?: undefined;
1122
+ } | {
1123
+ to?: undefined;
1124
+ status: "not-found";
1125
+ document?: undefined;
1126
+ } | {
1127
+ to?: undefined;
1128
+ status: "document";
1129
+ document: {
1130
+ key: string;
1131
+ identity: import("@docs-sdk-dev/core").Identity & {
1132
+ dimensions: Record<string, string>;
1133
+ };
1134
+ route: string;
1135
+ title: string;
1136
+ availability?: import("@docs-sdk-dev/core").Context;
1137
+ navigationHidden?: boolean;
1138
+ outlineView?: import("@docs-sdk-dev/reader").OutlineView | null;
1139
+ description?: string;
1140
+ meta?: Record<string, import("@docs-sdk-dev/reader/content-schema").JsonValue>;
1141
+ showMetadata?: readonly string[];
1142
+ presentation?: {
1143
+ layout?: string | false;
1144
+ actions?: readonly {
1145
+ text: string;
1146
+ href: string;
1147
+ }[];
1148
+ rendererProfile?: string;
1149
+ };
1150
+ origin?: {
1151
+ kind: "generated" | "overlay" | "authored";
1152
+ collection: string;
1153
+ source: string;
1154
+ upstreamRevision: string;
1155
+ authored?: string;
1156
+ };
1157
+ mode: "template" | "replacement" | "markdown";
1158
+ template?: {
1159
+ id: string;
1160
+ revision: string;
1161
+ };
1162
+ provenance: import("@docs-sdk-dev/core").Provenance[];
1163
+ markdown: string;
1164
+ contextDefaults?: import("@docs-sdk-dev/core").Context;
1165
+ contextVariants?: {
1166
+ context: import("@docs-sdk-dev/core").Context;
1167
+ markdown: string;
1168
+ sections: {
1169
+ id: string;
1170
+ title?: string;
1171
+ documentOffset?: number;
1172
+ markdown: string;
1173
+ provenance: import("@docs-sdk-dev/core").Provenance[];
1174
+ outline?: import("@docs-sdk-dev/reader").OutlineContribution[];
1175
+ headings?: {
1176
+ id: string;
1177
+ text: string;
1178
+ depth: number;
1179
+ }[];
1180
+ headingRanges?: readonly (readonly [number, number])[];
1181
+ outlineRanges?: Record<string, readonly [number, number]>;
1182
+ headingFiles?: Record<number, string>;
1183
+ headingIndexes?: import("@docs-sdk-dev/core").MarkdownHeadingIndexes;
1184
+ }[];
1185
+ }[];
1186
+ sections: {
1187
+ id: string;
1188
+ title?: string;
1189
+ documentOffset?: number;
1190
+ markdown: string;
1191
+ provenance: import("@docs-sdk-dev/core").Provenance[];
1192
+ outline?: import("@docs-sdk-dev/reader").OutlineContribution[];
1193
+ headings?: {
1194
+ id: string;
1195
+ text: string;
1196
+ depth: number;
1197
+ }[];
1198
+ headingRanges?: readonly (readonly [number, number])[];
1199
+ outlineRanges?: Record<string, readonly [number, number]>;
1200
+ headingFiles?: Record<number, string>;
1201
+ headingIndexes?: import("@docs-sdk-dev/core").MarkdownHeadingIndexes;
1202
+ }[];
1203
+ losses?: (import("@docs-sdk-dev/core").ProjectionLoss & {
1204
+ section: string;
1205
+ })[];
1206
+ };
1207
+ };
1208
+ read(identity: import("@docs-sdk-dev/core").Identity, sectionId?: string, headingId?: string, requested?: import("@docs-sdk-dev/core").Context): Promise<PublishedMarkdownRead | null>;
1209
+ };
1210
+ getPage(slug: readonly string[]): Promise<PresentedPage | null>;
1211
+ getMetadata(slug: readonly string[]): Metadata;
1212
+ getRedirect(slug: readonly string[]): string | undefined;
1213
+ getAgentContext(slug: readonly string[], section?: string): Promise<(PublishedMarkdownRead & {
1214
+ buildRevision: string;
1215
+ }) | null>;
1216
+ getMarkdown(slug: readonly string[]): Promise<string | undefined>;
1217
+ resolveFact(id: string, context?: import("@docs-sdk-dev/core").Context | undefined): Promise<import("@docs-sdk-dev/core").Resolution<import("@docs-sdk-dev/core").EntityVariant<unknown>>>;
1218
+ search(text: string, options?: Parameters<NonNullable<DocsPublication["search"]>>[1]): Promise<import("@docs-sdk-dev/reader/search").SearchResult[]>;
1219
+ getResourceAsset(path: readonly string[]): Promise<Response>;
1220
+ getAsset(path: string): Promise<Response>;
1221
+ mcp(): Promise<Response>;
1222
+ response: typeof privateResponse;
1223
+ }>;
1224
+ getPage(slug: readonly string[], routeView?: RouteView): Promise<PresentedPage | null>;
1225
+ /** Render a cookie-aware public page without placing its HTML in an ISR cache. */
1226
+ getPageForRequest(slug: readonly string[], request: Request, routeView?: RouteView): Promise<PresentedPage | null>;
1227
+ /** Read a bounded, navigation-only plan from the public publication. Request views cannot produce this plan. */
1228
+ getIslandPreloadPlan(slug: readonly string[]): Promise<IslandResource | null>;
1229
+ /** The build revision of the public publication this render reads. */
1230
+ getBuildRevision(): Promise<string>;
1231
+ getMetadata(slug: readonly string[]): Promise<Metadata>;
1232
+ generateStaticParams({ excludeNative }?: {
1233
+ excludeNative?: boolean;
1234
+ }): Promise<{
1235
+ slug: string[];
1236
+ }[]>;
1237
+ getResourceAsset(path: readonly string[], request?: Request): Promise<Response>;
1238
+ getDiscoveryAsset(path: string, request?: Request): Promise<Response>;
1239
+ getRedirect(slug: readonly string[]): Promise<string | undefined>;
1240
+ getAgentContext(slug: readonly string[], section?: string): Promise<(PublishedMarkdownRead & {
1241
+ buildRevision: string;
1242
+ }) | null>;
1243
+ resolveFact(id: string, context?: import("@docs-sdk-dev/core").Context | undefined): Promise<import("@docs-sdk-dev/core").Resolution<import("@docs-sdk-dev/core").EntityVariant<unknown>>>;
1244
+ search(text: string, options?: Parameters<NonNullable<DocsPublication["search"]>>[1]): Promise<import("@docs-sdk-dev/reader/search").SearchResult[]>;
1245
+ getMarkdown(slug: readonly string[]): Promise<string | undefined>;
1246
+ };
1247
+ /**
1248
+ * Refresh open pages in place after `devNext` rebuilds the publication. Render it once in the root layout. It renders
1249
+ * nothing in production or outside `devNext`, and production builds leave its client code out.
1250
+ */
1251
+ export declare function DocsDevRefresh({ docs, }: {
1252
+ docs: Pick<ReturnType<typeof createDocs>, "getBuildRevision">;
1253
+ }): Promise<ReactNode>;