@openpkg-ts/sdk 0.33.0 → 0.34.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,678 @@
1
+ import { OpenPkg, SpecExport, SpecMember, SpecSchema, SpecSignature, SpecType, SpecTypeParameter } from "@openpkg-ts/spec";
2
+ interface FormatSchemaOptions {
3
+ /** Include package attribution for external types */
4
+ includePackage?: boolean;
5
+ /** Collapse unions with more than N members (default: no collapse) */
6
+ collapseUnionThreshold?: number;
7
+ }
8
+ /**
9
+ * Format a schema to a human-readable type string.
10
+ *
11
+ * @param schema - The schema to format
12
+ * @param options - Formatting options
13
+ * @returns Formatted type string
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * formatSchema({ type: 'string' }) // 'string'
18
+ * formatSchema({ $ref: '#/types/User' }) // 'User'
19
+ * formatSchema({ anyOf: [{ type: 'string' }, { type: 'number' }] }) // 'string | number'
20
+ * formatSchema({ type: 'integer', 'x-ts-type': 'bigint' }) // 'bigint'
21
+ * formatSchema({ 'x-ts-type': 'Response', 'x-ts-package': 'express' }, { includePackage: true }) // 'Response (from express)'
22
+ * ```
23
+ */
24
+ declare function formatSchema(schema: SpecSchema | undefined, options?: FormatSchemaOptions): string;
25
+ /**
26
+ * Format type parameters to a string like `<T, U extends string>`.
27
+ *
28
+ * @param typeParams - Array of type parameters
29
+ * @returns Formatted type parameters string or empty string
30
+ *
31
+ * @example
32
+ * ```ts
33
+ * formatTypeParameters([{ name: 'T' }]) // '<T>'
34
+ * formatTypeParameters([{ name: 'T', constraint: 'object' }]) // '<T extends object>'
35
+ * formatTypeParameters([{ name: 'T', default: 'unknown' }]) // '<T = unknown>'
36
+ * formatTypeParameters([{ name: 'T', variance: 'in' }]) // '<in T>'
37
+ * ```
38
+ */
39
+ declare function formatTypeParameters(typeParams?: SpecTypeParameter[]): string;
40
+ /**
41
+ * Format function parameters to a string like `(a: string, b?: number)`.
42
+ *
43
+ * @param sig - The signature containing parameters
44
+ * @returns Formatted parameters string
45
+ *
46
+ * @example
47
+ * ```ts
48
+ * formatParameters({ parameters: [{ name: 'id', schema: { type: 'string' } }] })
49
+ * // '(id: string)'
50
+ * ```
51
+ */
52
+ declare function formatParameters(sig?: SpecSignature): string;
53
+ /**
54
+ * Format return type from signature.
55
+ *
56
+ * @param sig - The signature containing return type
57
+ * @returns Formatted return type string
58
+ *
59
+ * @example
60
+ * ```ts
61
+ * formatReturnType({ returns: { schema: { type: 'Promise', items: { type: 'string' } } } })
62
+ * // 'Promise<string>'
63
+ * ```
64
+ */
65
+ declare function formatReturnType(sig?: SpecSignature): string;
66
+ /**
67
+ * Build a full signature string for an export.
68
+ *
69
+ * @param exp - The to build a signature for
70
+ * @param sigIndex - Index of signature to use for overloaded functions
71
+ * @returns Complete signature string
72
+ *
73
+ * @example
74
+ * ```ts
75
+ * buildSignatureString({ kind: 'function', name: 'greet', signatures: [...] })
76
+ * // 'function greet(name: string): string'
77
+ *
78
+ * buildSignatureString({ kind: 'class', name: 'Logger', extends: 'EventEmitter' })
79
+ * // 'class Logger extends EventEmitter'
80
+ * ```
81
+ */
82
+ declare function buildSignatureString(exp: SpecExport, sigIndex?: number): string;
83
+ /**
84
+ * Resolve a type reference to its definition.
85
+ *
86
+ * @param ref - Type reference string (e.g., '#/types/User')
87
+ * @param spec - The OpenPkg spec containing type definitions
88
+ * @returns The resolved type definition or undefined
89
+ *
90
+ * @example
91
+ * ```ts
92
+ * resolveTypeRef('#/types/User', spec)
93
+ * // { id: 'User', name: 'User', kind: 'interface', ... }
94
+ * ```
95
+ */
96
+ declare function resolveTypeRef(ref: string, spec: OpenPkg): SpecType | undefined;
97
+ /**
98
+ * Check if a member is a method (has signatures).
99
+ *
100
+ * @param member - The member to check
101
+ * @returns True if the member is a method
102
+ *
103
+ * @example
104
+ * ```ts
105
+ * isMethod({ name: 'foo', signatures: [{ parameters: [] }] }) // true
106
+ * isMethod({ name: 'bar', schema: { type: 'string' } }) // false
107
+ * ```
108
+ */
109
+ declare function isMethod(member: SpecMember): boolean;
110
+ /**
111
+ * Check if a member is a property (no signatures).
112
+ *
113
+ * @param member - The member to check
114
+ * @returns True if the member is a property
115
+ */
116
+ declare function isProperty(member: SpecMember): boolean;
117
+ /**
118
+ * Get methods from members list.
119
+ *
120
+ * @param members - Array of members to filter
121
+ * @returns Array of method members
122
+ */
123
+ declare function getMethods(members?: SpecMember[]): SpecMember[];
124
+ /**
125
+ * Get properties from members list.
126
+ *
127
+ * @param members - Array of members to filter
128
+ * @returns Array of property members
129
+ */
130
+ declare function getProperties(members?: SpecMember[]): SpecMember[];
131
+ /**
132
+ * Group members by visibility (public, protected, private).
133
+ *
134
+ * @param members - Array of members to group
135
+ * @returns Object with public, protected, and private arrays
136
+ *
137
+ * @example
138
+ * ```ts
139
+ * const groups = groupByVisibility(classExport.members)
140
+ * groups.public // [{ name: 'foo', visibility: 'public' }]
141
+ * groups.private // [{ name: 'bar', visibility: 'private' }]
142
+ * ```
143
+ */
144
+ declare function groupByVisibility(members?: SpecMember[]): {
145
+ public: SpecMember[];
146
+ protected: SpecMember[];
147
+ private: SpecMember[];
148
+ };
149
+ /**
150
+ * Sort exports alphabetically by name.
151
+ *
152
+ * @param items - Array of items with a name property
153
+ * @returns New sorted array
154
+ */
155
+ declare function sortByName<T extends {
156
+ name: string;
157
+ }>(items: T[]): T[];
158
+ /**
159
+ * Conditional type structure from the spec.
160
+ */
161
+ interface SpecConditionalType {
162
+ checkType: SpecSchema;
163
+ extendsType: SpecSchema;
164
+ trueType: SpecSchema;
165
+ falseType: SpecSchema;
166
+ }
167
+ /**
168
+ * Mapped type structure from the spec.
169
+ */
170
+ interface SpecMappedType {
171
+ keyType: SpecSchema;
172
+ valueType: SpecSchema;
173
+ readonly?: boolean | "add" | "remove";
174
+ optional?: boolean | "add" | "remove";
175
+ }
176
+ /**
177
+ * Format a conditional type to a human-readable string.
178
+ *
179
+ * @param condType - The conditional type structure
180
+ * @returns Formatted conditional type string
181
+ *
182
+ * @example
183
+ * ```ts
184
+ * formatConditionalType({
185
+ * checkType: { 'x-ts-type': 'T' },
186
+ * extendsType: { type: 'string' },
187
+ * trueType: { type: 'boolean', const: true },
188
+ * falseType: { type: 'boolean', const: false }
189
+ * })
190
+ * // 'T extends string ? true : false'
191
+ * ```
192
+ */
193
+ declare function formatConditionalType(condType: SpecConditionalType): string;
194
+ /**
195
+ * Format a mapped type to a human-readable string.
196
+ *
197
+ * @param mappedType - The mapped type structure
198
+ * @returns Formatted mapped type string
199
+ *
200
+ * @example
201
+ * ```ts
202
+ * formatMappedType({
203
+ * keyType: { 'x-ts-type': 'K in keyof T' },
204
+ * valueType: { 'x-ts-type': 'T[K]' },
205
+ * readonly: true
206
+ * })
207
+ * // '{ readonly [K in keyof T]: T[K] }'
208
+ * ```
209
+ */
210
+ declare function formatMappedType(mappedType: SpecMappedType): string;
211
+ import { OpenPkg as OpenPkg2, SpecExport as SpecExport2, SpecExportKind } from "@openpkg-ts/spec";
212
+ type Predicate = (exp: SpecExport2) => boolean;
213
+ /**
214
+ * Chainable query builder for filtering OpenPkg exports.
215
+ * Filters are lazy - predicates only run on execution methods (find, first, count, etc).
216
+ */
217
+ declare class QueryBuilder {
218
+ private spec;
219
+ private predicates;
220
+ constructor(spec: OpenPkg2);
221
+ /**
222
+ * Filter by kind(s)
223
+ */
224
+ byKind(...kinds: SpecExportKind[]): this;
225
+ /**
226
+ * Filter by name (exact string or regex pattern)
227
+ */
228
+ byName(pattern: string | RegExp): this;
229
+ /**
230
+ * Filter by tag(s) - must have at least one matching tag
231
+ */
232
+ byTag(...tags: string[]): this;
233
+ /**
234
+ * Filter by deprecation status
235
+ * @param include - true = only deprecated, false = exclude deprecated, undefined = all
236
+ */
237
+ deprecated(include?: boolean): this;
238
+ /**
239
+ * Filter to exports with descriptions only
240
+ */
241
+ withDescription(): this;
242
+ /**
243
+ * Search name and description (case-insensitive)
244
+ */
245
+ search(term: string): this;
246
+ /**
247
+ * Custom predicate filter
248
+ */
249
+ where(predicate: Predicate): this;
250
+ /**
251
+ * Filter by source module/file path (contains match)
252
+ */
253
+ byModule(modulePath: string): this;
254
+ private matches;
255
+ /**
256
+ * Execute query and return matching exports
257
+ */
258
+ find(): SpecExport2[];
259
+ /**
260
+ * Execute query and return first match (or undefined)
261
+ */
262
+ first(): SpecExport2 | undefined;
263
+ /**
264
+ * Execute query and return count of matches
265
+ */
266
+ count(): number;
267
+ /**
268
+ * Execute query and return IDs of matching exports
269
+ */
270
+ ids(): string[];
271
+ /**
272
+ * Execute query and return a new filtered OpenPkg spec
273
+ */
274
+ toSpec(): OpenPkg2;
275
+ }
276
+ /**
277
+ * Create a query builder for the given spec
278
+ */
279
+ declare function query(spec: OpenPkg2): QueryBuilder;
280
+ import { SpecMember as SpecMember2 } from "@openpkg-ts/spec";
281
+ /**
282
+ * Extract badge strings from a member's visibility and flags.
283
+ * Handles: visibility (if not public), static, readonly, async, abstract
284
+ */
285
+ declare function getMemberBadges(member: SpecMember2): string[];
286
+ /**
287
+ * Format badges array into a display string (space-separated).
288
+ */
289
+ declare function formatBadges(badges: string[]): string;
290
+ import { OpenPkg as OpenPkg3, SpecExport as SpecExport3 } from "@openpkg-ts/spec";
291
+ interface DiagnosticItem {
292
+ exportId: string;
293
+ exportName: string;
294
+ issue: string;
295
+ /** Member name if issue is on a member */
296
+ member?: string;
297
+ /** Parameter name if issue is on a parameter */
298
+ param?: string;
299
+ }
300
+ interface SpecDiagnostics {
301
+ /** Exports/members without descriptions */
302
+ missingDescriptions: DiagnosticItem[];
303
+ /** Exports marked @deprecated but no reason provided */
304
+ deprecatedNoReason: DiagnosticItem[];
305
+ /** Function params without descriptions in JSDoc */
306
+ missingParamDocs: DiagnosticItem[];
307
+ }
308
+ /**
309
+ * Check if has @deprecated tag.
310
+ */
311
+ declare function hasDeprecatedTag(exp: SpecExport3): boolean;
312
+ /**
313
+ * Get deprecation message from @deprecated tag.
314
+ * Returns undefined if no reason provided.
315
+ */
316
+ declare function getDeprecationMessage(exp: SpecExport3): string | undefined;
317
+ /**
318
+ * Find params without descriptions in JSDoc.
319
+ */
320
+ declare function findMissingParamDocs(exp: SpecExport3): string[];
321
+ /**
322
+ * Analyze a spec for quality issues.
323
+ */
324
+ declare function analyzeSpec(spec: OpenPkg3): SpecDiagnostics;
325
+ import { OpenPkg as OpenPkg4, SpecExportKind as SpecExportKind2 } from "@openpkg-ts/spec";
326
+ interface SearchOptions {
327
+ /** Base URL for search result links */
328
+ baseUrl?: string;
329
+ /** Custom slug generator */
330
+ slugify?: (name: string) => string;
331
+ /** Include type signatures in search content */
332
+ includeSignatures?: boolean;
333
+ /** Include member names in search content */
334
+ includeMembers?: boolean;
335
+ /** Include parameter names in search content */
336
+ includeParameters?: boolean;
337
+ /** Weight multipliers for ranking */
338
+ weights?: {
339
+ name?: number;
340
+ description?: number;
341
+ signature?: number;
342
+ tags?: number;
343
+ };
344
+ }
345
+ interface PagefindRecord {
346
+ url: string;
347
+ content: string;
348
+ word_count: number;
349
+ filters: Record<string, string[]>;
350
+ meta: {
351
+ title: string;
352
+ kind?: string;
353
+ description?: string;
354
+ signature?: string;
355
+ };
356
+ anchors?: Array<{
357
+ element: string;
358
+ id: string;
359
+ text: string;
360
+ }>;
361
+ weighted_sections?: Array<{
362
+ weight: number;
363
+ text: string;
364
+ }>;
365
+ }
366
+ interface AlgoliaRecord {
367
+ objectID: string;
368
+ name: string;
369
+ kind: SpecExportKind2;
370
+ description?: string;
371
+ signature: string;
372
+ content: string;
373
+ tags: string[];
374
+ deprecated: boolean;
375
+ url: string;
376
+ hierarchy: {
377
+ lvl0: string;
378
+ lvl1: string;
379
+ lvl2?: string;
380
+ };
381
+ _rankingInfo?: {
382
+ nbTypos: number;
383
+ words: number;
384
+ };
385
+ }
386
+ interface SearchRecord {
387
+ id: string;
388
+ name: string;
389
+ kind: SpecExportKind2;
390
+ signature: string;
391
+ description?: string;
392
+ content: string;
393
+ keywords: string[];
394
+ url: string;
395
+ deprecated: boolean;
396
+ }
397
+ interface SearchIndex {
398
+ records: SearchRecord[];
399
+ version: string;
400
+ generatedAt: string;
401
+ packageName: string;
402
+ }
403
+ /**
404
+ * Generate search index from spec.
405
+ *
406
+ * @param spec - The OpenPkg spec to index
407
+ * @param options - Search index configuration
408
+ * @returns Search index with records for each *
409
+ * @example
410
+ * ```ts
411
+ * import { createDocs } from '@openpkg-ts/sdk'
412
+ *
413
+ * const docs = createDocs('./openpkg.json')
414
+ * const index = docs.toSearchIndex({ baseUrl: '/api' })
415
+ * // { records: [...], version: '1.0.0', packageName: 'my-lib' }
416
+ * ```
417
+ */
418
+ declare function toSearchIndex2(spec: OpenPkg4, options?: SearchOptions): SearchIndex;
419
+ /**
420
+ * Generate Pagefind-compatible records.
421
+ *
422
+ * @param spec - The OpenPkg spec to index
423
+ * @param options - Search configuration including weights
424
+ * @returns Array of Pagefind-compatible search records
425
+ *
426
+ * @example
427
+ * ```ts
428
+ * const records = toPagefindRecords(spec, {
429
+ * baseUrl: '/docs/api',
430
+ * weights: { name: 10, description: 5 }
431
+ * })
432
+ * ```
433
+ */
434
+ declare function toPagefindRecords2(spec: OpenPkg4, options?: SearchOptions): PagefindRecord[];
435
+ /**
436
+ * Generate Algolia-compatible records.
437
+ *
438
+ * @param spec - The OpenPkg spec to index
439
+ * @param options - Search configuration
440
+ * @returns Array of Algolia-compatible search records with hierarchy
441
+ *
442
+ * @example
443
+ * ```ts
444
+ * const records = toAlgoliaRecords(spec, { baseUrl: '/api' })
445
+ * // Upload to Algolia index
446
+ * ```
447
+ */
448
+ declare function toAlgoliaRecords2(spec: OpenPkg4, options?: SearchOptions): AlgoliaRecord[];
449
+ /**
450
+ * Serialize search index to JSON string.
451
+ *
452
+ * @param spec - The OpenPkg spec to index
453
+ * @param options - Search options plus pretty formatting option
454
+ * @returns JSON string of search index
455
+ *
456
+ * @example
457
+ * ```ts
458
+ * const json = toSearchIndexJSON(spec, { pretty: true })
459
+ * fs.writeFileSync('search-index.json', json)
460
+ * ```
461
+ */
462
+ declare function toSearchIndexJSON(spec: OpenPkg4, options?: SearchOptions & {
463
+ pretty?: boolean;
464
+ }): string;
465
+ import { OpenPkg as OpenPkg9, SpecExport as SpecExport5, SpecExportKind as SpecExportKind5, SpecType as SpecType2 } from "@openpkg-ts/spec";
466
+ interface HTMLOptions {
467
+ /** Page title override */
468
+ title?: string;
469
+ /** Include inline styles */
470
+ includeStyles?: boolean;
471
+ /** Custom CSS to inject */
472
+ customCSS?: string;
473
+ /** Custom head content */
474
+ headContent?: string;
475
+ /** Wrap in full HTML document */
476
+ fullDocument?: boolean;
477
+ /** Export to render (single mode) */
478
+ export?: string;
479
+ /** Exports to render (multi-mode) - overridden by `export` if both provided */
480
+ exports?: string[];
481
+ }
482
+ import { SpecExportKind as SpecExportKind3 } from "@openpkg-ts/spec";
483
+ interface JSONOptions {
484
+ /** Include raw spec data alongside simplified data */
485
+ includeRaw?: boolean;
486
+ /** Export to render (single mode) */
487
+ export?: string;
488
+ /** Exports to render (multi-mode) - overridden by `export` if both provided */
489
+ exports?: string[];
490
+ /** Include computed fields (signatures, formatted types) */
491
+ computed?: boolean;
492
+ /** Flatten nested structures */
493
+ flatten?: boolean;
494
+ }
495
+ interface SimplifiedParameter {
496
+ name: string;
497
+ type: string;
498
+ required: boolean;
499
+ description?: string;
500
+ default?: unknown;
501
+ rest?: boolean;
502
+ }
503
+ interface SimplifiedReturn {
504
+ type: string;
505
+ description?: string;
506
+ }
507
+ interface SimplifiedSignature {
508
+ parameters: SimplifiedParameter[];
509
+ returns?: SimplifiedReturn;
510
+ description?: string;
511
+ typeParameters?: string[];
512
+ }
513
+ interface SimplifiedMember {
514
+ name: string;
515
+ kind: "property" | "method";
516
+ type?: string;
517
+ description?: string;
518
+ visibility?: "public" | "protected" | "private";
519
+ signature?: SimplifiedSignature;
520
+ }
521
+ interface SimplifiedExample {
522
+ code: string;
523
+ title?: string;
524
+ description?: string;
525
+ language?: string;
526
+ }
527
+ interface SimplifiedExport {
528
+ id: string;
529
+ name: string;
530
+ kind: SpecExportKind3;
531
+ signature: string;
532
+ description?: string;
533
+ deprecated: boolean;
534
+ tags: Array<{
535
+ name: string;
536
+ text: string;
537
+ }>;
538
+ parameters?: SimplifiedParameter[];
539
+ returns?: SimplifiedReturn;
540
+ members?: SimplifiedMember[];
541
+ examples?: SimplifiedExample[];
542
+ extends?: string;
543
+ implements?: string[];
544
+ sourceFile?: string;
545
+ sourceLine?: number;
546
+ }
547
+ interface SimplifiedSpec {
548
+ name: string;
549
+ version?: string;
550
+ description?: string;
551
+ exports: SimplifiedExport[];
552
+ byKind: Record<SpecExportKind3, SimplifiedExport[]>;
553
+ totalExports: number;
554
+ }
555
+ interface MarkdownOptions {
556
+ /** Include frontmatter in output */
557
+ frontmatter?: boolean;
558
+ /** Sections to include */
559
+ sections?: {
560
+ signature?: boolean;
561
+ description?: boolean;
562
+ parameters?: boolean;
563
+ returns?: boolean;
564
+ examples?: boolean;
565
+ members?: boolean;
566
+ properties?: boolean;
567
+ methods?: boolean;
568
+ };
569
+ /** Custom frontmatter fields */
570
+ customFrontmatter?: Record<string, unknown>;
571
+ /** Use code fences for signatures */
572
+ codeSignatures?: boolean;
573
+ /** Heading level offset (0 = starts at h1, 1 = starts at h2) */
574
+ headingOffset?: number;
575
+ /** Collapse unions with more than N members (default: no collapse) */
576
+ collapseUnionThreshold?: number;
577
+ }
578
+ interface ExportMarkdownOptions extends MarkdownOptions {
579
+ /** Export to render (single mode) */
580
+ export?: string;
581
+ /** Exports to render (multi-mode) - overridden by `export` if both provided */
582
+ exports?: string[];
583
+ }
584
+ import { SpecExportKind as SpecExportKind4 } from "@openpkg-ts/spec";
585
+ type NavFormat = "fumadocs" | "docusaurus" | "generic";
586
+ type GroupBy = "kind" | "module" | "tag" | "none";
587
+ interface NavOptions {
588
+ /** Output format */
589
+ format?: NavFormat;
590
+ /** How to group exports */
591
+ groupBy?: GroupBy;
592
+ /** Base path for links */
593
+ basePath?: string;
594
+ /** Custom slug generator */
595
+ slugify?: (name: string) => string;
596
+ /** Include index pages for groups */
597
+ includeGroupIndex?: boolean;
598
+ /** Custom kind labels */
599
+ kindLabels?: Partial<Record<SpecExportKind4, string>>;
600
+ /** Sort exports alphabetically */
601
+ sortAlphabetically?: boolean;
602
+ }
603
+ interface NavItem {
604
+ title: string;
605
+ href?: string;
606
+ items?: NavItem[];
607
+ }
608
+ interface NavGroup {
609
+ title: string;
610
+ items: NavItem[];
611
+ index?: string;
612
+ }
613
+ interface GenericNav {
614
+ title: string;
615
+ groups: NavGroup[];
616
+ items: NavItem[];
617
+ }
618
+ interface FumadocsMetaItem {
619
+ title: string;
620
+ pages?: string[];
621
+ defaultOpen?: boolean;
622
+ }
623
+ interface FumadocsMeta {
624
+ root?: boolean;
625
+ title?: string;
626
+ pages?: (string | FumadocsMetaItem)[];
627
+ }
628
+ interface DocusaurusSidebarItem {
629
+ type: "category" | "doc" | "link";
630
+ label: string;
631
+ items?: DocusaurusSidebarItem[];
632
+ id?: string;
633
+ href?: string;
634
+ }
635
+ type DocusaurusSidebar = DocusaurusSidebarItem[];
636
+ interface LoadOptions {
637
+ /** Path to openpkg.json file or the spec object directly */
638
+ input: string | OpenPkg9;
639
+ }
640
+ interface DocsInstance {
641
+ /** The parsed OpenPkg spec */
642
+ spec: OpenPkg9;
643
+ /** Get an by its ID */
644
+ getExport(id: string): SpecExport5 | undefined;
645
+ /** Get a type definition by its ID */
646
+ getType(id: string): SpecType2 | undefined;
647
+ /** Get all exports of a specific kind */
648
+ getExportsByKind(kind: SpecExportKind5): SpecExport5[];
649
+ /** Get all exports */
650
+ getAllExports(): SpecExport5[];
651
+ /** Get all type definitions */
652
+ getAllTypes(): SpecType2[];
653
+ /** Get exports by JSDoc tag (e.g., '@beta', '@internal') */
654
+ getExportsByTag(tagName: string): SpecExport5[];
655
+ /** Search exports by name or description */
656
+ search(query: string): SpecExport5[];
657
+ /** Get exports belonging to a specific module/namespace */
658
+ getModule(moduleName: string): SpecExport5[];
659
+ /** Get deprecated exports */
660
+ getDeprecated(): SpecExport5[];
661
+ /** Get exports grouped by kind */
662
+ groupByKind(): Record<SpecExportKind5, SpecExport5[]>;
663
+ /** Render spec or single to MDX */
664
+ toMarkdown(options?: ExportMarkdownOptions): string;
665
+ /** Render spec or single to HTML */
666
+ toHTML(options?: HTMLOptions): string;
667
+ /** Render spec or single to JSON structure */
668
+ toJSON(options?: JSONOptions): SimplifiedSpec | SimplifiedExport;
669
+ /** Generate navigation structure */
670
+ toNavigation(options?: NavOptions): GenericNav | FumadocsMeta | DocusaurusSidebar;
671
+ /** Generate search index */
672
+ toSearchIndex(options?: SearchOptions): SearchIndex;
673
+ /** Generate Pagefind-compatible records */
674
+ toPagefindRecords(options?: SearchOptions): PagefindRecord[];
675
+ /** Generate Algolia-compatible records */
676
+ toAlgoliaRecords(options?: SearchOptions): AlgoliaRecord[];
677
+ }
678
+ export { toSearchIndexJSON, toSearchIndex2 as toSearchIndex, toPagefindRecords2 as toPagefindRecords, toAlgoliaRecords2 as toAlgoliaRecords, sortByName, resolveTypeRef, query, isProperty, isMethod, hasDeprecatedTag, groupByVisibility, getProperties, getMethods, getMemberBadges, getDeprecationMessage, formatTypeParameters, formatSchema, formatReturnType, formatParameters, formatMappedType, formatConditionalType, formatBadges, findMissingParamDocs, buildSignatureString, analyzeSpec, SpecMappedType, SpecDiagnostics, SpecConditionalType, SearchRecord, SearchOptions, SearchIndex, QueryBuilder, PagefindRecord, LoadOptions, FormatSchemaOptions, DocsInstance, DiagnosticItem, AlgoliaRecord };