@kubb/swagger-ts 2.0.0-beta.6 → 2.0.0-beta.7

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,14 +1,409 @@
1
1
  import * as _kubb_core from '@kubb/core';
2
2
  import { ResolveNameParams, KubbPlugin, PluginFactoryOptions } from '@kubb/core';
3
- import { Exclude, Include, Override, ResolvePathOptions, AppMeta as AppMeta$1 } from '@kubb/swagger';
3
+ import { OasTypes, Exclude, Include, Override, ResolvePathOptions, AppMeta as AppMeta$1 } from '@kubb/swagger';
4
+ import { Pipe, Tuples, Fn, Call, Objects, Booleans, Strings } from 'hotscript';
5
+ import { JSONSchema, FromSchema } from 'json-schema-to-ts';
6
+ import { Object as Object$1 } from 'ts-toolbelt';
7
+ import { TupleToUnion, SplitByDelimiter } from '@kubb/types';
4
8
 
5
- type Options = {
9
+ declare namespace Checks$5 {
10
+ type Required = {
11
+ required: true;
12
+ };
13
+ type Schemas = {
14
+ schema: JSONSchema;
15
+ };
16
+ type Enum = {
17
+ type: JSONSchemaTypeName;
18
+ enum?: any[];
19
+ };
20
+ type Parameters = {
21
+ in: string;
22
+ required?: boolean;
23
+ }[];
24
+ type SingleParameter<TParamType> = [{
25
+ in: TParamType;
26
+ required?: true;
27
+ }];
28
+ type Responses = {
29
+ responses: any;
30
+ };
31
+ }
32
+ type PathMap<TOAS extends OasTypes.OASDocument> = TOAS['paths'];
33
+ interface ParamPropMap {
34
+ query: 'query';
35
+ path: 'params';
36
+ header: 'headers';
37
+ }
38
+ type JSONSchemaTypeName = 'string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null';
39
+ type ParamObj<TParameter extends {
40
+ name: string;
41
+ }> = TParameter extends Checks$5.Required ? {
42
+ [TName in TParameter['name']]: TParameter extends Checks$5.Schemas ? FromSchema<TParameter['schema']> : TParameter extends Checks$5.Enum ? FromSchema<{
43
+ type: TParameter['type'];
44
+ enum: TParameter['enum'];
45
+ }> : unknown;
46
+ } : {
47
+ [TName in TParameter['name']]?: TParameter extends Checks$5.Schemas ? FromSchema<TParameter['schema']> : TParameter extends Checks$5.Enum ? FromSchema<{
48
+ type: TParameter['type'];
49
+ enum: TParameter['enum'];
50
+ }> : unknown;
51
+ };
52
+ interface ParamToRequestParam<TParameters extends Checks$5.Parameters> extends Fn {
53
+ return: this['arg0'] extends {
54
+ name: string;
55
+ in: infer TParamType;
56
+ } ? TParameters extends Checks$5.SingleParameter<TParamType> ? {
57
+ [TKey in TParamType extends keyof ParamPropMap ? ParamPropMap[TParamType] : never]: ParamObj<this['arg0']>;
58
+ } : {
59
+ [TKey in TParamType extends keyof ParamPropMap ? ParamPropMap[TParamType] : never]?: ParamObj<this['arg0']>;
60
+ } : {};
61
+ }
62
+ type ParamMap<TParameters extends Checks$5.Parameters> = Pipe<TParameters, [
63
+ Tuples.Map<ParamToRequestParam<TParameters>>,
64
+ Tuples.ToIntersection
65
+ ]>;
66
+ type MethodMap<TOAS extends OasTypes.OASDocument, TPath extends keyof PathMap<TOAS>> = PathMap<TOAS>[TPath];
67
+ type StatusMap<TOAS extends OasTypes.OASDocument, TPath extends keyof PathMap<TOAS>, TMethod extends keyof MethodMap<TOAS, TPath>> = MethodMap<TOAS, TPath>[TMethod] extends Checks$5.Responses ? MethodMap<TOAS, TPath>[TMethod]['responses'] : never;
68
+
69
+ declare namespace Checks$4 {
70
+ type ModelWithSchemas = {
71
+ components: {
72
+ schemas: Record<string, JSONSchema>;
73
+ };
74
+ };
75
+ type ModelWithSchemasNamed<TName extends string | number | symbol> = {
76
+ components: {
77
+ schemas: {
78
+ [TModelName in TName]: JSONSchema;
79
+ };
80
+ };
81
+ };
82
+ type ModelWithDefinitions = {
83
+ definitions: Record<string, JSONSchema>;
84
+ };
85
+ type ModelWithDefinitionsNamed<TName extends string | number | symbol = never> = {
86
+ definitions: {
87
+ [TModelName in TName]: JSONSchema;
88
+ };
89
+ };
90
+ }
91
+ type Model<TOAS extends OasTypes.OASDocument, TName extends TOAS extends Checks$4.ModelWithSchemas ? keyof TOAS['components']['schemas'] : TOAS extends Checks$4.ModelWithDefinitions ? keyof TOAS['definitions'] : never> = TOAS extends Checks$4.ModelWithSchemasNamed<TName> ? FromSchema<TOAS['components']['schemas'][TName]> : TOAS extends Checks$4.ModelWithDefinitionsNamed<TName> ? FromSchema<TOAS['definitions'][TName]> : never;
92
+
93
+ declare namespace Checks$3 {
94
+ type AllOFf = {
95
+ allOf: any[];
96
+ };
97
+ type Object = {
98
+ type: 'object';
99
+ properties: any;
100
+ };
101
+ type Properties = {
102
+ properties: any;
103
+ };
104
+ type PropertiesRequired = {
105
+ properties: Record<string, any>;
106
+ required: string[];
107
+ };
108
+ }
109
+ type FixAdditionalPropertiesForAllOf<T> = T extends Checks$3.AllOFf ? Omit<T, 'allOf'> & {
110
+ allOf: Call<Tuples.Map<Objects.Omit<'additionalProperties'>>, T['allOf']>;
111
+ } : T;
112
+ type FixMissingAdditionalProperties<T> = T extends Checks$3.Object ? Omit<T, 'additionalProperties'> & {
113
+ additionalProperties: false;
114
+ } : T;
115
+ type FixMissingTypeObject<T> = T extends Checks$3.Properties ? T & {
116
+ type: 'object';
117
+ } : T;
118
+ type FixExtraRequiredFields<T> = T extends Checks$3.PropertiesRequired ? Omit<T, 'required'> & {
119
+ required: Call<Tuples.Filter<Booleans.Extends<keyof T['properties']>>, T['required']>;
120
+ } : T;
121
+ type FixJSONSchema<T> = FixAdditionalPropertiesForAllOf<FixMissingAdditionalProperties<FixMissingTypeObject<FixExtraRequiredFields<T>>>>;
122
+ type Mutable<Type> = FixJSONSchema<{
123
+ -readonly [Key in keyof Type]: Mutable<Type[Key]>;
124
+ }>;
125
+ type RefToPath<T extends string> = T extends `#/${infer Ref}` ? Call<Strings.Split<'/'>, Ref> : never;
126
+ type ResolveRef<TObj, TRef extends string> = {
127
+ $id: TRef;
128
+ } & Object$1.Path<TObj, RefToPath<TRef>>;
129
+ type ResolveRefInObj<T, TBase> = T extends {
130
+ $ref: infer Ref;
131
+ } ? Ref extends string ? ResolveRef<TBase, Ref> : T : T;
132
+ type ResolveRefsInObj<T, TBase = T> = {
133
+ [K in keyof T]: ResolveRefsInObj<ResolveRefInObj<T[K], TBase>, TBase>;
134
+ };
135
+ type Parse<TOAS> = Mutable<ResolveRefsInObj<TOAS>>;
136
+
137
+ declare namespace Checks$2 {
138
+ type Security = {
139
+ security: {
140
+ [key: string]: any;
141
+ }[];
142
+ };
143
+ namespace AuthParams {
144
+ type Basic = {
145
+ type: 'http';
146
+ scheme: 'basic';
147
+ } | {
148
+ type: 'basic';
149
+ };
150
+ type Bearer = {
151
+ type: 'http';
152
+ scheme: 'bearer';
153
+ } | {
154
+ type: 'bearer';
155
+ };
156
+ type OAuth2 = {
157
+ type: 'oauth2';
158
+ };
159
+ type ApiKey = {
160
+ type: 'apiKey';
161
+ in: 'header';
162
+ };
163
+ }
164
+ namespace AuthName {
165
+ type Basic = `basic${string}`;
166
+ type Bearer = `bearer${string}`;
167
+ type OAuth2 = `oauth${string}`;
168
+ }
169
+ }
170
+ type SecuritySchemeName<T extends Checks$2.Security> = Call<Tuples.Map<Objects.Keys>, T['security']>[number];
171
+ declare namespace AuthParams {
172
+ type Basic<TSecurityScheme> = TSecurityScheme extends Checks$2.AuthParams.Basic ? {
173
+ headers: {
174
+ /**
175
+ * `Authorization` header is required for basic authentication
176
+ * @see https://en.wikipedia.org/wiki/Basic_access_authentication
177
+ *
178
+ * It contains the word `Basic` followed by a space and a base64-encoded string `username:password`
179
+ *
180
+ * @example
181
+ * ```
182
+ * Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
183
+ * ```
184
+ */
185
+ Authorization: `Basic ${string}`;
186
+ };
187
+ } : {};
188
+ type Bearer<TSecurityScheme> = TSecurityScheme extends Checks$2.AuthParams.Bearer ? {
189
+ /**
190
+ * `Authorization` header is required for bearer authentication
191
+ * @see https://swagger.io/docs/specification/authentication/bearer-authentication/
192
+ */
193
+ headers: {
194
+ /**
195
+ * It contains the word `Bearer` followed by a space and the token
196
+ *
197
+ * @example
198
+ * ```
199
+ * Authorization: Bearer {token}
200
+ * ```
201
+ */
202
+ Authorization: `Bearer ${string}`;
203
+ };
204
+ } : {};
205
+ type ApiKey<TSecurityScheme> = TSecurityScheme extends Checks$2.AuthParams.ApiKey & {
206
+ name: infer TApiKeyHeaderName;
207
+ } ? {
208
+ headers: {
209
+ [THeaderName in TApiKeyHeaderName extends string ? TApiKeyHeaderName : never]: string;
210
+ };
211
+ } : TSecurityScheme extends {
212
+ type: 'apiKey';
213
+ in: 'query';
214
+ name: infer TApiKeyQueryName;
215
+ } ? {
216
+ query: {
217
+ [TQueryName in TApiKeyQueryName extends string ? TApiKeyQueryName : never]: string;
218
+ };
219
+ } : {};
220
+ type OAuth2<TSecurityScheme> = TSecurityScheme extends Checks$2.AuthParams.OAuth2 ? {
221
+ /**
222
+ * `Authorization` header is required for OAuth2.
223
+ */
224
+ headers: {
225
+ /**
226
+ * The access token string as issued by the authorization server.
227
+ * @example `Authorization: Bearer <access_token>`
228
+ */
229
+ Authorization: `Bearer ${string}`;
230
+ };
231
+ } : {};
232
+ }
233
+ type OASSecurityParams<TSecurityScheme> = AuthParams.Basic<TSecurityScheme> & AuthParams.Bearer<TSecurityScheme> & AuthParams.ApiKey<TSecurityScheme> & AuthParams.OAuth2<TSecurityScheme>;
234
+ type SecurityParamsBySecurityRef<TOAS, TSecurityObj> = TSecurityObj extends Checks$2.Security ? TOAS extends {
235
+ components: {
236
+ securitySchemes: {
237
+ [TSecuritySchemeNameKey in SecuritySchemeName<TSecurityObj> extends string ? SecuritySchemeName<TSecurityObj> : never]: infer TSecurityScheme;
238
+ };
239
+ };
240
+ } | {
241
+ securityDefinitions: {
242
+ [TSecuritySchemeNameKey in SecuritySchemeName<TSecurityObj> extends string ? SecuritySchemeName<TSecurityObj> : never]: infer TSecurityScheme;
243
+ };
244
+ } ? OASSecurityParams<TSecurityScheme> : SecuritySchemeName<TSecurityObj> extends Checks$2.AuthName.Basic ? AuthParams.Basic<{
245
+ type: 'http';
246
+ scheme: 'basic';
247
+ }> : SecuritySchemeName<TSecurityObj> extends Checks$2.AuthName.Bearer ? AuthParams.Bearer<{
248
+ type: 'http';
249
+ scheme: 'bearer';
250
+ }> : SecuritySchemeName<TSecurityObj> extends Checks$2.AuthName.OAuth2 ? AuthParams.OAuth2<{
251
+ type: 'oauth2';
252
+ }> : {} : {};
253
+
254
+ declare namespace Checks$1 {
255
+ type RequestBodyJson = {
256
+ requestBody: {
257
+ content: {
258
+ 'application/json': {
259
+ schema: JSONSchema;
260
+ };
261
+ };
262
+ };
263
+ };
264
+ type RequestBodyFormData = {
265
+ requestBody: {
266
+ content: {
267
+ 'multipart/form-data': {
268
+ schema: JSONSchema;
269
+ };
270
+ };
271
+ };
272
+ };
273
+ type RequestBodyFormEncoded = {
274
+ requestBody: {
275
+ content: {
276
+ 'application/x-www-form-urlencoded': {
277
+ schema: JSONSchema;
278
+ };
279
+ };
280
+ };
281
+ };
282
+ type Parameters = {
283
+ parameters: {
284
+ name: string;
285
+ in: string;
286
+ }[];
287
+ };
288
+ type PathBrackets = `${string}{${string}}${string}`;
289
+ type PathPattern = `${string}:${string}${string}`;
290
+ type Required = {
291
+ required: true;
292
+ };
293
+ }
294
+ type ExtractPathParamsWithPattern<TPath extends string> = Pipe<TPath, [
295
+ Strings.Split<'/'>,
296
+ Tuples.Filter<Strings.StartsWith<':'>>,
297
+ Tuples.Map<Strings.Trim<':'>>,
298
+ Tuples.ToUnion
299
+ ]>;
300
+ type IsPathParameter<T extends string> = T extends `{${infer U}}` ? U : never;
301
+ type ExtractPathParameters<T extends any[]> = {
302
+ [K in keyof T]: IsPathParameter<T[K]>;
303
+ };
304
+ type ExtractSegments<TPath extends string> = SplitByDelimiter<TPath, '/'>;
305
+ type ExtractSubSegments<T extends any[]> = {
306
+ [K in keyof T]: SplitByDelimiter<T[K], ';'>;
307
+ };
308
+ type ExtractPathParamsWithBrackets<TPath extends string> = TupleToUnion<ExtractPathParameters<ExtractSubSegments<ExtractSegments<TPath>>[number]>>;
309
+ type RequestParams<TOAS extends OasTypes.OASDocument, TPath extends keyof PathMap<TOAS>, TMethod extends keyof MethodMap<TOAS, TPath>> = (MethodMap<TOAS, TPath>[TMethod] extends Checks$1.RequestBodyJson ? MethodMap<TOAS, TPath>[TMethod]['requestBody'] extends Checks$1.Required ? {
310
+ /**
311
+ * The request body in JSON is required for this request.
312
+ *
313
+ * The value of `json` will be stringified and sent as the request body with `Content-Type: application/json`.
314
+ */
315
+ json: FromSchema<MethodMap<TOAS, TPath>[TMethod]['requestBody']['content']['application/json']['schema']>;
316
+ } : {
317
+ /**
318
+ * The request body in JSON is optional for this request.
319
+ *
320
+ * The value of `json` will be stringified and sent as the request body with `Content-Type: application/json`.
321
+ */
322
+ json?: FromSchema<MethodMap<TOAS, TPath>[TMethod]['requestBody']['content']['application/json']['schema']>;
323
+ } : MethodMap<TOAS, TPath>[TMethod] extends Checks$1.RequestBodyFormData ? MethodMap<TOAS, TPath>[TMethod]['requestBody'] extends Checks$1.Required ? {
324
+ /**
325
+ * The request body in multipart/form-data is required for this request.
326
+ *
327
+ * The value of `formData` will be sent as the request body with `Content-Type: multipart/form-data`.
328
+ */
329
+ formData: FromSchema<MethodMap<TOAS, TPath>[TMethod]['requestBody']['content']['multipart/form-data']['schema']>;
330
+ } : {
331
+ /**
332
+ * The request body in multipart/form-data is optional for this request.
333
+ *
334
+ * The value of `formData` will be sent as the request body with `Content-Type: multipart/form-data`.
335
+ */
336
+ formData?: FromSchema<MethodMap<TOAS, TPath>[TMethod]['requestBody']['content']['multipart/form-data']['schema']>;
337
+ } : MethodMap<TOAS, TPath>[TMethod] extends Checks$1.RequestBodyFormEncoded ? MethodMap<TOAS, TPath>[TMethod]['requestBody'] extends Checks$1.Required ? {
338
+ /**
339
+ * The request body in application/x-www-form-urlencoded is required for this request.
340
+ *
341
+ * The value of `formUrlEncoded` will be sent as the request body with `Content-Type: application/x-www-form-urlencoded`.
342
+ */
343
+ formUrlEncoded: FromSchema<MethodMap<TOAS, TPath>[TMethod]['requestBody']['content']['application/x-www-form-urlencoded']['schema']>;
344
+ } : {
345
+ /**
346
+ * The request body in application/x-www-form-urlencoded is optional for this request.
347
+ *
348
+ * The value of `formUrlEncoded` will be sent as the request body with `Content-Type: application/x-www-form-urlencoded`.
349
+ */
350
+ formUrlEncoded?: FromSchema<MethodMap<TOAS, TPath>[TMethod]['requestBody']['content']['application/x-www-form-urlencoded']['schema']>;
351
+ } : {}) & (MethodMap<TOAS, TPath>[TMethod] extends Checks$1.Parameters ? ParamMap<MethodMap<TOAS, TPath>[TMethod]['parameters']> : {}) & // If there is any parameters defined in path but not in the parameters array, we should add them to the params
352
+ (TPath extends Checks$1.PathBrackets ? {
6
353
  /**
7
- * Relative path to save the TypeScript types.
8
- * When output is a file it will save all models inside that file else it will create a file per schema item.
9
- * @default 'types'
354
+ * Parameters defined in the path are required for this request.
355
+ *
356
+ * The value of `params` will be used to replace the path parameters.
357
+ *
358
+ * For example if path is `/todos/{id}` and `params` is `{ id: '1' }`, the path will be `/todos/1`
10
359
  */
11
- output?: string;
360
+ params: Record<ExtractPathParamsWithBrackets<TPath>, string | number | bigint | boolean>;
361
+ } : {}) & (TPath extends Checks$1.PathPattern ? {
362
+ /**
363
+ * Parameters defined in the path are required for this request.
364
+ *
365
+ * The value of `params` will be used to replace the path parameters.
366
+ *
367
+ * For example if path is `/todos/:id` and `params` is `{ id: '1' }`, the path will be `/todos/1`.
368
+ */
369
+ params: Record<ExtractPathParamsWithPattern<TPath>, string | number | bigint | boolean>;
370
+ } : {}) & // Respect security definitions in path object
371
+ SecurityParamsBySecurityRef<TOAS, MethodMap<TOAS, TPath>[TMethod]> & // Respect global security definitions
372
+ SecurityParamsBySecurityRef<TOAS, TOAS>;
373
+
374
+ declare namespace Checks {
375
+ type Content = {
376
+ content: any;
377
+ };
378
+ }
379
+ type ResponseSchemas<TOAS extends OasTypes.OASDocument, TPath extends keyof PathMap<TOAS>, TMethod extends keyof MethodMap<TOAS, TPath>, TStatus extends keyof StatusMap<TOAS, TPath, TMethod>> = StatusMap<TOAS, TPath, TMethod>[TStatus]['content'];
380
+ type JSONResponseSchema<TOAS extends OasTypes.OASDocument, TPath extends keyof PathMap<TOAS>, TMethod extends keyof MethodMap<TOAS, TPath>, TStatus extends keyof StatusMap<TOAS, TPath, TMethod>> = StatusMap<TOAS, TPath, TMethod>[TStatus] extends Checks.Content ? ResponseSchemas<TOAS, TPath, TMethod, TStatus>[keyof ResponseSchemas<TOAS, TPath, TMethod, TStatus>]['schema'] : StatusMap<TOAS, TPath, TMethod>[TStatus]['schema'];
381
+ type Response<TOAS extends OasTypes.OASDocument, TPath extends keyof PathMap<TOAS>, TMethod extends keyof MethodMap<TOAS, TPath>, TStatusCode extends keyof StatusMap<TOAS, TPath, TMethod> = 200> = FromSchema<JSONResponseSchema<TOAS, TPath, TMethod, TStatusCode>>;
382
+
383
+ type index_MethodMap<TOAS extends OasTypes.OASDocument, TPath extends keyof PathMap<TOAS>> = MethodMap<TOAS, TPath>;
384
+ type index_Model<TOAS extends OasTypes.OASDocument, TName extends TOAS extends Checks$4.ModelWithSchemas ? keyof TOAS['components']['schemas'] : TOAS extends Checks$4.ModelWithDefinitions ? keyof TOAS['definitions'] : never> = Model<TOAS, TName>;
385
+ type index_Parse<TOAS> = Parse<TOAS>;
386
+ type index_PathMap<TOAS extends OasTypes.OASDocument> = PathMap<TOAS>;
387
+ type index_RequestParams<TOAS extends OasTypes.OASDocument, TPath extends keyof PathMap<TOAS>, TMethod extends keyof MethodMap<TOAS, TPath>> = RequestParams<TOAS, TPath, TMethod>;
388
+ type index_Response<TOAS extends OasTypes.OASDocument, TPath extends keyof PathMap<TOAS>, TMethod extends keyof MethodMap<TOAS, TPath>, TStatusCode extends keyof StatusMap<TOAS, TPath, TMethod> = 200> = Response<TOAS, TPath, TMethod, TStatusCode>;
389
+ type index_StatusMap<TOAS extends OasTypes.OASDocument, TPath extends keyof PathMap<TOAS>, TMethod extends keyof MethodMap<TOAS, TPath>> = StatusMap<TOAS, TPath, TMethod>;
390
+ declare namespace index {
391
+ export type { index_MethodMap as MethodMap, index_Model as Model, index_Parse as Parse, index_PathMap as PathMap, index_RequestParams as RequestParams, index_Response as Response, index_StatusMap as StatusMap };
392
+ }
393
+
394
+ type Options = {
395
+ output?: {
396
+ /**
397
+ * Relative path to save the TypeScript types.
398
+ * When output is a file it will save all models inside that file else it will create a file per schema item.
399
+ * @default 'types'
400
+ */
401
+ path: string;
402
+ /**
403
+ * Name to be used for the `export * as {{exportAs}} from './'`
404
+ */
405
+ exportAs?: string;
406
+ };
12
407
  /**
13
408
  * Group the TypeScript types based on the provided name.
14
409
  */
@@ -26,10 +421,6 @@ type Options = {
26
421
  */
27
422
  output?: string;
28
423
  };
29
- /**
30
- * Name to be used for the `export * as {{exportAs}} from './`
31
- */
32
- exportAs?: string;
33
424
  /**
34
425
  * Array containing exclude paramaters to exclude/skip tags/operations/methods/paths.
35
426
  */
@@ -66,12 +457,19 @@ type Options = {
66
457
  */
67
458
  name?: (name: ResolveNameParams['name'], type?: ResolveNameParams['type']) => string;
68
459
  };
460
+ /**
461
+ * Export Oas object as Oas type with import type { Infer } from `@kubb/swagger-ts/infer`
462
+ * TODO add docs
463
+ * @beta
464
+ */
465
+ oasType?: boolean;
69
466
  };
70
467
  type ResolvedOptions = {
71
468
  enumType: NonNullable<Options['enumType']>;
72
469
  dateType: NonNullable<Options['dateType']>;
73
470
  optionalType: NonNullable<Options['optionalType']>;
74
471
  transformers: NonNullable<Options['transformers']>;
472
+ oasType: NonNullable<Options['oasType']>;
75
473
  usedEnumNames: Record<string, number>;
76
474
  };
77
475
  type FileMeta = {
@@ -91,4 +489,4 @@ declare const pluginName = "swagger-ts";
91
489
  declare const pluginKey: PluginOptions['key'];
92
490
  declare const definePlugin: (options: Options) => _kubb_core.KubbUserPluginWithLifeCycle<PluginOptions>;
93
491
 
94
- export { type FileMeta, type Options, type PluginOptions, definePlugin as default, definePlugin, pluginKey, pluginName };
492
+ export { type FileMeta, index as Infer, type Options, type PluginOptions, definePlugin as default, definePlugin, pluginKey, pluginName };