@kubb/ast 5.0.0-beta.84 → 5.0.0-beta.86

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.
package/dist/index.d.ts CHANGED
@@ -1,19 +1,6 @@
1
1
  import { n as __name, t as __exportAll } from "./rolldown-runtime-CNktS9qV.js";
2
- import { $ as importDef, $t as DistributiveOmit, A as ResponseNode, At as ArrowFunctionNode, B as createParameter, Bt as breakDef, C as inputDef, Ct as schemaDef, D as OperationNode, Dt as propertyDef, E as HttpOperationNode, Et as createProperty, F as createRequestBody, Ft as JSDocNode, G as SourceNode, Gt as createFunction, H as ExportNode, Ht as createArrowFunction, I as requestBodyDef, It as JsxNode, J as createFile, Jt as createType, K as UserFileNode, Kt as createJsx, L as ParameterLocation, Lt as TextNode, M as createResponse, Mt as CodeNode, N as responseDef, Nt as ConstNode, O as createOperation, Ot as InferSchemaNode, P as RequestBodyNode, Pt as FunctionNode, Q as fileDef, Qt as typeDef, R as ParameterNode, Rt as TypeNode, S as createInput, St as createSchema, T as HttpMethod, Tt as UserPropertyNode, U as FileNode, Ut as createBreak, V as parameterDef, Vt as constDef, W as ImportNode, Wt as createConst, X as createSource, Xt as jsxDef, Y as createImport, Yt as functionDef, Z as exportDef, Zt as textDef, _ as OutputNode, _t as SchemaType, a as Enforce, an as SchemaDialect, at as DateSchemaNode, b as InputMeta, bt as UnionSchemaNode, c as composeMacros, ct as IntersectionSchemaNode, d as Visitor, dt as PrimitiveSchemaType, en as NodeDef, et as sourceDef, f as VisitorContext, ft as RefSchemaNode, g as Node, gt as SchemaNodeByType, h as walk, ht as SchemaNode, i as createPrinter, in as Dialect, it as ArraySchemaNode, j as StatusCode, jt as BreakNode, k as operationDef, kt as ParserOptions, l as defineMacro, lt as NumberSchemaNode, m as transform, mt as ScalarSchemaType, n as PrinterFactoryOptions, nn as BaseNode, nt as contentDef, o as Macro, on as defineDialect, ot as DatetimeSchemaNode, p as collect, pt as ScalarSchemaNode, q as createExport, qt as createText, r as PrinterPartial, rn as NodeKind, rt as createContent, s as applyMacros, sn as schemaTypes, st as EnumSchemaNode, t as Printer, tn as defineNode, tt as ContentNode, u as ParentOf, ut as ObjectSchemaNode, v as createOutput, vt as StringSchemaNode, w as GenericOperationNode, wt as PropertyNode, x as InputNode, xt as UrlSchemaNode, y as outputDef, yt as TimeSchemaNode, z as ParameterStyle, zt as arrowFunctionDef } from "./types-XcYJovdT.js";
2
+ import { $ as importDef, $t as DistributiveOmit, A as ResponseNode, At as ArrowFunctionNode, B as createParameter, Bt as breakDef, C as inputDef, Ct as schemaDef, D as OperationNode, Dt as propertyDef, E as HttpOperationNode, Et as createProperty, F as createRequestBody, Ft as JSDocNode, G as SourceNode, Gt as createFunction, H as ExportNode, Ht as createArrowFunction, I as requestBodyDef, It as JsxNode, J as createFile, Jt as createType, K as UserFileNode, Kt as createJsx, L as ParameterLocation, Lt as TextNode, M as createResponse, Mt as CodeNode, N as responseDef, Nt as ConstNode, O as createOperation, Ot as InferSchemaNode, P as RequestBodyNode, Pt as FunctionNode, Q as fileDef, Qt as typeDef, R as ParameterNode, Rt as TypeNode, S as createInput, St as createSchema, T as HttpMethod, Tt as UserPropertyNode, U as FileNode, Ut as createBreak, V as parameterDef, Vt as constDef, W as ImportNode, Wt as createConst, X as createSource, Xt as jsxDef, Y as createImport, Yt as functionDef, Z as exportDef, Zt as textDef, _ as OutputNode, _t as SchemaType, a as Enforce, an as SchemaDialect, at as DateSchemaNode, b as InputMeta, bt as UnionSchemaNode, c as composeMacros, ct as IntersectionSchemaNode, d as Visitor, dt as PrimitiveSchemaType, en as NodeDef, et as sourceDef, f as VisitorContext, ft as RefSchemaNode, g as Node, gt as SchemaNodeByType, h as walk, ht as SchemaNode, i as createPrinter, in as Dialect, it as ArraySchemaNode, j as StatusCode, jt as BreakNode, k as operationDef, kt as ParserOptions, l as defineMacro, lt as NumberSchemaNode, m as transform, mt as ScalarSchemaType, n as PrinterFactoryOptions, nn as BaseNode, nt as contentDef, o as Macro, on as defineDialect, ot as DatetimeSchemaNode, p as collect, pt as ScalarSchemaNode, q as createExport, qt as createText, r as PrinterPartial, rn as NodeKind, rt as createContent, s as applyMacros, sn as schemaTypes, st as EnumSchemaNode, t as Printer, tn as defineNode, tt as ContentNode, u as ParentOf, ut as ObjectSchemaNode, v as createOutput, vt as StringSchemaNode, w as GenericOperationNode, wt as PropertyNode, x as InputNode, xt as UrlSchemaNode, y as outputDef, yt as TimeSchemaNode, z as ParameterStyle, zt as arrowFunctionDef } from "./types-BvAfoVB3.js";
3
3
 
4
- //#region ../../internals/utils/src/reserved.d.ts
5
- /**
6
- * Returns `true` when `name` is a syntactically valid JavaScript variable name.
7
- *
8
- * @example
9
- * ```ts
10
- * isValidVarName('status') // true
11
- * isValidVarName('class') // false (reserved word)
12
- * isValidVarName('42foo') // false (starts with digit)
13
- * ```
14
- */
15
- declare function isValidVarName(name: string): boolean;
16
- //#endregion
17
4
  //#region src/guards.d.ts
18
5
  /**
19
6
  * Narrows a `SchemaNode` to the variant that matches `type`.
@@ -44,70 +31,27 @@ declare function isHttpOperationNode(node: OperationNode): node is HttpOperation
44
31
  */
45
32
  declare function optionality(schema: SchemaNode, required: boolean): SchemaNode;
46
33
  //#endregion
47
- //#region src/utils/codegen.d.ts
34
+ //#region src/utils/combineFileMembers.d.ts
48
35
  /**
49
- * Builds a JSDoc comment block from an array of lines. Returns `fallback` when there are no
50
- * comments.
51
- *
52
- * @example
53
- * ```ts
54
- * buildJSDoc(['@type string', '@example hello'])
55
- * // '/**\n * @type string\n * @example hello\n *\/\n '
56
- * ```
36
+ * Deduplicates `SourceNode` objects by `name + isExportable + isTypeOnly`, keeping the first of each
37
+ * key. Unnamed sources fall back to their extracted node strings as the name part of the key. Returns
38
+ * the deduplicated array in original order.
57
39
  */
58
- declare function buildJSDoc(comments: Array<string>, options?: {
59
- /**
60
- * String used to indent each comment line.
61
- * @default ' * '
62
- */
63
- indent?: string;
64
- /**
65
- * String appended after the closing tag.
66
- * @default '\n '
67
- */
68
- suffix?: string;
69
- /**
70
- * Returned as-is when `comments` is empty.
71
- * @default ' '
72
- */
73
- fallback?: string;
74
- }): string;
75
- /**
76
- * Renders an object key, quoting it with single quotes only when it is not a valid identifier.
77
- * Reserved words and globals (`name`, `class`, …) are valid bare keys and stay unquoted.
78
- *
79
- * @example
80
- * ```ts
81
- * objectKey('name') // 'name'
82
- * objectKey('x-total') // "'x-total'"
83
- * ```
84
- */
85
- declare function objectKey(name: string): string;
40
+ declare function combineSources(sources: Array<SourceNode>): Array<SourceNode>;
86
41
  /**
87
- * Assembles a multi-line object literal from already-rendered `entries`, indenting each entry one
88
- * level and closing the brace at column zero. Entries that are themselves multi-line objects indent
89
- * cumulatively. Each entry ends with a trailing comma to match the formatter's multi-line style.
42
+ * Deduplicates and merges `ExportNode` objects by path and type.
90
43
  *
91
- * @example
92
- * ```ts
93
- * buildObject(['id: z.number()', 'name: z.string()'])
94
- * // '{\n id: z.number(),\n name: z.string(),\n}'
95
- * ```
44
+ * Named exports with the same path and `isTypeOnly` flag have their names merged into a single export.
45
+ * Non-array exports are deduplicated by exact identity. Returns a sorted, deduplicated array.
96
46
  */
97
- declare function buildObject(entries: Array<string>): string;
47
+ declare function combineExports(exports: Array<ExportNode>): Array<ExportNode>;
98
48
  /**
99
- * Assembles a bracketed list (array by default) from already-rendered `items`. Keeps everything on
100
- * one line when no item spans multiple lines, and otherwise puts each item on its own line, indented
101
- * one level with a trailing comma and the closing bracket at column zero. Used for member lists such
102
- * as `z.union([…])` and `z.array([…])`.
49
+ * Deduplicates and merges `ImportNode` objects, filtering out unused imports.
103
50
  *
104
- * @example
105
- * ```ts
106
- * buildList(['z.string()', 'z.number()'])
107
- * // '[z.string(), z.number()]'
108
- * ```
51
+ * Retains imports that are referenced in `source` or re-exported. Imports with the same path and
52
+ * `isTypeOnly` flag have their names merged. Returns a sorted, deduplicated, filtered array.
109
53
  */
110
- declare function buildList(items: Array<string>, brackets?: [open: string, close: string]): string;
54
+ declare function combineImports(imports: Array<ImportNode>, exports: Array<ExportNode>, source?: string): Array<ImportNode>;
111
55
  //#endregion
112
56
  //#region src/utils/extractStringsFromNodes.d.ts
113
57
  /**
@@ -118,6 +62,19 @@ declare function buildList(items: Array<string>, brackets?: [open: string, close
118
62
  */
119
63
  declare function extractStringsFromNodes(nodes: Array<CodeNode> | undefined): string;
120
64
  //#endregion
65
+ //#region src/utils/mergeAdjacentSchemas.d.ts
66
+ /**
67
+ * Merges a run of adjacent anonymous object members into one. Named or non-object members break the
68
+ * run and pass through unchanged. The merge follows member order, so callers control which members
69
+ * combine by where they place them in the sequence.
70
+ *
71
+ * @example
72
+ * ```ts
73
+ * const merged = [...mergeAdjacentObjectsLazy([objectA, objectB])]
74
+ * ```
75
+ */
76
+ declare function mergeAdjacentObjectsLazy(members: Iterable<SchemaNode>): Generator<SchemaNode, void, undefined>;
77
+ //#endregion
121
78
  //#region src/utils/refs.d.ts
122
79
  /**
123
80
  * Returns the last path segment of a reference string.
@@ -168,92 +125,6 @@ declare function syncSchemaRef(node: SchemaNode): SchemaNode;
168
125
  */
169
126
  declare function isStringType(node: SchemaNode): boolean;
170
127
  //#endregion
171
- //#region src/utils/schemaMerge.d.ts
172
- /**
173
- * Merges a run of adjacent anonymous object members into one. Named or non-object members break the
174
- * run and pass through unchanged. The merge follows member order, so callers control which members
175
- * combine by where they place them in the sequence.
176
- *
177
- * @example
178
- * ```ts
179
- * const merged = [...mergeAdjacentObjectsLazy([objectA, objectB])]
180
- * ```
181
- */
182
- declare function mergeAdjacentObjectsLazy(members: Iterable<SchemaNode>): Generator<SchemaNode, void, undefined>;
183
- //#endregion
184
- //#region src/utils/strings.d.ts
185
- /**
186
- * Strips a single matching pair of `"..."`, `'...'`, or `` `...` `` from both ends of `text`.
187
- * Returns the string unchanged when no balanced quote pair is found.
188
- *
189
- * @example
190
- * ```ts
191
- * trimQuotes('"hello"') // 'hello'
192
- * trimQuotes('hello') // 'hello'
193
- * ```
194
- */
195
- declare function trimQuotes(text: string): string;
196
- /**
197
- * Serializes a primitive to a single-quoted string literal, stripping any surrounding quotes first.
198
- *
199
- * Escaping runs through `JSON.stringify`, then the result switches to single quotes so the generated
200
- * code matches the repo style without a formatter.
201
- *
202
- * @example
203
- * ```ts
204
- * stringify('hello') // "'hello'"
205
- * stringify('"hello"') // "'hello'"
206
- * ```
207
- */
208
- declare function stringify(value: string | number | boolean | undefined): string;
209
- /**
210
- * Escapes characters that are not allowed inside JS string literals, covering quotes, backslashes,
211
- * and the Unicode line terminators U+2028 and U+2029.
212
- *
213
- * @see http://www.ecma-international.org/ecma-262/5.1/#sec-7.8.4
214
- *
215
- * @example
216
- * ```ts
217
- * jsStringEscape('say "hi"\nbye') // 'say \\"hi\\"\\nbye'
218
- * ```
219
- */
220
- declare function jsStringEscape(input: unknown): string;
221
- /**
222
- * Converts a pattern string into a `new RegExp(...)` constructor call or a regex literal string.
223
- * Inline flags expressed as a `^(?im)` prefix are extracted and applied to the resulting expression.
224
- * Pass `null` as the second argument to emit a `/pattern/flags` literal instead.
225
- *
226
- * @example
227
- * ```ts
228
- * toRegExpString('^(?im)foo') // 'new RegExp("^foo", "im")'
229
- * toRegExpString('^(?im)foo', null) // '/^foo/im'
230
- * ```
231
- */
232
- declare function toRegExpString(text: string, func?: string | null): string;
233
- /**
234
- * Renders a plain object as multi-line `key: value` source for embedding in generated code. Nested
235
- * objects recurse with fixed indentation, so the result drops straight into an object literal
236
- * without re-parsing.
237
- *
238
- * @example
239
- * ```ts
240
- * stringifyObject({ foo: 'bar', nested: { a: 1 } })
241
- * // 'foo: bar,\nnested: {\n a: 1\n }'
242
- * ```
243
- */
244
- declare function stringifyObject(value: Record<string, unknown>): string;
245
- /**
246
- * Renders a dotted path or string array as an optional-chaining accessor expression rooted at
247
- * `accessor`. Returns `null` for an empty path.
248
- *
249
- * @example
250
- * ```ts
251
- * getNestedAccessor('pagination.next.id', 'lastPage')
252
- * // "lastPage?.['pagination']?.['next']?.['id']"
253
- * ```
254
- */
255
- declare function getNestedAccessor(param: string | Array<string>, accessor: string): string | null;
256
- //#endregion
257
128
  //#region src/utils/schemaGraph.d.ts
258
129
  /**
259
130
  * Collects the names of all top-level schemas transitively used by a set of operations.
@@ -266,7 +137,7 @@ declare function getNestedAccessor(param: string | Array<string>, accessor: stri
266
137
  *
267
138
  * @example Only generate schemas referenced by included operations
268
139
  * ```ts
269
- * const includedOps = operations.filter((op) => resolver.resolveOptions(op, { options, include }) !== null)
140
+ * const includedOps = operations.filter((op) => resolver.default.options(op, { options, include }) !== null)
270
141
  * const allowed = collectUsedSchemaNames(includedOps, schemas)
271
142
  *
272
143
  * for (const schema of schemas) {
@@ -360,24 +231,6 @@ declare function mapSchemaMembers<TOutput>(node: UnionSchemaNode | IntersectionS
360
231
  * the original item.
361
232
  */
362
233
  declare function mapSchemaItems<TOutput>(node: ArraySchemaNode, transform: SchemaTransform<TOutput>): Array<MappedSchema<TOutput>>;
363
- /**
364
- * Emits a lazy getter for a circular-ref property position, `get name() { return body }`. The key
365
- * is quoted only when it is not a valid identifier. Used by the string printers to defer evaluation
366
- * of a recursive schema until first access.
367
- *
368
- * @example
369
- * ```ts
370
- * lazyGetter({ name: 'parent', body: 'z.lazy(() => Pet)' })
371
- * // "get parent() { return z.lazy(() => Pet) }"
372
- * ```
373
- */
374
- declare function lazyGetter({
375
- name,
376
- body
377
- }: {
378
- name: string;
379
- body: string;
380
- }): string;
381
234
  //#endregion
382
235
  //#region src/macros/macroDiscriminatorEnum.d.ts
383
236
  type Props$1 = {
@@ -460,7 +313,7 @@ declare function update<T extends Node>(node: T, changes: Partial<T>): T;
460
313
  * Every node definition. Adding a node means adding its `defineNode` to one
461
314
  * `nodes/*.ts` file and listing it here. The visitor tables in `visitor.ts` derive from it.
462
315
  */
463
- declare const nodeDefs: (NodeDef<InputNode<false>, Partial<Omit<InputNode<false>, "kind">>> | NodeDef<OutputNode, Partial<Omit<OutputNode, "kind">>> | NodeDef<RequestBodyNode, Omit<RequestBodyNode, "kind">> | NodeDef<OperationNode, {
316
+ declare const nodeDefs: (NodeDef<InputNode, Partial<Omit<InputNode, "kind">>> | NodeDef<OutputNode, Partial<Omit<OutputNode, "kind">>> | NodeDef<RequestBodyNode, Omit<RequestBodyNode, "kind">> | NodeDef<OperationNode, {
464
317
  [key: string]: unknown;
465
318
  operationId: string;
466
319
  method?: HttpOperationNode["method"];
@@ -529,8 +382,8 @@ declare const nodeDefs: (NodeDef<InputNode<false>, Partial<Omit<InputNode<false>
529
382
  type: "ipv6";
530
383
  }) | ScalarSchemaNode, "kind">> | NodeDef<PropertyNode, UserPropertyNode> | NodeDef<ParameterNode, Pick<ParameterNode, "schema" | "name" | "in"> & Partial<Omit<ParameterNode, "schema" | "kind" | "name" | "in">>> | NodeDef<ConstNode, Omit<ConstNode, "kind">> | NodeDef<TypeNode, Omit<TypeNode, "kind">> | NodeDef<FunctionNode, Omit<FunctionNode, "kind">> | NodeDef<ArrowFunctionNode, Omit<ArrowFunctionNode, "kind">> | NodeDef<TextNode, string> | NodeDef<BreakNode, void> | NodeDef<JsxNode, string> | NodeDef<ImportNode, Omit<ImportNode, "kind">> | NodeDef<ExportNode, Omit<ExportNode, "kind">> | NodeDef<SourceNode, Omit<SourceNode, "kind">> | NodeDef<FileNode<object>, Omit<FileNode<object>, "kind">>)[];
531
384
  declare namespace exports_d_exports {
532
- export { ArraySchemaNode, ArrowFunctionNode, BreakNode, CodeNode, ConstNode, ContentNode, DateSchemaNode, DatetimeSchemaNode, Dialect, DistributiveOmit, Enforce, EnumSchemaNode, ExportNode, FileNode, FunctionNode, GenericOperationNode, HttpMethod, HttpOperationNode, ImportNode, InferSchemaNode, InputMeta, InputNode, IntersectionSchemaNode, JSDocNode, JsxNode, Macro, Node, NodeDef, NodeKind, NumberSchemaNode, ObjectSchemaNode, OperationNode, OutputNode, ParameterLocation, ParameterNode, ParameterStyle, ParentOf, ParserOptions, PrimitiveSchemaType, Printer, PrinterFactoryOptions, PrinterPartial, PropertyNode, RefSchemaNode, RequestBodyNode, ResponseNode, ScalarSchemaNode, ScalarSchemaType, SchemaDialect, SchemaNode, SchemaNodeByType, SchemaType, SourceNode, StatusCode, StringSchemaNode, TextNode, TimeSchemaNode, TypeNode, UnionSchemaNode, UrlSchemaNode, UserFileNode, Visitor, VisitorContext, applyMacros, arrowFunctionDef, breakDef, buildJSDoc, buildList, buildObject, childName, collect, collectUsedSchemaNames, composeMacros, constDef, containsCircularRef, contentDef, createPrinter, defineDialect, defineMacro, defineNode, enumPropName, exportDef, extractRefName, extractStringsFromNodes, factory_d_exports as factory, fileDef, findCircularSchemas, functionDef, getNestedAccessor, importDef, inputDef, isHttpOperationNode, isStringType, isValidVarName, jsStringEscape, jsxDef, lazyGetter, macroDiscriminatorEnum, macroEnumName, macroSimplifyUnion, mapSchemaItems, mapSchemaMembers, mapSchemaProperties, mergeAdjacentObjectsLazy, narrowSchema, nodeDefs, objectKey, operationDef, optionality, outputDef, parameterDef, propertyDef, requestBodyDef, responseDef, schemaDef, schemaTypes, sourceDef, stringify, stringifyObject, syncSchemaRef, textDef, toRegExpString, transform, trimQuotes, typeDef, walk };
385
+ export { ArraySchemaNode, ArrowFunctionNode, BreakNode, CodeNode, ConstNode, ContentNode, DateSchemaNode, DatetimeSchemaNode, Dialect, DistributiveOmit, Enforce, EnumSchemaNode, ExportNode, FileNode, FunctionNode, GenericOperationNode, HttpMethod, HttpOperationNode, ImportNode, InferSchemaNode, InputMeta, InputNode, IntersectionSchemaNode, JSDocNode, JsxNode, Macro, Node, NodeDef, NodeKind, NumberSchemaNode, ObjectSchemaNode, OperationNode, OutputNode, ParameterLocation, ParameterNode, ParameterStyle, ParentOf, ParserOptions, PrimitiveSchemaType, Printer, PrinterFactoryOptions, PrinterPartial, PropertyNode, RefSchemaNode, RequestBodyNode, ResponseNode, ScalarSchemaNode, ScalarSchemaType, SchemaDialect, SchemaNode, SchemaNodeByType, SchemaType, SourceNode, StatusCode, StringSchemaNode, TextNode, TimeSchemaNode, TypeNode, UnionSchemaNode, UrlSchemaNode, UserFileNode, Visitor, VisitorContext, applyMacros, arrowFunctionDef, breakDef, childName, collect, collectUsedSchemaNames, combineExports, combineImports, combineSources, composeMacros, constDef, containsCircularRef, contentDef, createPrinter, defineDialect, defineMacro, defineNode, enumPropName, exportDef, extractRefName, extractStringsFromNodes, factory_d_exports as factory, fileDef, findCircularSchemas, functionDef, importDef, inputDef, isHttpOperationNode, isStringType, jsxDef, macroDiscriminatorEnum, macroEnumName, macroSimplifyUnion, mapSchemaItems, mapSchemaMembers, mapSchemaProperties, mergeAdjacentObjectsLazy, narrowSchema, nodeDefs, operationDef, optionality, outputDef, parameterDef, propertyDef, requestBodyDef, responseDef, schemaDef, schemaTypes, sourceDef, syncSchemaRef, textDef, transform, typeDef, walk };
533
386
  }
534
387
  //#endregion
535
- export { type ArraySchemaNode, type ArrowFunctionNode, type BreakNode, type CodeNode, type ConstNode, type ContentNode, type DateSchemaNode, type DatetimeSchemaNode, type Dialect, type DistributiveOmit, type Enforce, type EnumSchemaNode, type ExportNode, type FileNode, type FunctionNode, type GenericOperationNode, type HttpMethod, type HttpOperationNode, type ImportNode, type InferSchemaNode, type InputMeta, type InputNode, type IntersectionSchemaNode, type JSDocNode, type JsxNode, type Macro, type Node, type NodeDef, type NodeKind, type NumberSchemaNode, type ObjectSchemaNode, type OperationNode, type OutputNode, type ParameterLocation, type ParameterNode, type ParameterStyle, type ParentOf, type ParserOptions, type PrimitiveSchemaType, type Printer, type PrinterFactoryOptions, type PrinterPartial, type PropertyNode, type RefSchemaNode, type RequestBodyNode, type ResponseNode, type ScalarSchemaNode, type ScalarSchemaType, type SchemaDialect, type SchemaNode, type SchemaNodeByType, type SchemaType, type SourceNode, type StatusCode, type StringSchemaNode, type TextNode, type TimeSchemaNode, type TypeNode, type UnionSchemaNode, type UrlSchemaNode, type UserFileNode, type Visitor, type VisitorContext, applyMacros, arrowFunctionDef, exports_d_exports as ast, breakDef, buildJSDoc, buildList, buildObject, childName, collect, collectUsedSchemaNames, composeMacros, constDef, containsCircularRef, contentDef, createPrinter, defineDialect, defineMacro, defineNode, enumPropName, exportDef, extractRefName, extractStringsFromNodes, factory_d_exports as factory, fileDef, findCircularSchemas, functionDef, getNestedAccessor, importDef, inputDef, isHttpOperationNode, isStringType, isValidVarName, jsStringEscape, jsxDef, lazyGetter, macroDiscriminatorEnum, macroEnumName, macroSimplifyUnion, mapSchemaItems, mapSchemaMembers, mapSchemaProperties, mergeAdjacentObjectsLazy, narrowSchema, nodeDefs, objectKey, operationDef, optionality, outputDef, parameterDef, propertyDef, requestBodyDef, responseDef, schemaDef, schemaTypes, sourceDef, stringify, stringifyObject, syncSchemaRef, textDef, toRegExpString, transform, trimQuotes, typeDef, walk };
388
+ export { type ArraySchemaNode, type ArrowFunctionNode, type BreakNode, type CodeNode, type ConstNode, type ContentNode, type DateSchemaNode, type DatetimeSchemaNode, type Dialect, type DistributiveOmit, type Enforce, type EnumSchemaNode, type ExportNode, type FileNode, type FunctionNode, type GenericOperationNode, type HttpMethod, type HttpOperationNode, type ImportNode, type InferSchemaNode, type InputMeta, type InputNode, type IntersectionSchemaNode, type JSDocNode, type JsxNode, type Macro, type Node, type NodeDef, type NodeKind, type NumberSchemaNode, type ObjectSchemaNode, type OperationNode, type OutputNode, type ParameterLocation, type ParameterNode, type ParameterStyle, type ParentOf, type ParserOptions, type PrimitiveSchemaType, type Printer, type PrinterFactoryOptions, type PrinterPartial, type PropertyNode, type RefSchemaNode, type RequestBodyNode, type ResponseNode, type ScalarSchemaNode, type ScalarSchemaType, type SchemaDialect, type SchemaNode, type SchemaNodeByType, type SchemaType, type SourceNode, type StatusCode, type StringSchemaNode, type TextNode, type TimeSchemaNode, type TypeNode, type UnionSchemaNode, type UrlSchemaNode, type UserFileNode, type Visitor, type VisitorContext, applyMacros, arrowFunctionDef, exports_d_exports as ast, breakDef, childName, collect, collectUsedSchemaNames, combineExports, combineImports, combineSources, composeMacros, constDef, containsCircularRef, contentDef, createPrinter, defineDialect, defineMacro, defineNode, enumPropName, exportDef, extractRefName, extractStringsFromNodes, factory_d_exports as factory, fileDef, findCircularSchemas, functionDef, importDef, inputDef, isHttpOperationNode, isStringType, jsxDef, macroDiscriminatorEnum, macroEnumName, macroSimplifyUnion, mapSchemaItems, mapSchemaMembers, mapSchemaProperties, mergeAdjacentObjectsLazy, narrowSchema, nodeDefs, operationDef, optionality, outputDef, parameterDef, propertyDef, requestBodyDef, responseDef, schemaDef, schemaTypes, sourceDef, syncSchemaRef, textDef, transform, typeDef, walk };
536
389
  //# sourceMappingURL=index.d.ts.map