@kubb/ast 5.0.0-beta.98 → 5.0.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.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { n as __name, t as __exportAll } from "./rolldown-runtime-CNktS9qV.js";
2
- import { $ as sourceDef, $t as NodeDef, A as StatusCode, At as BreakNode, B as parameterDef, Bt as constDef, C as GenericOperationNode, Ct as PropertyNode, D as createOperation, Dt as InferSchemaNode, E as OperationNode, Et as propertyDef, F as requestBodyDef, Ft as JsxNode, G as UserFileNode, Gt as createJsx, H as FileNode, Ht as createBreak, I as ParameterLocation, It as TextNode, J as createImport, Jt as functionDef, K as createExport, Kt as createText, L as ParameterNode, Lt as TypeNode, M as responseDef, Mt as ConstNode, N as RequestBodyNode, Nt as FunctionNode, O as operationDef, Ot as ParserOptions, P as createRequestBody, Pt as JSDocNode, Q as importDef, Qt as DistributiveOmit, R as ParameterStyle, Rt as arrowFunctionDef, S as inputDef, St as schemaDef, T as HttpOperationNode, Tt as createProperty, U as ImportNode, Ut as createConst, V as ExportNode, Vt as createArrowFunction, W as SourceNode, Wt as createFunction, X as exportDef, Xt as textDef, Y as createSource, Yt as jsxDef, Z as fileDef, Zt as typeDef, _ as createOutput, _t as StringSchemaNode, a as Enforce, at as DatetimeSchemaNode, b as InputNode, bt as UrlSchemaNode, c as composeMacros, ct as NumberSchemaNode, d as Visitor, dt as RefSchemaNode, en as defineNode, et as ContentNode, f as VisitorContext, ft as ScalarSchemaNode, g as OutputNode, gt as SchemaType, h as Node, ht as SchemaNodeByType, i as createPrinter, it as DateSchemaNode, j as createResponse, jt as CodeNode, k as ResponseNode, kt as ArrowFunctionNode, l as defineMacro, lt as ObjectSchemaNode, m as transform, mt as SchemaNode, n as PrinterFactoryOptions, nn as NodeKind, nt as createContent, o as Macro, ot as EnumSchemaNode, p as collect, pt as ScalarSchemaType, q as createFile, qt as createType, r as PrinterPartial, rn as schemaTypes, rt as ArraySchemaNode, s as applyMacros, st as IntersectionSchemaNode, t as Printer, tn as BaseNode, tt as contentDef, u as ParentOf, ut as PrimitiveSchemaType, v as outputDef, vt as TimeSchemaNode, w as HttpMethod, wt as UserPropertyNode, x as createInput, xt as createSchema, y as InputMeta, yt as UnionSchemaNode, z as createParameter, zt as breakDef } from "./types-CqXMgUzC.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, 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 transform, ht as SchemaNode, i as createPrinter, in as schemaTypes, it as ArraySchemaNode, j as StatusCode, jt as BreakNode, k as operationDef, kt as ParserOptions, l as defineMacro, lt as NumberSchemaNode, m as collectSync, mt as ScalarSchemaType, n as PrinterFactoryOptions, nn as BaseNode, nt as contentDef, o as Macro, 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, 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-BPqinVNh.js";
3
3
  //#region src/guards.d.ts
4
4
  /**
5
5
  * Narrows a `SchemaNode` to the variant that matches `type`.
@@ -30,28 +30,6 @@ declare function isHttpOperationNode(node: OperationNode): node is HttpOperation
30
30
  */
31
31
  declare function optionality(schema: SchemaNode, required: boolean): SchemaNode;
32
32
  //#endregion
33
- //#region src/utils/combineFileMembers.d.ts
34
- /**
35
- * Deduplicates `SourceNode` objects by `name + isExportable + isTypeOnly`, keeping the first of each
36
- * key. Unnamed sources fall back to their extracted node strings as the name part of the key. Returns
37
- * the deduplicated array in original order.
38
- */
39
- declare function combineSources(sources: Array<SourceNode>): Array<SourceNode>;
40
- /**
41
- * Deduplicates and merges `ExportNode` objects by path and type.
42
- *
43
- * Named exports with the same path and `isTypeOnly` flag have their names merged into a single export.
44
- * Non-array exports are deduplicated by exact identity. Returns a sorted, deduplicated array.
45
- */
46
- declare function combineExports(exports: Array<ExportNode>): Array<ExportNode>;
47
- /**
48
- * Deduplicates and merges `ImportNode` objects, filtering out unused imports.
49
- *
50
- * Retains imports that are referenced in `source` or re-exported. Imports with the same path and
51
- * `isTypeOnly` flag have their names merged. Returns a sorted, deduplicated, filtered array.
52
- */
53
- declare function combineImports(imports: Array<ImportNode>, exports: Array<ExportNode>, source?: string): Array<ImportNode>;
54
- //#endregion
55
33
  //#region src/utils/extractStringsFromNodes.d.ts
56
34
  /**
57
35
  * Extracts all string content from a `CodeNode` tree recursively.
@@ -61,27 +39,7 @@ declare function combineImports(imports: Array<ImportNode>, exports: Array<Expor
61
39
  */
62
40
  declare function extractStringsFromNodes(nodes: Array<CodeNode> | undefined): string;
63
41
  //#endregion
64
- //#region src/utils/mergeAdjacentSchemas.d.ts
65
- /**
66
- * Merges a run of adjacent anonymous object members into one. Named or non-object members break the
67
- * run and pass through unchanged. The merge follows member order, so callers control which members
68
- * combine by where they place them in the sequence.
69
- *
70
- * @example
71
- * ```ts
72
- * const merged = [...mergeAdjacentObjectsLazy([objectA, objectB])]
73
- * ```
74
- */
75
- declare function mergeAdjacentObjectsLazy(members: Iterable<SchemaNode>): Generator<SchemaNode, void, undefined>;
76
- //#endregion
77
42
  //#region src/utils/refs.d.ts
78
- /**
79
- * Returns the last path segment of a reference string.
80
- *
81
- * @example
82
- * `extractRefName('#/components/schemas/Pet') // 'Pet'`
83
- */
84
- declare function extractRefName(ref: string): string;
85
43
  /**
86
44
  * Resolves the emitted name of the schema a ref node points at. Prefers `targetName` (set when
87
45
  * the referenced schema was renamed, e.g. to break a collision), then the last segment of `ref`,
@@ -96,49 +54,26 @@ declare function extractRefName(ref: string): string;
96
54
  * `resolveRefName({ kind: 'Schema', type: 'ref', ref: '#/components/schemas/Order', targetName: 'OrderSchema' }) // 'OrderSchema'`
97
55
  */
98
56
  declare function resolveRefName(node: SchemaNode | null | undefined): string | null;
57
+ //#endregion
58
+ //#region src/utils/schemaGraph.d.ts
99
59
  /**
100
- * Builds a PascalCase child schema name by joining a parent name and property name.
101
- * Returns `null` when there is no parent to nest under.
102
- *
103
- * @example Nested under a parent
104
- * `childName('Order', 'shipping_address') // 'OrderShippingAddress'`
105
- *
106
- * @example No parent
107
- * `childName(undefined, 'params') // null`
108
- */
109
- declare function childName(parentName: string | null | undefined, propName: string): string | null;
110
- /**
111
- * Builds a PascalCase enum name from the parent name, property name, and a suffix, skipping any
112
- * empty parts.
113
- *
114
- * @example
115
- * `enumPropName('Order', 'status', 'enum') // 'OrderStatusEnum'`
116
- */
117
- declare function enumPropName(parentName: string | null | undefined, propName: string, enumSuffix: string): string;
118
- /**
119
- * Merges a ref node with its resolved schema, giving usage-site fields precedence.
60
+ * Collects the de-duplicated target names of every pointer-carrying ref in a node's subtree, in
61
+ * first-occurrence order. The walk is memoized by node identity, so the subtree is scanned once and
62
+ * `resolver.imports` reads the same result across the ts, zod, and faker plugins instead of
63
+ * re-scanning the same schema per plugin.
120
64
  *
121
- * Every field set on the ref node except `kind`, `type`, `name`, `ref`, and `schema` overrides the
122
- * same field in the resolved `node.schema` (for example `description`, `nullable`, `readOnly`,
123
- * `deprecated`). Fields left `undefined` on the ref do not shadow the resolved schema. Non-ref
124
- * nodes and refs without a resolved `schema` are returned unchanged.
65
+ * Only refs that carry a `$ref` pointer count, so a synthesized ref pointing at a sibling in the
66
+ * same file (a union member created by name) is left out. That leaves exactly the set
67
+ * `resolver.imports` emits. This is the ordered, import-facing counterpart to
68
+ * {@link collectReferencedSchemaNames}, which returns an unordered set for graph analysis.
125
69
  *
126
70
  * @example
127
71
  * ```ts
128
- * const ref = createSchema({ type: 'ref', ref: '#/components/schemas/Pet', description: 'A cute pet' })
129
- * const merged = syncSchemaRef(ref) // merges with resolved Pet schema
72
+ * collectImportedRefNames(petSchema)
73
+ * // ['Category', 'Tag']
130
74
  * ```
131
75
  */
132
- declare function syncSchemaRef(node: SchemaNode): SchemaNode;
133
- /**
134
- * Returns `true` when a schema emits as a plain `string` type.
135
- *
136
- * Covers `string`, `uuid`, `email`, `url`, and `datetime` types. For `date` and `time`
137
- * types, returns `true` only when `representation` is `'string'` rather than `'date'`.
138
- */
139
- declare function isStringType(node: SchemaNode): boolean;
140
- //#endregion
141
- //#region src/utils/schemaGraph.d.ts
76
+ declare const collectImportedRefNames: (key: SchemaNode) => readonly string[];
142
77
  /**
143
78
  * Collects the names of all top-level schemas transitively used by a set of operations.
144
79
  *
@@ -161,90 +96,33 @@ declare function isStringType(node: SchemaNode): boolean;
161
96
  */
162
97
  declare function collectUsedSchemaNames(operations: ReadonlyArray<OperationNode>, schemas: ReadonlyArray<SchemaNode>): Set<string>;
163
98
  /**
164
- * Finds every schema that takes part in a circular dependency chain, including direct self-loops.
165
- *
166
- * Wrap the returned schema positions in a deferred construct (a lazy getter or `z.lazy(() => …)`) so
167
- * the generated code does not recurse forever. Refs are followed by name only, so the walk stays
168
- * linear in the size of the schema graph.
169
- *
170
- * @note Call this once on the full graph, then check individual schemas with `containsCircularRef()`.
171
- */
172
- declare function findCircularSchemas(schemas: ReadonlyArray<SchemaNode>): Set<string>;
173
- /**
174
- * Returns `true` when a schema, or anything nested inside it, references a circular schema.
175
- *
176
- * Pass `excludeName` to skip refs to a specific schema, which helps when self-references are handled
177
- * on their own. Pair it with `findCircularSchemas()` to decide where lazy wrappers go.
99
+ * Finds every schema that takes part in a circular dependency chain in a schema dependency graph
100
+ * that maps each schema name to the names it references directly.
178
101
  *
179
- * @note Stops at the first matching circular ref.
180
- */
181
- declare function containsCircularRef(node: SchemaNode | undefined, { circularSchemas, excludeName }: {
182
- circularSchemas: ReadonlySet<string>;
183
- excludeName?: string;
184
- }): boolean;
185
- //#endregion
186
- //#region src/macros/macroDiscriminatorEnum.d.ts
187
- type Props$2 = {
188
- propertyName: string;
189
- values: Array<string>;
190
- enumName?: string;
191
- };
192
- /**
193
- * Builds a macro that replaces a discriminator property's schema with a string enum of the given
194
- * values. Object schemas that lack the property are returned unchanged.
102
+ * Use this when the graph was already collected during another pass (e.g. the adapter's convert
103
+ * walk), so the schema nodes are not swept a second time. `findCircularSchemas` builds the graph
104
+ * from schema nodes and delegates here.
195
105
  *
196
106
  * @example
197
107
  * ```ts
198
- * const macro = macroDiscriminatorEnum({ propertyName: 'type', values: ['dog', 'cat'] })
199
- * const next = applyMacros(objectSchema, [macro], { depth: 'shallow' })
108
+ * const graph = new Map([
109
+ * ['Pet', new Set(['Category'])],
110
+ * ['Category', new Set(['Pet'])],
111
+ * ])
112
+ * findCircularSchemasFromGraph(graph) // Set { 'Pet', 'Category' }
200
113
  * ```
201
114
  */
202
- declare function macroDiscriminatorEnum({ propertyName, values, enumName }: Props$2): Macro;
203
- //#endregion
204
- //#region src/macros/macroEnumName.d.ts
205
- type Props$1 = {
206
- parentName: string | null | undefined;
207
- propName: string;
208
- enumSuffix: string;
209
- };
115
+ declare function findCircularSchemasFromGraph(graph: ReadonlyMap<string, ReadonlySet<string>>): Set<string>;
210
116
  /**
211
- * Builds a macro that names an inline enum schema from its parent and property name. Boolean enums
212
- * are left anonymous. Non-enum nodes are returned unchanged.
213
- *
214
- * @example
215
- * ```ts
216
- * const macro = macroEnumName({ parentName: 'Pet', propName: 'status', enumSuffix: 'enum' })
217
- * const named = applyMacros(propSchema, [macro], { depth: 'shallow' })
218
- * ```
219
- */
220
- declare function macroEnumName({ parentName, propName, enumSuffix }: Props$1): Macro;
221
- //#endregion
222
- //#region src/macros/macroRenameSchema.d.ts
223
- type Props = {
224
- from: string;
225
- to: string;
226
- };
227
- /**
228
- * Builds a macro that renames a schema consistently: the declaration (`name`) and every ref
229
- * pointing at it (`targetName`) change together, so imports and printed references stay in
230
- * sync. Renaming only one side by hand produces imports for files that are never generated.
117
+ * Finds every schema that takes part in a circular dependency chain, including direct self-loops.
231
118
  *
232
- * @example
233
- * `const macro = macroRenameSchema({ from: 'Order', to: 'StoreOrder' })`
234
- */
235
- declare function macroRenameSchema({ from, to }: Props): Macro;
236
- //#endregion
237
- //#region src/macros/macroSimplifyUnion.d.ts
238
- /**
239
- * Removes union members a broader scalar primitive already covers, such as a multi-value string enum
240
- * sitting next to a plain `string`. Single-value enums are kept.
119
+ * Wrap the returned schema positions in a deferred construct (a lazy getter or `z.lazy(() => …)`) so
120
+ * the generated code does not recurse forever. Refs are followed by name only, so the walk stays
121
+ * linear in the size of the schema graph.
241
122
  *
242
- * @example
243
- * ```ts
244
- * const next = applyMacros(unionSchema, [macroSimplifyUnion], { depth: 'shallow' })
245
- * ```
123
+ * @note Call this once on the full graph, then check individual schemas with `containsCircularRef()`.
246
124
  */
247
- declare const macroSimplifyUnion: Macro;
125
+ declare function findCircularSchemas(schemas: ReadonlyArray<SchemaNode>): Set<string>;
248
126
  declare namespace factory_d_exports {
249
127
  export { UserFileNode, createArrowFunction, createBreak, createConst, createContent, createExport, createFile, createFunction, createImport, createInput, createJsx, createOperation, createOutput, createParameter, createProperty, createRequestBody, createResponse, createSchema, createSource, createText, createType, update };
250
128
  }
@@ -340,8 +218,8 @@ declare const nodeDefs: (NodeDef<InputNode, Partial<Omit<InputNode, "kind">>> |
340
218
  type: "ipv6";
341
219
  }) | 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">>)[];
342
220
  declare namespace exports_d_exports {
343
- export { ArraySchemaNode, ArrowFunctionNode, BreakNode, CodeNode, ConstNode, ContentNode, DateSchemaNode, DatetimeSchemaNode, 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, 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, defineMacro, defineNode, enumPropName, exportDef, extractRefName, extractStringsFromNodes, factory_d_exports as factory, fileDef, findCircularSchemas, functionDef, importDef, inputDef, isHttpOperationNode, isStringType, jsxDef, macroDiscriminatorEnum, macroEnumName, macroRenameSchema, macroSimplifyUnion, mergeAdjacentObjectsLazy, narrowSchema, nodeDefs, operationDef, optionality, outputDef, parameterDef, propertyDef, requestBodyDef, resolveRefName, responseDef, schemaDef, schemaTypes, sourceDef, syncSchemaRef, textDef, transform, typeDef };
221
+ export { ArraySchemaNode, ArrowFunctionNode, BreakNode, CodeNode, ConstNode, ContentNode, DateSchemaNode, DatetimeSchemaNode, 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, SchemaNode, SchemaNodeByType, SchemaType, SourceNode, StatusCode, StringSchemaNode, TextNode, TimeSchemaNode, TypeNode, UnionSchemaNode, UrlSchemaNode, UserFileNode, Visitor, VisitorContext, applyMacros, arrowFunctionDef, breakDef, collect, collectImportedRefNames, collectSync, collectUsedSchemaNames, composeMacros, constDef, contentDef, createPrinter, defineMacro, defineNode, exportDef, extractStringsFromNodes, factory_d_exports as factory, fileDef, findCircularSchemas, findCircularSchemasFromGraph, functionDef, importDef, inputDef, isHttpOperationNode, jsxDef, narrowSchema, nodeDefs, operationDef, optionality, outputDef, parameterDef, propertyDef, requestBodyDef, resolveRefName, responseDef, schemaDef, schemaTypes, sourceDef, textDef, transform, typeDef };
344
222
  }
345
223
  //#endregion
346
- export { type ArraySchemaNode, type ArrowFunctionNode, type BreakNode, type CodeNode, type ConstNode, type ContentNode, type DateSchemaNode, type DatetimeSchemaNode, 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 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, defineMacro, defineNode, enumPropName, exportDef, extractRefName, extractStringsFromNodes, factory_d_exports as factory, fileDef, findCircularSchemas, functionDef, importDef, inputDef, isHttpOperationNode, isStringType, jsxDef, macroDiscriminatorEnum, macroEnumName, macroRenameSchema, macroSimplifyUnion, mergeAdjacentObjectsLazy, narrowSchema, nodeDefs, operationDef, optionality, outputDef, parameterDef, propertyDef, requestBodyDef, resolveRefName, responseDef, schemaDef, schemaTypes, sourceDef, syncSchemaRef, textDef, transform, typeDef };
224
+ export { type ArraySchemaNode, type ArrowFunctionNode, type BreakNode, type CodeNode, type ConstNode, type ContentNode, type DateSchemaNode, type DatetimeSchemaNode, 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 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, collect, collectImportedRefNames, collectSync, collectUsedSchemaNames, composeMacros, constDef, contentDef, createPrinter, defineMacro, defineNode, exportDef, extractStringsFromNodes, factory_d_exports as factory, fileDef, findCircularSchemas, findCircularSchemasFromGraph, functionDef, importDef, inputDef, isHttpOperationNode, jsxDef, narrowSchema, nodeDefs, operationDef, optionality, outputDef, parameterDef, propertyDef, requestBodyDef, resolveRefName, responseDef, schemaDef, schemaTypes, sourceDef, textDef, transform, typeDef };
347
225
  //# sourceMappingURL=index.d.ts.map