@krak-stack/registry 0.1.1 → 0.1.3

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 (34) hide show
  1. package/README.md +17 -1
  2. package/dist/components/ui/alert.d.ts +10 -0
  3. package/dist/components/ui/bubble.d.ts +16 -0
  4. package/dist/components/ui/collapsible.d.ts +5 -0
  5. package/dist/components/ui/empty.d.ts +11 -0
  6. package/dist/components/ui/marker.d.ts +10 -0
  7. package/dist/components/ui/message-scroller.d.ts +10 -0
  8. package/dist/components/ui/message.d.ts +10 -0
  9. package/dist/components/ui/sidebar-layout.d.ts +3 -0
  10. package/dist/components/ui/sidebar-layout.js +5 -0
  11. package/dist/lib/docs-ai.d.ts +136 -0
  12. package/dist/lib/docs-ai.js +310 -0
  13. package/dist/lib/docs-core.d.ts +681 -0
  14. package/dist/lib/docs-core.js +2571 -0
  15. package/dist/lib/httpapi-ai.d.ts +54 -0
  16. package/dist/lib/httpapi-ai.js +361 -0
  17. package/dist/lib/httpapi-cli.d.ts +22 -0
  18. package/dist/lib/httpapi-cli.js +412 -0
  19. package/dist/lib/httpapi-client.d.ts +20 -0
  20. package/dist/lib/httpapi-client.js +50 -0
  21. package/dist/lib/httpapi-helpers.d.ts +105 -0
  22. package/dist/lib/httpapi-helpers.js +237 -0
  23. package/dist/lib/httpapi-mcp.d.ts +20 -0
  24. package/dist/lib/httpapi-mcp.js +366 -0
  25. package/dist/lib/query.js +128 -0
  26. package/dist/services/agent/client/atom.d.ts +56 -0
  27. package/dist/services/agent/client/index.d.ts +2 -0
  28. package/dist/services/agent/client/index.js +2239 -0
  29. package/dist/services/agent/client/widget.d.ts +52 -0
  30. package/dist/services/agent/index.d.ts +111 -0
  31. package/dist/services/agent/index.js +190 -0
  32. package/dist/services/agent/schema.d.ts +161 -0
  33. package/dist/services/agent/schema.js +135 -0
  34. package/package.json +58 -2
@@ -0,0 +1,681 @@
1
+ import { Schema } from "effect";
2
+ import { type ReactNode } from "react";
3
+ export type DocsLocale = string;
4
+ export declare const DocsSection: Schema.String;
5
+ export type DocsSection = typeof DocsSection.Type;
6
+ export declare const DocsPageType: Schema.Literals<readonly ["concept", "tutorial", "how-to", "reference", "runbook"]>;
7
+ export type DocsPageType = typeof DocsPageType.Type;
8
+ export declare const DocsFrontmatter: Schema.Struct<{
9
+ readonly slug: Schema.String;
10
+ readonly path: Schema.String;
11
+ readonly title: Schema.String;
12
+ readonly description: Schema.String;
13
+ readonly icon: Schema.String;
14
+ readonly order: Schema.Number;
15
+ readonly locale: Schema.String;
16
+ readonly section: Schema.String;
17
+ readonly type: Schema.Literals<readonly ["concept", "tutorial", "how-to", "reference", "runbook"]>;
18
+ readonly legacySlugs: Schema.optional<Schema.$Array<Schema.String>>;
19
+ }>;
20
+ export declare const DocsHeadingSchema: Schema.Struct<{
21
+ readonly depth: Schema.Literals<readonly [2, 3]>;
22
+ readonly id: Schema.String;
23
+ readonly title: Schema.String;
24
+ }>;
25
+ export type DocsHeading = typeof DocsHeadingSchema.Type;
26
+ export declare const DocsPageSchema: Schema.Struct<{
27
+ readonly slug: Schema.String;
28
+ readonly path: Schema.String;
29
+ readonly title: Schema.String;
30
+ readonly description: Schema.String;
31
+ readonly icon: Schema.String;
32
+ readonly order: Schema.Number;
33
+ readonly locale: Schema.String;
34
+ readonly section: Schema.String;
35
+ readonly type: Schema.Literals<readonly ["concept", "tutorial", "how-to", "reference", "runbook"]>;
36
+ readonly legacySlugs: Schema.optional<Schema.$Array<Schema.String>>;
37
+ readonly headings: Schema.$Array<Schema.Struct<{
38
+ readonly depth: Schema.Literals<readonly [2, 3]>;
39
+ readonly id: Schema.String;
40
+ readonly title: Schema.String;
41
+ }>>;
42
+ readonly searchText: Schema.String;
43
+ readonly sourceFile: Schema.String;
44
+ readonly source: Schema.String;
45
+ }>;
46
+ export type DocsPage = typeof DocsPageSchema.Type;
47
+ export declare const slugifyDocsHeading: (value: string) => string;
48
+ type DocsSourceOptions = {
49
+ locales: ReadonlyArray<DocsLocale>;
50
+ requireLocaleParity?: boolean;
51
+ matchesLocale?: (file: string, locale: DocsLocale) => boolean;
52
+ };
53
+ export type DocsSourceConfig = DocsSourceOptions & {
54
+ pages: ReadonlyArray<unknown>;
55
+ };
56
+ export type MdxDocsSourceConfig = DocsSourceOptions & {
57
+ files: Readonly<Record<string, string>>;
58
+ };
59
+ export declare const createDocsSource: (config: DocsSourceConfig) => {
60
+ locales: readonly string[];
61
+ pages: readonly {
62
+ readonly slug: string;
63
+ readonly path: string;
64
+ readonly title: string;
65
+ readonly description: string;
66
+ readonly icon: string;
67
+ readonly order: number;
68
+ readonly locale: string;
69
+ readonly section: string;
70
+ readonly type: "concept" | "how-to" | "reference" | "runbook" | "tutorial";
71
+ readonly legacySlugs?: readonly string[] | undefined;
72
+ readonly headings: readonly Schema.Struct.ReadonlySide<{
73
+ readonly depth: Schema.Literals<readonly [2, 3]>;
74
+ readonly id: Schema.String;
75
+ readonly title: Schema.String;
76
+ }, "Type">[];
77
+ readonly searchText: string;
78
+ readonly sourceFile: string;
79
+ readonly source: string;
80
+ }[];
81
+ getPage: (slug: string, locale: DocsLocale) => {
82
+ readonly slug: string;
83
+ readonly path: string;
84
+ readonly title: string;
85
+ readonly description: string;
86
+ readonly icon: string;
87
+ readonly order: number;
88
+ readonly locale: string;
89
+ readonly section: string;
90
+ readonly type: "concept" | "how-to" | "reference" | "runbook" | "tutorial";
91
+ readonly legacySlugs?: readonly string[] | undefined;
92
+ readonly headings: readonly Schema.Struct.ReadonlySide<{
93
+ readonly depth: Schema.Literals<readonly [2, 3]>;
94
+ readonly id: Schema.String;
95
+ readonly title: Schema.String;
96
+ }, "Type">[];
97
+ readonly searchText: string;
98
+ readonly sourceFile: string;
99
+ readonly source: string;
100
+ } | undefined;
101
+ getPageNeighbors: (slug: string, locale: DocsLocale) => {
102
+ previous: {
103
+ readonly slug: string;
104
+ readonly path: string;
105
+ readonly title: string;
106
+ readonly description: string;
107
+ readonly icon: string;
108
+ readonly order: number;
109
+ readonly locale: string;
110
+ readonly section: string;
111
+ readonly type: "concept" | "how-to" | "reference" | "runbook" | "tutorial";
112
+ readonly legacySlugs?: readonly string[] | undefined;
113
+ readonly headings: readonly Schema.Struct.ReadonlySide<{
114
+ readonly depth: Schema.Literals<readonly [2, 3]>;
115
+ readonly id: Schema.String;
116
+ readonly title: Schema.String;
117
+ }, "Type">[];
118
+ readonly searchText: string;
119
+ readonly sourceFile: string;
120
+ readonly source: string;
121
+ } | undefined;
122
+ next: {
123
+ readonly slug: string;
124
+ readonly path: string;
125
+ readonly title: string;
126
+ readonly description: string;
127
+ readonly icon: string;
128
+ readonly order: number;
129
+ readonly locale: string;
130
+ readonly section: string;
131
+ readonly type: "concept" | "how-to" | "reference" | "runbook" | "tutorial";
132
+ readonly legacySlugs?: readonly string[] | undefined;
133
+ readonly headings: readonly Schema.Struct.ReadonlySide<{
134
+ readonly depth: Schema.Literals<readonly [2, 3]>;
135
+ readonly id: Schema.String;
136
+ readonly title: Schema.String;
137
+ }, "Type">[];
138
+ readonly searchText: string;
139
+ readonly sourceFile: string;
140
+ readonly source: string;
141
+ } | undefined;
142
+ };
143
+ getPages: (locale: DocsLocale) => {
144
+ readonly slug: string;
145
+ readonly path: string;
146
+ readonly title: string;
147
+ readonly description: string;
148
+ readonly icon: string;
149
+ readonly order: number;
150
+ readonly locale: string;
151
+ readonly section: string;
152
+ readonly type: "concept" | "how-to" | "reference" | "runbook" | "tutorial";
153
+ readonly legacySlugs?: readonly string[] | undefined;
154
+ readonly headings: readonly Schema.Struct.ReadonlySide<{
155
+ readonly depth: Schema.Literals<readonly [2, 3]>;
156
+ readonly id: Schema.String;
157
+ readonly title: Schema.String;
158
+ }, "Type">[];
159
+ readonly searchText: string;
160
+ readonly sourceFile: string;
161
+ readonly source: string;
162
+ }[];
163
+ resolvePage: (slug: string, locale: DocsLocale) => {
164
+ readonly slug: string;
165
+ readonly path: string;
166
+ readonly title: string;
167
+ readonly description: string;
168
+ readonly icon: string;
169
+ readonly order: number;
170
+ readonly locale: string;
171
+ readonly section: string;
172
+ readonly type: "concept" | "how-to" | "reference" | "runbook" | "tutorial";
173
+ readonly legacySlugs?: readonly string[] | undefined;
174
+ readonly headings: readonly Schema.Struct.ReadonlySide<{
175
+ readonly depth: Schema.Literals<readonly [2, 3]>;
176
+ readonly id: Schema.String;
177
+ readonly title: Schema.String;
178
+ }, "Type">[];
179
+ readonly searchText: string;
180
+ readonly sourceFile: string;
181
+ readonly source: string;
182
+ } | undefined;
183
+ };
184
+ export type DocsSource = ReturnType<typeof createDocsSource>;
185
+ export type DocsSearchResult = {
186
+ page: DocsPage;
187
+ heading?: DocsHeading;
188
+ };
189
+ export declare const createMdxDocsSource: (config: MdxDocsSourceConfig) => {
190
+ locales: readonly string[];
191
+ pages: readonly {
192
+ readonly slug: string;
193
+ readonly path: string;
194
+ readonly title: string;
195
+ readonly description: string;
196
+ readonly icon: string;
197
+ readonly order: number;
198
+ readonly locale: string;
199
+ readonly section: string;
200
+ readonly type: "concept" | "how-to" | "reference" | "runbook" | "tutorial";
201
+ readonly legacySlugs?: readonly string[] | undefined;
202
+ readonly headings: readonly Schema.Struct.ReadonlySide<{
203
+ readonly depth: Schema.Literals<readonly [2, 3]>;
204
+ readonly id: Schema.String;
205
+ readonly title: Schema.String;
206
+ }, "Type">[];
207
+ readonly searchText: string;
208
+ readonly sourceFile: string;
209
+ readonly source: string;
210
+ }[];
211
+ getPage: (slug: string, locale: DocsLocale) => {
212
+ readonly slug: string;
213
+ readonly path: string;
214
+ readonly title: string;
215
+ readonly description: string;
216
+ readonly icon: string;
217
+ readonly order: number;
218
+ readonly locale: string;
219
+ readonly section: string;
220
+ readonly type: "concept" | "how-to" | "reference" | "runbook" | "tutorial";
221
+ readonly legacySlugs?: readonly string[] | undefined;
222
+ readonly headings: readonly Schema.Struct.ReadonlySide<{
223
+ readonly depth: Schema.Literals<readonly [2, 3]>;
224
+ readonly id: Schema.String;
225
+ readonly title: Schema.String;
226
+ }, "Type">[];
227
+ readonly searchText: string;
228
+ readonly sourceFile: string;
229
+ readonly source: string;
230
+ } | undefined;
231
+ getPageNeighbors: (slug: string, locale: DocsLocale) => {
232
+ previous: {
233
+ readonly slug: string;
234
+ readonly path: string;
235
+ readonly title: string;
236
+ readonly description: string;
237
+ readonly icon: string;
238
+ readonly order: number;
239
+ readonly locale: string;
240
+ readonly section: string;
241
+ readonly type: "concept" | "how-to" | "reference" | "runbook" | "tutorial";
242
+ readonly legacySlugs?: readonly string[] | undefined;
243
+ readonly headings: readonly Schema.Struct.ReadonlySide<{
244
+ readonly depth: Schema.Literals<readonly [2, 3]>;
245
+ readonly id: Schema.String;
246
+ readonly title: Schema.String;
247
+ }, "Type">[];
248
+ readonly searchText: string;
249
+ readonly sourceFile: string;
250
+ readonly source: string;
251
+ } | undefined;
252
+ next: {
253
+ readonly slug: string;
254
+ readonly path: string;
255
+ readonly title: string;
256
+ readonly description: string;
257
+ readonly icon: string;
258
+ readonly order: number;
259
+ readonly locale: string;
260
+ readonly section: string;
261
+ readonly type: "concept" | "how-to" | "reference" | "runbook" | "tutorial";
262
+ readonly legacySlugs?: readonly string[] | undefined;
263
+ readonly headings: readonly Schema.Struct.ReadonlySide<{
264
+ readonly depth: Schema.Literals<readonly [2, 3]>;
265
+ readonly id: Schema.String;
266
+ readonly title: Schema.String;
267
+ }, "Type">[];
268
+ readonly searchText: string;
269
+ readonly sourceFile: string;
270
+ readonly source: string;
271
+ } | undefined;
272
+ };
273
+ getPages: (locale: DocsLocale) => {
274
+ readonly slug: string;
275
+ readonly path: string;
276
+ readonly title: string;
277
+ readonly description: string;
278
+ readonly icon: string;
279
+ readonly order: number;
280
+ readonly locale: string;
281
+ readonly section: string;
282
+ readonly type: "concept" | "how-to" | "reference" | "runbook" | "tutorial";
283
+ readonly legacySlugs?: readonly string[] | undefined;
284
+ readonly headings: readonly Schema.Struct.ReadonlySide<{
285
+ readonly depth: Schema.Literals<readonly [2, 3]>;
286
+ readonly id: Schema.String;
287
+ readonly title: Schema.String;
288
+ }, "Type">[];
289
+ readonly searchText: string;
290
+ readonly sourceFile: string;
291
+ readonly source: string;
292
+ }[];
293
+ resolvePage: (slug: string, locale: DocsLocale) => {
294
+ readonly slug: string;
295
+ readonly path: string;
296
+ readonly title: string;
297
+ readonly description: string;
298
+ readonly icon: string;
299
+ readonly order: number;
300
+ readonly locale: string;
301
+ readonly section: string;
302
+ readonly type: "concept" | "how-to" | "reference" | "runbook" | "tutorial";
303
+ readonly legacySlugs?: readonly string[] | undefined;
304
+ readonly headings: readonly Schema.Struct.ReadonlySide<{
305
+ readonly depth: Schema.Literals<readonly [2, 3]>;
306
+ readonly id: Schema.String;
307
+ readonly title: Schema.String;
308
+ }, "Type">[];
309
+ readonly searchText: string;
310
+ readonly sourceFile: string;
311
+ readonly source: string;
312
+ } | undefined;
313
+ };
314
+ export type DocsConfig = {
315
+ source: DocsSource;
316
+ basePath: `/${string}`;
317
+ defaultSlug: string;
318
+ origin: `http://${string}` | `https://${string}`;
319
+ siteName: string;
320
+ defaultLocale?: DocsLocale;
321
+ messages?: (locale: DocsLocale) => DocsMessageOverrides;
322
+ brand?: {
323
+ label: string;
324
+ subtitle: () => string;
325
+ icon: string;
326
+ href: string;
327
+ };
328
+ resources?: {
329
+ label: () => string;
330
+ items: ReadonlyArray<DocsResource>;
331
+ };
332
+ githubLabel?: string;
333
+ sectionOrder?: ReadonlyArray<DocsSection>;
334
+ github?: {
335
+ url: `https://${string}`;
336
+ branch?: string;
337
+ };
338
+ };
339
+ export declare const makeDocs: (config: DocsConfig) => {
340
+ basePath: string;
341
+ brand: {
342
+ label: string;
343
+ subtitle: () => string;
344
+ icon: string;
345
+ href: string;
346
+ };
347
+ defaultSlug: string;
348
+ editUrl: (page: DocsPage) => string | undefined;
349
+ githubUrl: string | undefined;
350
+ githubLabel: string;
351
+ getHead: ({ locale, page, }: {
352
+ locale: DocsLocale;
353
+ page?: DocsPage;
354
+ }) => {
355
+ meta: ({
356
+ title: string;
357
+ name?: undefined;
358
+ property?: undefined;
359
+ content?: undefined;
360
+ } | {
361
+ title?: undefined;
362
+ name: string;
363
+ content: string;
364
+ property?: undefined;
365
+ } | {
366
+ title?: undefined;
367
+ name?: undefined;
368
+ property: string;
369
+ content: string;
370
+ })[];
371
+ links: ({
372
+ rel: string;
373
+ href: string;
374
+ } | {
375
+ rel: string;
376
+ hrefLang: string;
377
+ href: string;
378
+ })[];
379
+ };
380
+ getMessages: (locale: DocsLocale) => DocsRouteMessages;
381
+ origin: string;
382
+ resources: {
383
+ label: () => string;
384
+ items: ReadonlyArray<DocsResource>;
385
+ } | undefined;
386
+ source: {
387
+ locales: readonly string[];
388
+ pages: readonly {
389
+ readonly slug: string;
390
+ readonly path: string;
391
+ readonly title: string;
392
+ readonly description: string;
393
+ readonly icon: string;
394
+ readonly order: number;
395
+ readonly locale: string;
396
+ readonly section: string;
397
+ readonly type: "concept" | "how-to" | "reference" | "runbook" | "tutorial";
398
+ readonly legacySlugs?: readonly string[] | undefined;
399
+ readonly headings: readonly Schema.Struct.ReadonlySide<{
400
+ readonly depth: Schema.Literals<readonly [2, 3]>;
401
+ readonly id: Schema.String;
402
+ readonly title: Schema.String;
403
+ }, "Type">[];
404
+ readonly searchText: string;
405
+ readonly sourceFile: string;
406
+ readonly source: string;
407
+ }[];
408
+ getPage: (slug: string, locale: DocsLocale) => {
409
+ readonly slug: string;
410
+ readonly path: string;
411
+ readonly title: string;
412
+ readonly description: string;
413
+ readonly icon: string;
414
+ readonly order: number;
415
+ readonly locale: string;
416
+ readonly section: string;
417
+ readonly type: "concept" | "how-to" | "reference" | "runbook" | "tutorial";
418
+ readonly legacySlugs?: readonly string[] | undefined;
419
+ readonly headings: readonly Schema.Struct.ReadonlySide<{
420
+ readonly depth: Schema.Literals<readonly [2, 3]>;
421
+ readonly id: Schema.String;
422
+ readonly title: Schema.String;
423
+ }, "Type">[];
424
+ readonly searchText: string;
425
+ readonly sourceFile: string;
426
+ readonly source: string;
427
+ } | undefined;
428
+ getPageNeighbors: (slug: string, locale: DocsLocale) => {
429
+ previous: {
430
+ readonly slug: string;
431
+ readonly path: string;
432
+ readonly title: string;
433
+ readonly description: string;
434
+ readonly icon: string;
435
+ readonly order: number;
436
+ readonly locale: string;
437
+ readonly section: string;
438
+ readonly type: "concept" | "how-to" | "reference" | "runbook" | "tutorial";
439
+ readonly legacySlugs?: readonly string[] | undefined;
440
+ readonly headings: readonly Schema.Struct.ReadonlySide<{
441
+ readonly depth: Schema.Literals<readonly [2, 3]>;
442
+ readonly id: Schema.String;
443
+ readonly title: Schema.String;
444
+ }, "Type">[];
445
+ readonly searchText: string;
446
+ readonly sourceFile: string;
447
+ readonly source: string;
448
+ } | undefined;
449
+ next: {
450
+ readonly slug: string;
451
+ readonly path: string;
452
+ readonly title: string;
453
+ readonly description: string;
454
+ readonly icon: string;
455
+ readonly order: number;
456
+ readonly locale: string;
457
+ readonly section: string;
458
+ readonly type: "concept" | "how-to" | "reference" | "runbook" | "tutorial";
459
+ readonly legacySlugs?: readonly string[] | undefined;
460
+ readonly headings: readonly Schema.Struct.ReadonlySide<{
461
+ readonly depth: Schema.Literals<readonly [2, 3]>;
462
+ readonly id: Schema.String;
463
+ readonly title: Schema.String;
464
+ }, "Type">[];
465
+ readonly searchText: string;
466
+ readonly sourceFile: string;
467
+ readonly source: string;
468
+ } | undefined;
469
+ };
470
+ getPages: (locale: DocsLocale) => {
471
+ readonly slug: string;
472
+ readonly path: string;
473
+ readonly title: string;
474
+ readonly description: string;
475
+ readonly icon: string;
476
+ readonly order: number;
477
+ readonly locale: string;
478
+ readonly section: string;
479
+ readonly type: "concept" | "how-to" | "reference" | "runbook" | "tutorial";
480
+ readonly legacySlugs?: readonly string[] | undefined;
481
+ readonly headings: readonly Schema.Struct.ReadonlySide<{
482
+ readonly depth: Schema.Literals<readonly [2, 3]>;
483
+ readonly id: Schema.String;
484
+ readonly title: Schema.String;
485
+ }, "Type">[];
486
+ readonly searchText: string;
487
+ readonly sourceFile: string;
488
+ readonly source: string;
489
+ }[];
490
+ resolvePage: (slug: string, locale: DocsLocale) => {
491
+ readonly slug: string;
492
+ readonly path: string;
493
+ readonly title: string;
494
+ readonly description: string;
495
+ readonly icon: string;
496
+ readonly order: number;
497
+ readonly locale: string;
498
+ readonly section: string;
499
+ readonly type: "concept" | "how-to" | "reference" | "runbook" | "tutorial";
500
+ readonly legacySlugs?: readonly string[] | undefined;
501
+ readonly headings: readonly Schema.Struct.ReadonlySide<{
502
+ readonly depth: Schema.Literals<readonly [2, 3]>;
503
+ readonly id: Schema.String;
504
+ readonly title: Schema.String;
505
+ }, "Type">[];
506
+ readonly searchText: string;
507
+ readonly sourceFile: string;
508
+ readonly source: string;
509
+ } | undefined;
510
+ };
511
+ pages: (locale: DocsLocale) => {
512
+ readonly slug: string;
513
+ readonly path: string;
514
+ readonly title: string;
515
+ readonly description: string;
516
+ readonly icon: string;
517
+ readonly order: number;
518
+ readonly locale: string;
519
+ readonly section: string;
520
+ readonly type: "concept" | "how-to" | "reference" | "runbook" | "tutorial";
521
+ readonly legacySlugs?: readonly string[] | undefined;
522
+ readonly headings: readonly Schema.Struct.ReadonlySide<{
523
+ readonly depth: Schema.Literals<readonly [2, 3]>;
524
+ readonly id: Schema.String;
525
+ readonly title: Schema.String;
526
+ }, "Type">[];
527
+ readonly searchText: string;
528
+ readonly sourceFile: string;
529
+ readonly source: string;
530
+ }[];
531
+ resolve: (routeSlug: string | undefined, locale: DocsLocale) => {
532
+ page: {
533
+ readonly slug: string;
534
+ readonly path: string;
535
+ readonly title: string;
536
+ readonly description: string;
537
+ readonly icon: string;
538
+ readonly order: number;
539
+ readonly locale: string;
540
+ readonly section: string;
541
+ readonly type: "concept" | "how-to" | "reference" | "runbook" | "tutorial";
542
+ readonly legacySlugs?: readonly string[] | undefined;
543
+ readonly headings: readonly Schema.Struct.ReadonlySide<{
544
+ readonly depth: Schema.Literals<readonly [2, 3]>;
545
+ readonly id: Schema.String;
546
+ readonly title: Schema.String;
547
+ }, "Type">[];
548
+ readonly searchText: string;
549
+ readonly sourceFile: string;
550
+ readonly source: string;
551
+ };
552
+ canonical: boolean;
553
+ neighbors: {
554
+ previous: {
555
+ readonly slug: string;
556
+ readonly path: string;
557
+ readonly title: string;
558
+ readonly description: string;
559
+ readonly icon: string;
560
+ readonly order: number;
561
+ readonly locale: string;
562
+ readonly section: string;
563
+ readonly type: "concept" | "how-to" | "reference" | "runbook" | "tutorial";
564
+ readonly legacySlugs?: readonly string[] | undefined;
565
+ readonly headings: readonly Schema.Struct.ReadonlySide<{
566
+ readonly depth: Schema.Literals<readonly [2, 3]>;
567
+ readonly id: Schema.String;
568
+ readonly title: Schema.String;
569
+ }, "Type">[];
570
+ readonly searchText: string;
571
+ readonly sourceFile: string;
572
+ readonly source: string;
573
+ } | undefined;
574
+ next: {
575
+ readonly slug: string;
576
+ readonly path: string;
577
+ readonly title: string;
578
+ readonly description: string;
579
+ readonly icon: string;
580
+ readonly order: number;
581
+ readonly locale: string;
582
+ readonly section: string;
583
+ readonly type: "concept" | "how-to" | "reference" | "runbook" | "tutorial";
584
+ readonly legacySlugs?: readonly string[] | undefined;
585
+ readonly headings: readonly Schema.Struct.ReadonlySide<{
586
+ readonly depth: Schema.Literals<readonly [2, 3]>;
587
+ readonly id: Schema.String;
588
+ readonly title: Schema.String;
589
+ }, "Type">[];
590
+ readonly searchText: string;
591
+ readonly sourceFile: string;
592
+ readonly source: string;
593
+ } | undefined;
594
+ };
595
+ } | undefined;
596
+ search: (query: string, locale: DocsLocale, options?: {
597
+ limit?: number;
598
+ }) => DocsSearchResult[];
599
+ sections: (locale: DocsLocale) => {
600
+ id: string;
601
+ pages: {
602
+ readonly slug: string;
603
+ readonly path: string;
604
+ readonly title: string;
605
+ readonly description: string;
606
+ readonly icon: string;
607
+ readonly order: number;
608
+ readonly locale: string;
609
+ readonly section: string;
610
+ readonly type: "concept" | "how-to" | "reference" | "runbook" | "tutorial";
611
+ readonly legacySlugs?: readonly string[] | undefined;
612
+ readonly headings: readonly Schema.Struct.ReadonlySide<{
613
+ readonly depth: Schema.Literals<readonly [2, 3]>;
614
+ readonly id: Schema.String;
615
+ readonly title: Schema.String;
616
+ }, "Type">[];
617
+ readonly searchText: string;
618
+ readonly sourceFile: string;
619
+ readonly source: string;
620
+ }[];
621
+ }[];
622
+ url: (page: DocsPage, locale: DocsLocale) => string;
623
+ };
624
+ export type DocsCatalog = ReturnType<typeof makeDocs>;
625
+ export type DocsRouteMessages = {
626
+ title: string;
627
+ description: string;
628
+ copied: string;
629
+ copyCode: string;
630
+ copyLink: string;
631
+ copyTable: string;
632
+ downloadTable: string;
633
+ onThisPage: string;
634
+ searchTitle: string;
635
+ searchDescription: string;
636
+ searchPlaceholder: string;
637
+ searchInputPlaceholder: string;
638
+ searchEmpty: string;
639
+ skipToContent: string;
640
+ editPage: string;
641
+ latestVersionNotice: string;
642
+ pageNavigation: string;
643
+ previous: string;
644
+ next: string;
645
+ notFoundTitle: string;
646
+ notFoundDescription: string;
647
+ notFoundAction: string;
648
+ sectionLabel: (section: DocsSection) => string;
649
+ pageTypeLabel: (type: DocsPageType) => string;
650
+ };
651
+ export type DocsMessageOverrides = Partial<DocsRouteMessages>;
652
+ export declare const getDocsMessages: (locale: DocsLocale, overrides?: DocsMessageOverrides) => DocsRouteMessages;
653
+ export type DocsResource = {
654
+ label: () => string;
655
+ href: string;
656
+ icon: string;
657
+ external?: boolean;
658
+ };
659
+ export type DocsResolution = NonNullable<ReturnType<DocsCatalog["resolve"]>>;
660
+ export type DocsLayoutProps = {
661
+ children: ReactNode;
662
+ docs: DocsCatalog;
663
+ headerActions?: ReactNode;
664
+ locale: DocsLocale;
665
+ };
666
+ export declare const DocsLayout: ({ children, docs, headerActions, locale, }: DocsLayoutProps) => import("react").JSX.Element;
667
+ export type DocsPageProps = {
668
+ children?: ReactNode;
669
+ docs: DocsCatalog;
670
+ resolution: DocsResolution;
671
+ };
672
+ type DocsPageSectionProps = Omit<DocsPageProps, "children">;
673
+ export declare const DocsHeader: ({ docs, resolution }: DocsPageSectionProps) => import("react").JSX.Element;
674
+ export declare const DocsContent: ({ docs, resolution }: DocsPageSectionProps) => import("react").JSX.Element;
675
+ export declare const DocsFooter: ({ docs, resolution }: DocsPageSectionProps) => import("react").JSX.Element;
676
+ export declare const DocsPage: ({ children, docs, resolution }: DocsPageProps) => import("react").JSX.Element;
677
+ export declare const DocsNotFound: ({ docs, locale, }: {
678
+ docs: DocsCatalog;
679
+ locale: DocsLocale;
680
+ }) => import("react").JSX.Element;
681
+ export {};