asphodelos 0.2.1 → 0.3.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.mts CHANGED
@@ -3,6 +3,10 @@ import { FormatConfig } from "oxfmt";
3
3
  import * as _$effect_Cause0 from "effect/Cause";
4
4
 
5
5
  //#region src/config/index.d.ts
6
+ /** OpenAPI 3.x Components Object kinds, in declaration / config-field order. */
7
+ declare const COMPONENT_KINDS: readonly ["schemas", "responses", "parameters", "examples", "requestBodies", "headers", "securitySchemes", "links", "callbacks", "pathItems", "mediaTypes"];
8
+ /** The client libraries a hooks file can be generated for, in config-field order. */
9
+ declare const HOOK_KINDS: readonly ["swr", "tanstack-query", "preact-query", "solid-query", "vue-query", "svelte-query", "angular-query"];
6
10
  declare const ConfigError_base: Schema.Class<ConfigError, Schema.TaggedStruct<"ConfigError", {
7
11
  readonly message: Schema.String;
8
12
  readonly notFound: Schema.optionalKey<Schema.Boolean>;
@@ -25,162 +29,192 @@ declare const ConfigSchema: Schema.Struct<{
25
29
  readonly prefix: Schema.optionalKey<Schema.String>;
26
30
  readonly format: Schema.optionalKey<Schema.declare<FormatConfig, FormatConfig>>;
27
31
  readonly port: Schema.optionalKey<Schema.withDecodingDefault<Schema.String, never>>;
28
- readonly pathAlias: Schema.optionalKey<Schema.withDecodingDefault<Schema.Boolean, never>>;
32
+ readonly pathAlias: Schema.optionalKey<Schema.String>;
29
33
  readonly integration: Schema.optionalKey<Schema.Boolean>;
34
+ readonly package: Schema.optionalKey<Schema.String>;
30
35
  readonly readonly: Schema.optionalKey<Schema.Boolean>;
31
36
  readonly components: Schema.optionalKey<Schema.Struct<{
32
37
  readonly output: Schema.optionalKey<Schema.declare<`${string}.ts`, `${string}.ts`>>;
38
+ readonly package: Schema.optionalKey<Schema.String>;
33
39
  readonly schemas: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
34
40
  readonly split: Schema.Literal<true>;
35
41
  readonly output: Schema.String;
36
42
  } & {
37
- import: Schema.optionalKey<Schema.String>;
43
+ import: Schema.optionalKey<Schema.Never>;
44
+ package: Schema.optionalKey<Schema.String>;
38
45
  exportTypes: Schema.withDecodingDefault<Schema.Boolean, never>;
39
46
  }>, Schema.Struct<{
40
47
  readonly split: Schema.withDecodingDefault<Schema.Literal<false>, never>;
41
48
  readonly output: Schema.decodeTo<Schema.String, Schema.String, never, never>;
42
49
  } & {
43
- import: Schema.optionalKey<Schema.String>;
50
+ import: Schema.optionalKey<Schema.Never>;
51
+ package: Schema.optionalKey<Schema.String>;
44
52
  exportTypes: Schema.withDecodingDefault<Schema.Boolean, never>;
45
53
  }>]>>;
46
54
  readonly responses: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
47
55
  readonly split: Schema.Literal<true>;
48
56
  readonly output: Schema.String;
49
57
  } & {
50
- import: Schema.optionalKey<Schema.String>;
58
+ import: Schema.optionalKey<Schema.Never>;
59
+ package: Schema.optionalKey<Schema.String>;
51
60
  exportTypes: Schema.withDecodingDefault<Schema.Boolean, never>;
52
61
  }>, Schema.Struct<{
53
62
  readonly split: Schema.withDecodingDefault<Schema.Literal<false>, never>;
54
63
  readonly output: Schema.decodeTo<Schema.String, Schema.String, never, never>;
55
64
  } & {
56
- import: Schema.optionalKey<Schema.String>;
65
+ import: Schema.optionalKey<Schema.Never>;
66
+ package: Schema.optionalKey<Schema.String>;
57
67
  exportTypes: Schema.withDecodingDefault<Schema.Boolean, never>;
58
68
  }>]>>;
59
69
  readonly parameters: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
60
70
  readonly split: Schema.Literal<true>;
61
71
  readonly output: Schema.String;
62
72
  } & {
63
- import: Schema.optionalKey<Schema.String>;
73
+ import: Schema.optionalKey<Schema.Never>;
74
+ package: Schema.optionalKey<Schema.String>;
64
75
  exportTypes: Schema.withDecodingDefault<Schema.Boolean, never>;
65
76
  }>, Schema.Struct<{
66
77
  readonly split: Schema.withDecodingDefault<Schema.Literal<false>, never>;
67
78
  readonly output: Schema.decodeTo<Schema.String, Schema.String, never, never>;
68
79
  } & {
69
- import: Schema.optionalKey<Schema.String>;
80
+ import: Schema.optionalKey<Schema.Never>;
81
+ package: Schema.optionalKey<Schema.String>;
70
82
  exportTypes: Schema.withDecodingDefault<Schema.Boolean, never>;
71
83
  }>]>>;
72
84
  readonly examples: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
73
85
  readonly split: Schema.Literal<true>;
74
86
  readonly output: Schema.String;
75
87
  } & {
76
- import: Schema.optionalKey<Schema.String>;
88
+ import: Schema.optionalKey<Schema.Never>;
89
+ package: Schema.optionalKey<Schema.String>;
77
90
  }>, Schema.Struct<{
78
91
  readonly split: Schema.withDecodingDefault<Schema.Literal<false>, never>;
79
92
  readonly output: Schema.decodeTo<Schema.String, Schema.String, never, never>;
80
93
  } & {
81
- import: Schema.optionalKey<Schema.String>;
94
+ import: Schema.optionalKey<Schema.Never>;
95
+ package: Schema.optionalKey<Schema.String>;
82
96
  }>]>>;
83
97
  readonly requestBodies: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
84
98
  readonly split: Schema.Literal<true>;
85
99
  readonly output: Schema.String;
86
100
  } & {
87
- import: Schema.optionalKey<Schema.String>;
101
+ import: Schema.optionalKey<Schema.Never>;
102
+ package: Schema.optionalKey<Schema.String>;
88
103
  exportTypes: Schema.withDecodingDefault<Schema.Boolean, never>;
89
104
  }>, Schema.Struct<{
90
105
  readonly split: Schema.withDecodingDefault<Schema.Literal<false>, never>;
91
106
  readonly output: Schema.decodeTo<Schema.String, Schema.String, never, never>;
92
107
  } & {
93
- import: Schema.optionalKey<Schema.String>;
108
+ import: Schema.optionalKey<Schema.Never>;
109
+ package: Schema.optionalKey<Schema.String>;
94
110
  exportTypes: Schema.withDecodingDefault<Schema.Boolean, never>;
95
111
  }>]>>;
96
112
  readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
97
113
  readonly split: Schema.Literal<true>;
98
114
  readonly output: Schema.String;
99
115
  } & {
100
- import: Schema.optionalKey<Schema.String>;
116
+ import: Schema.optionalKey<Schema.Never>;
117
+ package: Schema.optionalKey<Schema.String>;
101
118
  exportTypes: Schema.withDecodingDefault<Schema.Boolean, never>;
102
119
  }>, Schema.Struct<{
103
120
  readonly split: Schema.withDecodingDefault<Schema.Literal<false>, never>;
104
121
  readonly output: Schema.decodeTo<Schema.String, Schema.String, never, never>;
105
122
  } & {
106
- import: Schema.optionalKey<Schema.String>;
123
+ import: Schema.optionalKey<Schema.Never>;
124
+ package: Schema.optionalKey<Schema.String>;
107
125
  exportTypes: Schema.withDecodingDefault<Schema.Boolean, never>;
108
126
  }>]>>;
109
127
  readonly securitySchemes: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
110
128
  readonly split: Schema.Literal<true>;
111
129
  readonly output: Schema.String;
112
130
  } & {
113
- import: Schema.optionalKey<Schema.String>;
131
+ import: Schema.optionalKey<Schema.Never>;
132
+ package: Schema.optionalKey<Schema.String>;
114
133
  }>, Schema.Struct<{
115
134
  readonly split: Schema.withDecodingDefault<Schema.Literal<false>, never>;
116
135
  readonly output: Schema.decodeTo<Schema.String, Schema.String, never, never>;
117
136
  } & {
118
- import: Schema.optionalKey<Schema.String>;
137
+ import: Schema.optionalKey<Schema.Never>;
138
+ package: Schema.optionalKey<Schema.String>;
119
139
  }>]>>;
120
140
  readonly links: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
121
141
  readonly split: Schema.Literal<true>;
122
142
  readonly output: Schema.String;
123
143
  } & {
124
- import: Schema.optionalKey<Schema.String>;
144
+ import: Schema.optionalKey<Schema.Never>;
145
+ package: Schema.optionalKey<Schema.String>;
125
146
  }>, Schema.Struct<{
126
147
  readonly split: Schema.withDecodingDefault<Schema.Literal<false>, never>;
127
148
  readonly output: Schema.decodeTo<Schema.String, Schema.String, never, never>;
128
149
  } & {
129
- import: Schema.optionalKey<Schema.String>;
150
+ import: Schema.optionalKey<Schema.Never>;
151
+ package: Schema.optionalKey<Schema.String>;
130
152
  }>]>>;
131
153
  readonly callbacks: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
132
154
  readonly split: Schema.Literal<true>;
133
155
  readonly output: Schema.String;
134
156
  } & {
135
- import: Schema.optionalKey<Schema.String>;
157
+ import: Schema.optionalKey<Schema.Never>;
158
+ package: Schema.optionalKey<Schema.String>;
136
159
  }>, Schema.Struct<{
137
160
  readonly split: Schema.withDecodingDefault<Schema.Literal<false>, never>;
138
161
  readonly output: Schema.decodeTo<Schema.String, Schema.String, never, never>;
139
162
  } & {
140
- import: Schema.optionalKey<Schema.String>;
163
+ import: Schema.optionalKey<Schema.Never>;
164
+ package: Schema.optionalKey<Schema.String>;
141
165
  }>]>>;
142
166
  readonly pathItems: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
143
167
  readonly split: Schema.Literal<true>;
144
168
  readonly output: Schema.String;
145
169
  } & {
146
- import: Schema.optionalKey<Schema.String>;
170
+ import: Schema.optionalKey<Schema.Never>;
171
+ package: Schema.optionalKey<Schema.String>;
147
172
  }>, Schema.Struct<{
148
173
  readonly split: Schema.withDecodingDefault<Schema.Literal<false>, never>;
149
174
  readonly output: Schema.decodeTo<Schema.String, Schema.String, never, never>;
150
175
  } & {
151
- import: Schema.optionalKey<Schema.String>;
176
+ import: Schema.optionalKey<Schema.Never>;
177
+ package: Schema.optionalKey<Schema.String>;
152
178
  }>]>>;
153
179
  readonly mediaTypes: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
154
180
  readonly split: Schema.Literal<true>;
155
181
  readonly output: Schema.String;
156
182
  } & {
157
- import: Schema.optionalKey<Schema.String>;
183
+ import: Schema.optionalKey<Schema.Never>;
184
+ package: Schema.optionalKey<Schema.String>;
158
185
  exportTypes: Schema.withDecodingDefault<Schema.Boolean, never>;
159
186
  }>, Schema.Struct<{
160
187
  readonly split: Schema.withDecodingDefault<Schema.Literal<false>, never>;
161
188
  readonly output: Schema.decodeTo<Schema.String, Schema.String, never, never>;
162
189
  } & {
163
- import: Schema.optionalKey<Schema.String>;
190
+ import: Schema.optionalKey<Schema.Never>;
191
+ package: Schema.optionalKey<Schema.String>;
164
192
  exportTypes: Schema.withDecodingDefault<Schema.Boolean, never>;
165
193
  }>]>>;
166
194
  }>>;
195
+ readonly client: Schema.optionalKey<Schema.Struct<{
196
+ readonly output: Schema.declare<`${string}.ts`, `${string}.ts`>;
197
+ readonly import: Schema.optionalKey<Schema.Never>;
198
+ readonly package: Schema.optionalKey<Schema.String>;
199
+ readonly baseUrl: Schema.Union<readonly [Schema.Struct<{
200
+ readonly import: Schema.String;
201
+ readonly value: Schema.String;
202
+ }>, Schema.Struct<{
203
+ readonly env: Schema.String;
204
+ readonly source: Schema.withDecodingDefault<Schema.Literals<readonly ["import.meta.env", "process.env"]>, never>;
205
+ }>]>;
206
+ readonly sameOrigin: Schema.optionalKey<Schema.withDecodingDefault<Schema.Boolean, never>>;
207
+ }>>;
167
208
  readonly eden: Schema.optionalKey<Schema.Struct<{
168
- readonly output: Schema.String;
169
- readonly import: Schema.String;
170
- readonly client: Schema.withDecodingDefault<Schema.String, never>;
171
- readonly docs: Schema.optionalKey<Schema.withDecodingDefault<Schema.Boolean, never>>;
209
+ readonly docs: Schema.optionalKey<Schema.Never>;
210
+ readonly import: Schema.optionalKey<Schema.Never>;
211
+ readonly client: Schema.optionalKey<Schema.Never>;
212
+ readonly output: Schema.decodeTo<Schema.String, Schema.String, never, never>;
172
213
  }>>;
173
214
  readonly types: Schema.optionalKey<Schema.Struct<{
174
215
  readonly output: Schema.declare<`${string}.ts`, `${string}.ts`>;
175
216
  }>>;
176
- readonly test: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
177
- readonly split: Schema.Literal<true>;
178
- readonly pathAlias: Schema.optionalKey<Schema.String>;
179
- }>, Schema.Struct<{
180
- readonly split: Schema.withDecodingDefault<Schema.Literal<false>, never>;
181
- readonly output: Schema.decodeTo<Schema.String, Schema.String, never, never>;
182
- readonly pathAlias: Schema.optionalKey<Schema.String>;
183
- }>]>>;
217
+ readonly test: Schema.optionalKey<Schema.Never>;
184
218
  readonly mock: Schema.optionalKey<Schema.Struct<{
185
219
  readonly output: Schema.decodeTo<Schema.String, Schema.String, never, never>;
186
220
  readonly useExamples: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Literal<"all">]>>;
@@ -193,97 +227,48 @@ declare const ConfigSchema: Schema.Struct<{
193
227
  readonly arrayMin: Schema.optionalKey<Schema.Number>;
194
228
  readonly arrayMax: Schema.optionalKey<Schema.Number>;
195
229
  }>>;
196
- readonly swr: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
197
- readonly split: Schema.Literal<true>;
198
- readonly output: Schema.String;
199
- } & {
200
- import: Schema.String;
201
- client: Schema.withDecodingDefault<Schema.String, never>;
202
- }>, Schema.Struct<{
203
- readonly split: Schema.withDecodingDefault<Schema.Literal<false>, never>;
230
+ readonly swr: Schema.optionalKey<Schema.Struct<{
231
+ readonly split: Schema.optionalKey<Schema.Never>;
232
+ readonly import: Schema.optionalKey<Schema.Never>;
233
+ readonly client: Schema.optionalKey<Schema.Never>;
204
234
  readonly output: Schema.decodeTo<Schema.String, Schema.String, never, never>;
205
- } & {
206
- import: Schema.String;
207
- client: Schema.withDecodingDefault<Schema.String, never>;
208
- }>]>>;
209
- readonly 'tanstack-query': Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
210
- readonly split: Schema.Literal<true>;
211
- readonly output: Schema.String;
212
- } & {
213
- import: Schema.String;
214
- client: Schema.withDecodingDefault<Schema.String, never>;
215
- }>, Schema.Struct<{
216
- readonly split: Schema.withDecodingDefault<Schema.Literal<false>, never>;
235
+ }>>;
236
+ readonly 'tanstack-query': Schema.optionalKey<Schema.Struct<{
237
+ readonly split: Schema.optionalKey<Schema.Never>;
238
+ readonly import: Schema.optionalKey<Schema.Never>;
239
+ readonly client: Schema.optionalKey<Schema.Never>;
217
240
  readonly output: Schema.decodeTo<Schema.String, Schema.String, never, never>;
218
- } & {
219
- import: Schema.String;
220
- client: Schema.withDecodingDefault<Schema.String, never>;
221
- }>]>>;
222
- readonly 'preact-query': Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
223
- readonly split: Schema.Literal<true>;
224
- readonly output: Schema.String;
225
- } & {
226
- import: Schema.String;
227
- client: Schema.withDecodingDefault<Schema.String, never>;
228
- }>, Schema.Struct<{
229
- readonly split: Schema.withDecodingDefault<Schema.Literal<false>, never>;
241
+ }>>;
242
+ readonly 'preact-query': Schema.optionalKey<Schema.Struct<{
243
+ readonly split: Schema.optionalKey<Schema.Never>;
244
+ readonly import: Schema.optionalKey<Schema.Never>;
245
+ readonly client: Schema.optionalKey<Schema.Never>;
230
246
  readonly output: Schema.decodeTo<Schema.String, Schema.String, never, never>;
231
- } & {
232
- import: Schema.String;
233
- client: Schema.withDecodingDefault<Schema.String, never>;
234
- }>]>>;
235
- readonly 'solid-query': Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
236
- readonly split: Schema.Literal<true>;
237
- readonly output: Schema.String;
238
- } & {
239
- import: Schema.String;
240
- client: Schema.withDecodingDefault<Schema.String, never>;
241
- }>, Schema.Struct<{
242
- readonly split: Schema.withDecodingDefault<Schema.Literal<false>, never>;
247
+ }>>;
248
+ readonly 'solid-query': Schema.optionalKey<Schema.Struct<{
249
+ readonly split: Schema.optionalKey<Schema.Never>;
250
+ readonly import: Schema.optionalKey<Schema.Never>;
251
+ readonly client: Schema.optionalKey<Schema.Never>;
243
252
  readonly output: Schema.decodeTo<Schema.String, Schema.String, never, never>;
244
- } & {
245
- import: Schema.String;
246
- client: Schema.withDecodingDefault<Schema.String, never>;
247
- }>]>>;
248
- readonly 'vue-query': Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
249
- readonly split: Schema.Literal<true>;
250
- readonly output: Schema.String;
251
- } & {
252
- import: Schema.String;
253
- client: Schema.withDecodingDefault<Schema.String, never>;
254
- }>, Schema.Struct<{
255
- readonly split: Schema.withDecodingDefault<Schema.Literal<false>, never>;
253
+ }>>;
254
+ readonly 'vue-query': Schema.optionalKey<Schema.Struct<{
255
+ readonly split: Schema.optionalKey<Schema.Never>;
256
+ readonly import: Schema.optionalKey<Schema.Never>;
257
+ readonly client: Schema.optionalKey<Schema.Never>;
256
258
  readonly output: Schema.decodeTo<Schema.String, Schema.String, never, never>;
257
- } & {
258
- import: Schema.String;
259
- client: Schema.withDecodingDefault<Schema.String, never>;
260
- }>]>>;
261
- readonly 'svelte-query': Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
262
- readonly split: Schema.Literal<true>;
263
- readonly output: Schema.String;
264
- } & {
265
- import: Schema.String;
266
- client: Schema.withDecodingDefault<Schema.String, never>;
267
- }>, Schema.Struct<{
268
- readonly split: Schema.withDecodingDefault<Schema.Literal<false>, never>;
259
+ }>>;
260
+ readonly 'svelte-query': Schema.optionalKey<Schema.Struct<{
261
+ readonly split: Schema.optionalKey<Schema.Never>;
262
+ readonly import: Schema.optionalKey<Schema.Never>;
263
+ readonly client: Schema.optionalKey<Schema.Never>;
269
264
  readonly output: Schema.decodeTo<Schema.String, Schema.String, never, never>;
270
- } & {
271
- import: Schema.String;
272
- client: Schema.withDecodingDefault<Schema.String, never>;
273
- }>]>>;
274
- readonly 'angular-query': Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
275
- readonly split: Schema.Literal<true>;
276
- readonly output: Schema.String;
277
- } & {
278
- import: Schema.String;
279
- client: Schema.withDecodingDefault<Schema.String, never>;
280
- }>, Schema.Struct<{
281
- readonly split: Schema.withDecodingDefault<Schema.Literal<false>, never>;
265
+ }>>;
266
+ readonly 'angular-query': Schema.optionalKey<Schema.Struct<{
267
+ readonly split: Schema.optionalKey<Schema.Never>;
268
+ readonly import: Schema.optionalKey<Schema.Never>;
269
+ readonly client: Schema.optionalKey<Schema.Never>;
282
270
  readonly output: Schema.decodeTo<Schema.String, Schema.String, never, never>;
283
- } & {
284
- import: Schema.String;
285
- client: Schema.withDecodingDefault<Schema.String, never>;
286
- }>]>>;
271
+ }>>;
287
272
  }>;
288
273
  type Config = typeof ConfigSchema.Type;
289
274
  /**
@@ -294,144 +279,216 @@ type Config = typeof ConfigSchema.Type;
294
279
  */
295
280
  declare function parseConfig(config: unknown): Effect.Effect<{
296
281
  readonly input: `${string}.yaml` | `${string}.json` | `${string}.tsp`;
282
+ readonly swr?: {
283
+ readonly output: string;
284
+ readonly split?: undefined;
285
+ readonly import?: undefined;
286
+ readonly client?: undefined;
287
+ } | undefined;
288
+ readonly 'tanstack-query'?: {
289
+ readonly output: string;
290
+ readonly split?: undefined;
291
+ readonly import?: undefined;
292
+ readonly client?: undefined;
293
+ } | undefined;
294
+ readonly 'preact-query'?: {
295
+ readonly output: string;
296
+ readonly split?: undefined;
297
+ readonly import?: undefined;
298
+ readonly client?: undefined;
299
+ } | undefined;
300
+ readonly 'solid-query'?: {
301
+ readonly output: string;
302
+ readonly split?: undefined;
303
+ readonly import?: undefined;
304
+ readonly client?: undefined;
305
+ } | undefined;
306
+ readonly 'vue-query'?: {
307
+ readonly output: string;
308
+ readonly split?: undefined;
309
+ readonly import?: undefined;
310
+ readonly client?: undefined;
311
+ } | undefined;
312
+ readonly 'svelte-query'?: {
313
+ readonly output: string;
314
+ readonly split?: undefined;
315
+ readonly import?: undefined;
316
+ readonly client?: undefined;
317
+ } | undefined;
318
+ readonly 'angular-query'?: {
319
+ readonly output: string;
320
+ readonly split?: undefined;
321
+ readonly import?: undefined;
322
+ readonly client?: undefined;
323
+ } | undefined;
297
324
  readonly readonly?: boolean | undefined;
298
325
  readonly output?: `${string}.ts` | undefined;
299
326
  readonly prefix?: string | undefined;
300
327
  readonly format?: FormatConfig | undefined;
301
328
  readonly port?: string | undefined;
302
- readonly pathAlias?: boolean | undefined;
329
+ readonly pathAlias?: string | undefined;
303
330
  readonly integration?: boolean | undefined;
331
+ readonly package?: string | undefined;
304
332
  readonly components?: {
305
- readonly output?: `${string}.ts` | undefined;
306
333
  readonly schemas?: {
307
334
  readonly split: true;
308
335
  readonly output: string;
309
336
  readonly exportTypes: boolean;
310
- readonly import?: string | undefined;
337
+ readonly package?: string | undefined;
338
+ readonly import?: undefined;
311
339
  } | {
312
340
  readonly split: false;
313
341
  readonly output: string;
314
342
  readonly exportTypes: boolean;
315
- readonly import?: string | undefined;
343
+ readonly package?: string | undefined;
344
+ readonly import?: undefined;
316
345
  } | undefined;
317
346
  readonly responses?: {
318
347
  readonly split: true;
319
348
  readonly output: string;
320
349
  readonly exportTypes: boolean;
321
- readonly import?: string | undefined;
350
+ readonly package?: string | undefined;
351
+ readonly import?: undefined;
322
352
  } | {
323
353
  readonly split: false;
324
354
  readonly output: string;
325
355
  readonly exportTypes: boolean;
326
- readonly import?: string | undefined;
356
+ readonly package?: string | undefined;
357
+ readonly import?: undefined;
327
358
  } | undefined;
328
359
  readonly parameters?: {
329
360
  readonly split: true;
330
361
  readonly output: string;
331
362
  readonly exportTypes: boolean;
332
- readonly import?: string | undefined;
363
+ readonly package?: string | undefined;
364
+ readonly import?: undefined;
333
365
  } | {
334
366
  readonly split: false;
335
367
  readonly output: string;
336
368
  readonly exportTypes: boolean;
337
- readonly import?: string | undefined;
369
+ readonly package?: string | undefined;
370
+ readonly import?: undefined;
338
371
  } | undefined;
339
372
  readonly examples?: {
340
373
  readonly split: true;
341
374
  readonly output: string;
342
- readonly import?: string | undefined;
375
+ readonly package?: string | undefined;
376
+ readonly import?: undefined;
343
377
  } | {
344
378
  readonly split: false;
345
379
  readonly output: string;
346
- readonly import?: string | undefined;
380
+ readonly package?: string | undefined;
381
+ readonly import?: undefined;
347
382
  } | undefined;
348
383
  readonly requestBodies?: {
349
384
  readonly split: true;
350
385
  readonly output: string;
351
386
  readonly exportTypes: boolean;
352
- readonly import?: string | undefined;
387
+ readonly package?: string | undefined;
388
+ readonly import?: undefined;
353
389
  } | {
354
390
  readonly split: false;
355
391
  readonly output: string;
356
392
  readonly exportTypes: boolean;
357
- readonly import?: string | undefined;
393
+ readonly package?: string | undefined;
394
+ readonly import?: undefined;
358
395
  } | undefined;
359
396
  readonly headers?: {
360
397
  readonly split: true;
361
398
  readonly output: string;
362
399
  readonly exportTypes: boolean;
363
- readonly import?: string | undefined;
400
+ readonly package?: string | undefined;
401
+ readonly import?: undefined;
364
402
  } | {
365
403
  readonly split: false;
366
404
  readonly output: string;
367
405
  readonly exportTypes: boolean;
368
- readonly import?: string | undefined;
406
+ readonly package?: string | undefined;
407
+ readonly import?: undefined;
369
408
  } | undefined;
370
409
  readonly securitySchemes?: {
371
410
  readonly split: true;
372
411
  readonly output: string;
373
- readonly import?: string | undefined;
412
+ readonly package?: string | undefined;
413
+ readonly import?: undefined;
374
414
  } | {
375
415
  readonly split: false;
376
416
  readonly output: string;
377
- readonly import?: string | undefined;
417
+ readonly package?: string | undefined;
418
+ readonly import?: undefined;
378
419
  } | undefined;
379
420
  readonly links?: {
380
421
  readonly split: true;
381
422
  readonly output: string;
382
- readonly import?: string | undefined;
423
+ readonly package?: string | undefined;
424
+ readonly import?: undefined;
383
425
  } | {
384
426
  readonly split: false;
385
427
  readonly output: string;
386
- readonly import?: string | undefined;
428
+ readonly package?: string | undefined;
429
+ readonly import?: undefined;
387
430
  } | undefined;
388
431
  readonly callbacks?: {
389
432
  readonly split: true;
390
433
  readonly output: string;
391
- readonly import?: string | undefined;
434
+ readonly package?: string | undefined;
435
+ readonly import?: undefined;
392
436
  } | {
393
437
  readonly split: false;
394
438
  readonly output: string;
395
- readonly import?: string | undefined;
439
+ readonly package?: string | undefined;
440
+ readonly import?: undefined;
396
441
  } | undefined;
397
442
  readonly pathItems?: {
398
443
  readonly split: true;
399
444
  readonly output: string;
400
- readonly import?: string | undefined;
445
+ readonly package?: string | undefined;
446
+ readonly import?: undefined;
401
447
  } | {
402
448
  readonly split: false;
403
449
  readonly output: string;
404
- readonly import?: string | undefined;
450
+ readonly package?: string | undefined;
451
+ readonly import?: undefined;
405
452
  } | undefined;
406
453
  readonly mediaTypes?: {
407
454
  readonly split: true;
408
455
  readonly output: string;
409
456
  readonly exportTypes: boolean;
410
- readonly import?: string | undefined;
457
+ readonly package?: string | undefined;
458
+ readonly import?: undefined;
411
459
  } | {
412
460
  readonly split: false;
413
461
  readonly output: string;
414
462
  readonly exportTypes: boolean;
415
- readonly import?: string | undefined;
463
+ readonly package?: string | undefined;
464
+ readonly import?: undefined;
416
465
  } | undefined;
466
+ readonly output?: `${string}.ts` | undefined;
467
+ readonly package?: string | undefined;
468
+ } | undefined;
469
+ readonly client?: {
470
+ readonly output: `${string}.ts`;
471
+ readonly baseUrl: {
472
+ readonly import: string;
473
+ readonly value: string;
474
+ } | {
475
+ readonly env: string;
476
+ readonly source: "import.meta.env" | "process.env";
477
+ };
478
+ readonly package?: string | undefined;
479
+ readonly import?: undefined;
480
+ readonly sameOrigin?: boolean | undefined;
417
481
  } | undefined;
418
482
  readonly eden?: {
419
483
  readonly output: string;
420
- readonly import: string;
421
- readonly client: string;
422
- readonly docs?: boolean | undefined;
484
+ readonly import?: undefined;
485
+ readonly client?: undefined;
486
+ readonly docs?: undefined;
423
487
  } | undefined;
424
488
  readonly types?: {
425
489
  readonly output: `${string}.ts`;
426
490
  } | undefined;
427
- readonly test?: {
428
- readonly split: true;
429
- readonly pathAlias?: string | undefined;
430
- } | {
431
- readonly split: false;
432
- readonly output: string;
433
- readonly pathAlias?: string | undefined;
434
- } | undefined;
491
+ readonly test?: undefined;
435
492
  readonly mock?: {
436
493
  readonly output: string;
437
494
  readonly useExamples?: boolean | "all" | undefined;
@@ -444,461 +501,226 @@ declare function parseConfig(config: unknown): Effect.Effect<{
444
501
  readonly arrayMin?: number | undefined;
445
502
  readonly arrayMax?: number | undefined;
446
503
  } | undefined;
504
+ }, ConfigError, never>;
505
+ /**
506
+ * Loads and validates a config file, resolved against the current directory.
507
+ *
508
+ * `reload` re-reads a config that has already been imported — what `--watch` needs after the file
509
+ * changes, and nothing else should ask for, since every reload leaves another copy of the module
510
+ * behind.
511
+ */
512
+ declare function readConfig(configPath?: string, reload?: boolean): Effect.Effect<{
513
+ readonly input: `${string}.yaml` | `${string}.json` | `${string}.tsp`;
447
514
  readonly swr?: {
448
- readonly split: true;
449
515
  readonly output: string;
450
- readonly import: string;
451
- readonly client: string;
452
- } | {
453
- readonly split: false;
454
- readonly output: string;
455
- readonly import: string;
456
- readonly client: string;
516
+ readonly split?: undefined;
517
+ readonly import?: undefined;
518
+ readonly client?: undefined;
457
519
  } | undefined;
458
520
  readonly 'tanstack-query'?: {
459
- readonly split: true;
460
- readonly output: string;
461
- readonly import: string;
462
- readonly client: string;
463
- } | {
464
- readonly split: false;
465
521
  readonly output: string;
466
- readonly import: string;
467
- readonly client: string;
522
+ readonly split?: undefined;
523
+ readonly import?: undefined;
524
+ readonly client?: undefined;
468
525
  } | undefined;
469
526
  readonly 'preact-query'?: {
470
- readonly split: true;
471
527
  readonly output: string;
472
- readonly import: string;
473
- readonly client: string;
474
- } | {
475
- readonly split: false;
476
- readonly output: string;
477
- readonly import: string;
478
- readonly client: string;
528
+ readonly split?: undefined;
529
+ readonly import?: undefined;
530
+ readonly client?: undefined;
479
531
  } | undefined;
480
532
  readonly 'solid-query'?: {
481
- readonly split: true;
482
- readonly output: string;
483
- readonly import: string;
484
- readonly client: string;
485
- } | {
486
- readonly split: false;
487
533
  readonly output: string;
488
- readonly import: string;
489
- readonly client: string;
534
+ readonly split?: undefined;
535
+ readonly import?: undefined;
536
+ readonly client?: undefined;
490
537
  } | undefined;
491
538
  readonly 'vue-query'?: {
492
- readonly split: true;
493
539
  readonly output: string;
494
- readonly import: string;
495
- readonly client: string;
496
- } | {
497
- readonly split: false;
498
- readonly output: string;
499
- readonly import: string;
500
- readonly client: string;
540
+ readonly split?: undefined;
541
+ readonly import?: undefined;
542
+ readonly client?: undefined;
501
543
  } | undefined;
502
544
  readonly 'svelte-query'?: {
503
- readonly split: true;
504
- readonly output: string;
505
- readonly import: string;
506
- readonly client: string;
507
- } | {
508
- readonly split: false;
509
545
  readonly output: string;
510
- readonly import: string;
511
- readonly client: string;
546
+ readonly split?: undefined;
547
+ readonly import?: undefined;
548
+ readonly client?: undefined;
512
549
  } | undefined;
513
550
  readonly 'angular-query'?: {
514
- readonly split: true;
515
- readonly output: string;
516
- readonly import: string;
517
- readonly client: string;
518
- } | {
519
- readonly split: false;
520
551
  readonly output: string;
521
- readonly import: string;
522
- readonly client: string;
552
+ readonly split?: undefined;
553
+ readonly import?: undefined;
554
+ readonly client?: undefined;
523
555
  } | undefined;
524
- }, ConfigError, never>;
525
- /**
526
- * Loads and validates a config file, resolved against the current directory.
527
- *
528
- * `reload` re-reads a config that has already been imported — what `--watch` needs after the file
529
- * changes, and nothing else should ask for, since every reload leaves another copy of the module
530
- * behind.
531
- */
532
- declare function readConfig(configPath?: string, reload?: boolean): Effect.Effect<{
533
- readonly input: `${string}.yaml` | `${string}.json` | `${string}.tsp`;
534
556
  readonly readonly?: boolean | undefined;
535
557
  readonly output?: `${string}.ts` | undefined;
536
558
  readonly prefix?: string | undefined;
537
559
  readonly format?: FormatConfig | undefined;
538
560
  readonly port?: string | undefined;
539
- readonly pathAlias?: boolean | undefined;
561
+ readonly pathAlias?: string | undefined;
540
562
  readonly integration?: boolean | undefined;
563
+ readonly package?: string | undefined;
541
564
  readonly components?: {
542
- readonly output?: `${string}.ts` | undefined;
543
565
  readonly schemas?: {
544
566
  readonly split: true;
545
567
  readonly output: string;
546
568
  readonly exportTypes: boolean;
547
- readonly import?: string | undefined;
569
+ readonly package?: string | undefined;
570
+ readonly import?: undefined;
548
571
  } | {
549
572
  readonly split: false;
550
573
  readonly output: string;
551
574
  readonly exportTypes: boolean;
552
- readonly import?: string | undefined;
575
+ readonly package?: string | undefined;
576
+ readonly import?: undefined;
553
577
  } | undefined;
554
578
  readonly responses?: {
555
579
  readonly split: true;
556
580
  readonly output: string;
557
581
  readonly exportTypes: boolean;
558
- readonly import?: string | undefined;
582
+ readonly package?: string | undefined;
583
+ readonly import?: undefined;
559
584
  } | {
560
585
  readonly split: false;
561
586
  readonly output: string;
562
587
  readonly exportTypes: boolean;
563
- readonly import?: string | undefined;
588
+ readonly package?: string | undefined;
589
+ readonly import?: undefined;
564
590
  } | undefined;
565
591
  readonly parameters?: {
566
592
  readonly split: true;
567
593
  readonly output: string;
568
594
  readonly exportTypes: boolean;
569
- readonly import?: string | undefined;
595
+ readonly package?: string | undefined;
596
+ readonly import?: undefined;
570
597
  } | {
571
598
  readonly split: false;
572
599
  readonly output: string;
573
600
  readonly exportTypes: boolean;
574
- readonly import?: string | undefined;
601
+ readonly package?: string | undefined;
602
+ readonly import?: undefined;
575
603
  } | undefined;
576
604
  readonly examples?: {
577
605
  readonly split: true;
578
606
  readonly output: string;
579
- readonly import?: string | undefined;
607
+ readonly package?: string | undefined;
608
+ readonly import?: undefined;
580
609
  } | {
581
610
  readonly split: false;
582
611
  readonly output: string;
583
- readonly import?: string | undefined;
612
+ readonly package?: string | undefined;
613
+ readonly import?: undefined;
584
614
  } | undefined;
585
615
  readonly requestBodies?: {
586
616
  readonly split: true;
587
617
  readonly output: string;
588
618
  readonly exportTypes: boolean;
589
- readonly import?: string | undefined;
619
+ readonly package?: string | undefined;
620
+ readonly import?: undefined;
590
621
  } | {
591
622
  readonly split: false;
592
623
  readonly output: string;
593
624
  readonly exportTypes: boolean;
594
- readonly import?: string | undefined;
625
+ readonly package?: string | undefined;
626
+ readonly import?: undefined;
595
627
  } | undefined;
596
628
  readonly headers?: {
597
629
  readonly split: true;
598
630
  readonly output: string;
599
631
  readonly exportTypes: boolean;
600
- readonly import?: string | undefined;
632
+ readonly package?: string | undefined;
633
+ readonly import?: undefined;
601
634
  } | {
602
635
  readonly split: false;
603
636
  readonly output: string;
604
637
  readonly exportTypes: boolean;
605
- readonly import?: string | undefined;
638
+ readonly package?: string | undefined;
639
+ readonly import?: undefined;
606
640
  } | undefined;
607
641
  readonly securitySchemes?: {
608
642
  readonly split: true;
609
643
  readonly output: string;
610
- readonly import?: string | undefined;
644
+ readonly package?: string | undefined;
645
+ readonly import?: undefined;
611
646
  } | {
612
647
  readonly split: false;
613
648
  readonly output: string;
614
- readonly import?: string | undefined;
649
+ readonly package?: string | undefined;
650
+ readonly import?: undefined;
615
651
  } | undefined;
616
652
  readonly links?: {
617
653
  readonly split: true;
618
654
  readonly output: string;
619
- readonly import?: string | undefined;
655
+ readonly package?: string | undefined;
656
+ readonly import?: undefined;
620
657
  } | {
621
658
  readonly split: false;
622
659
  readonly output: string;
623
- readonly import?: string | undefined;
660
+ readonly package?: string | undefined;
661
+ readonly import?: undefined;
624
662
  } | undefined;
625
663
  readonly callbacks?: {
626
664
  readonly split: true;
627
665
  readonly output: string;
628
- readonly import?: string | undefined;
666
+ readonly package?: string | undefined;
667
+ readonly import?: undefined;
629
668
  } | {
630
669
  readonly split: false;
631
670
  readonly output: string;
632
- readonly import?: string | undefined;
671
+ readonly package?: string | undefined;
672
+ readonly import?: undefined;
633
673
  } | undefined;
634
674
  readonly pathItems?: {
635
675
  readonly split: true;
636
676
  readonly output: string;
637
- readonly import?: string | undefined;
677
+ readonly package?: string | undefined;
678
+ readonly import?: undefined;
638
679
  } | {
639
680
  readonly split: false;
640
681
  readonly output: string;
641
- readonly import?: string | undefined;
682
+ readonly package?: string | undefined;
683
+ readonly import?: undefined;
642
684
  } | undefined;
643
685
  readonly mediaTypes?: {
644
686
  readonly split: true;
645
687
  readonly output: string;
646
688
  readonly exportTypes: boolean;
647
- readonly import?: string | undefined;
689
+ readonly package?: string | undefined;
690
+ readonly import?: undefined;
648
691
  } | {
649
692
  readonly split: false;
650
693
  readonly output: string;
651
694
  readonly exportTypes: boolean;
652
- readonly import?: string | undefined;
695
+ readonly package?: string | undefined;
696
+ readonly import?: undefined;
653
697
  } | undefined;
698
+ readonly output?: `${string}.ts` | undefined;
699
+ readonly package?: string | undefined;
654
700
  } | undefined;
655
- readonly eden?: {
656
- readonly output: string;
657
- readonly import: string;
658
- readonly client: string;
659
- readonly docs?: boolean | undefined;
660
- } | undefined;
661
- readonly types?: {
701
+ readonly client?: {
662
702
  readonly output: `${string}.ts`;
663
- } | undefined;
664
- readonly test?: {
665
- readonly split: true;
666
- readonly pathAlias?: string | undefined;
667
- } | {
668
- readonly split: false;
669
- readonly output: string;
670
- readonly pathAlias?: string | undefined;
671
- } | undefined;
672
- readonly mock?: {
673
- readonly output: string;
674
- readonly useExamples?: boolean | "all" | undefined;
675
- readonly seed?: number | readonly [number, ...number[]] | undefined;
676
- readonly locale?: string | undefined;
677
- readonly delay?: number | false | {
678
- readonly min: number;
679
- readonly max: number;
680
- } | undefined;
681
- readonly arrayMin?: number | undefined;
682
- readonly arrayMax?: number | undefined;
683
- } | undefined;
684
- readonly swr?: {
685
- readonly split: true;
686
- readonly output: string;
687
- readonly import: string;
688
- readonly client: string;
689
- } | {
690
- readonly split: false;
691
- readonly output: string;
692
- readonly import: string;
693
- readonly client: string;
694
- } | undefined;
695
- readonly 'tanstack-query'?: {
696
- readonly split: true;
697
- readonly output: string;
698
- readonly import: string;
699
- readonly client: string;
700
- } | {
701
- readonly split: false;
702
- readonly output: string;
703
- readonly import: string;
704
- readonly client: string;
705
- } | undefined;
706
- readonly 'preact-query'?: {
707
- readonly split: true;
708
- readonly output: string;
709
- readonly import: string;
710
- readonly client: string;
711
- } | {
712
- readonly split: false;
713
- readonly output: string;
714
- readonly import: string;
715
- readonly client: string;
716
- } | undefined;
717
- readonly 'solid-query'?: {
718
- readonly split: true;
719
- readonly output: string;
720
- readonly import: string;
721
- readonly client: string;
722
- } | {
723
- readonly split: false;
724
- readonly output: string;
725
- readonly import: string;
726
- readonly client: string;
727
- } | undefined;
728
- readonly 'vue-query'?: {
729
- readonly split: true;
730
- readonly output: string;
731
- readonly import: string;
732
- readonly client: string;
733
- } | {
734
- readonly split: false;
735
- readonly output: string;
736
- readonly import: string;
737
- readonly client: string;
738
- } | undefined;
739
- readonly 'svelte-query'?: {
740
- readonly split: true;
741
- readonly output: string;
742
- readonly import: string;
743
- readonly client: string;
744
- } | {
745
- readonly split: false;
746
- readonly output: string;
747
- readonly import: string;
748
- readonly client: string;
749
- } | undefined;
750
- readonly 'angular-query'?: {
751
- readonly split: true;
752
- readonly output: string;
753
- readonly import: string;
754
- readonly client: string;
755
- } | {
756
- readonly split: false;
757
- readonly output: string;
758
- readonly import: string;
759
- readonly client: string;
760
- } | undefined;
761
- }, ConfigError, FileSystem.FileSystem>;
762
- declare function defineConfig(config: typeof ConfigSchema.Encoded): {
763
- readonly input: `${string}.yaml` | `${string}.json` | `${string}.tsp`;
764
- readonly readonly?: boolean | undefined;
765
- readonly output?: `${string}.ts` | undefined;
766
- readonly prefix?: string | undefined;
767
- readonly format?: FormatConfig | undefined;
768
- readonly port?: string | undefined;
769
- readonly pathAlias?: boolean | undefined;
770
- readonly integration?: boolean | undefined;
771
- readonly components?: {
772
- readonly output?: `${string}.ts` | undefined;
773
- readonly schemas?: {
774
- readonly split: true;
775
- readonly output: string;
776
- readonly import?: string | undefined;
777
- readonly exportTypes?: boolean | undefined;
778
- } | {
779
- readonly output: string;
780
- readonly split?: false | undefined;
781
- readonly import?: string | undefined;
782
- readonly exportTypes?: boolean | undefined;
783
- } | undefined;
784
- readonly responses?: {
785
- readonly split: true;
786
- readonly output: string;
787
- readonly import?: string | undefined;
788
- readonly exportTypes?: boolean | undefined;
789
- } | {
790
- readonly output: string;
791
- readonly split?: false | undefined;
792
- readonly import?: string | undefined;
793
- readonly exportTypes?: boolean | undefined;
794
- } | undefined;
795
- readonly parameters?: {
796
- readonly split: true;
797
- readonly output: string;
798
- readonly import?: string | undefined;
799
- readonly exportTypes?: boolean | undefined;
800
- } | {
801
- readonly output: string;
802
- readonly split?: false | undefined;
803
- readonly import?: string | undefined;
804
- readonly exportTypes?: boolean | undefined;
805
- } | undefined;
806
- readonly examples?: {
807
- readonly split: true;
808
- readonly output: string;
809
- readonly import?: string | undefined;
810
- } | {
811
- readonly output: string;
812
- readonly split?: false | undefined;
813
- readonly import?: string | undefined;
814
- } | undefined;
815
- readonly requestBodies?: {
816
- readonly split: true;
817
- readonly output: string;
818
- readonly import?: string | undefined;
819
- readonly exportTypes?: boolean | undefined;
820
- } | {
821
- readonly output: string;
822
- readonly split?: false | undefined;
823
- readonly import?: string | undefined;
824
- readonly exportTypes?: boolean | undefined;
825
- } | undefined;
826
- readonly headers?: {
827
- readonly split: true;
828
- readonly output: string;
829
- readonly import?: string | undefined;
830
- readonly exportTypes?: boolean | undefined;
831
- } | {
832
- readonly output: string;
833
- readonly split?: false | undefined;
834
- readonly import?: string | undefined;
835
- readonly exportTypes?: boolean | undefined;
836
- } | undefined;
837
- readonly securitySchemes?: {
838
- readonly split: true;
839
- readonly output: string;
840
- readonly import?: string | undefined;
841
- } | {
842
- readonly output: string;
843
- readonly split?: false | undefined;
844
- readonly import?: string | undefined;
845
- } | undefined;
846
- readonly links?: {
847
- readonly split: true;
848
- readonly output: string;
849
- readonly import?: string | undefined;
703
+ readonly baseUrl: {
704
+ readonly import: string;
705
+ readonly value: string;
850
706
  } | {
851
- readonly output: string;
852
- readonly split?: false | undefined;
853
- readonly import?: string | undefined;
854
- } | undefined;
855
- readonly callbacks?: {
856
- readonly split: true;
857
- readonly output: string;
858
- readonly import?: string | undefined;
859
- } | {
860
- readonly output: string;
861
- readonly split?: false | undefined;
862
- readonly import?: string | undefined;
863
- } | undefined;
864
- readonly pathItems?: {
865
- readonly split: true;
866
- readonly output: string;
867
- readonly import?: string | undefined;
868
- } | {
869
- readonly output: string;
870
- readonly split?: false | undefined;
871
- readonly import?: string | undefined;
872
- } | undefined;
873
- readonly mediaTypes?: {
874
- readonly split: true;
875
- readonly output: string;
876
- readonly import?: string | undefined;
877
- readonly exportTypes?: boolean | undefined;
878
- } | {
879
- readonly output: string;
880
- readonly split?: false | undefined;
881
- readonly import?: string | undefined;
882
- readonly exportTypes?: boolean | undefined;
883
- } | undefined;
707
+ readonly env: string;
708
+ readonly source: "import.meta.env" | "process.env";
709
+ };
710
+ readonly package?: string | undefined;
711
+ readonly import?: undefined;
712
+ readonly sameOrigin?: boolean | undefined;
884
713
  } | undefined;
885
714
  readonly eden?: {
886
715
  readonly output: string;
887
- readonly import: string;
888
- readonly client?: string | undefined;
889
- readonly docs?: boolean | undefined;
716
+ readonly import?: undefined;
717
+ readonly client?: undefined;
718
+ readonly docs?: undefined;
890
719
  } | undefined;
891
720
  readonly types?: {
892
721
  readonly output: `${string}.ts`;
893
722
  } | undefined;
894
- readonly test?: {
895
- readonly split: true;
896
- readonly pathAlias?: string | undefined;
897
- } | {
898
- readonly output: string;
899
- readonly split?: false | undefined;
900
- readonly pathAlias?: string | undefined;
901
- } | undefined;
723
+ readonly test?: undefined;
902
724
  readonly mock?: {
903
725
  readonly output: string;
904
726
  readonly useExamples?: boolean | "all" | undefined;
@@ -911,83 +733,23 @@ declare function defineConfig(config: typeof ConfigSchema.Encoded): {
911
733
  readonly arrayMin?: number | undefined;
912
734
  readonly arrayMax?: number | undefined;
913
735
  } | undefined;
914
- readonly swr?: {
915
- readonly split: true;
916
- readonly output: string;
917
- readonly import: string;
918
- readonly client?: string | undefined;
919
- } | {
920
- readonly output: string;
921
- readonly import: string;
922
- readonly split?: false | undefined;
923
- readonly client?: string | undefined;
924
- } | undefined;
925
- readonly 'tanstack-query'?: {
926
- readonly split: true;
927
- readonly output: string;
928
- readonly import: string;
929
- readonly client?: string | undefined;
930
- } | {
931
- readonly output: string;
932
- readonly import: string;
933
- readonly split?: false | undefined;
934
- readonly client?: string | undefined;
935
- } | undefined;
936
- readonly 'preact-query'?: {
937
- readonly split: true;
938
- readonly output: string;
939
- readonly import: string;
940
- readonly client?: string | undefined;
941
- } | {
942
- readonly output: string;
943
- readonly import: string;
944
- readonly split?: false | undefined;
945
- readonly client?: string | undefined;
946
- } | undefined;
947
- readonly 'solid-query'?: {
948
- readonly split: true;
949
- readonly output: string;
950
- readonly import: string;
951
- readonly client?: string | undefined;
952
- } | {
953
- readonly output: string;
954
- readonly import: string;
955
- readonly split?: false | undefined;
956
- readonly client?: string | undefined;
957
- } | undefined;
958
- readonly 'vue-query'?: {
959
- readonly split: true;
960
- readonly output: string;
961
- readonly import: string;
962
- readonly client?: string | undefined;
963
- } | {
964
- readonly output: string;
965
- readonly import: string;
966
- readonly split?: false | undefined;
967
- readonly client?: string | undefined;
968
- } | undefined;
969
- readonly 'svelte-query'?: {
970
- readonly split: true;
971
- readonly output: string;
972
- readonly import: string;
973
- readonly client?: string | undefined;
974
- } | {
975
- readonly output: string;
976
- readonly import: string;
977
- readonly split?: false | undefined;
978
- readonly client?: string | undefined;
979
- } | undefined;
980
- readonly 'angular-query'?: {
981
- readonly split: true;
982
- readonly output: string;
983
- readonly import: string;
984
- readonly client?: string | undefined;
985
- } | {
986
- readonly output: string;
987
- readonly import: string;
988
- readonly split?: false | undefined;
989
- readonly client?: string | undefined;
990
- } | undefined;
991
- };
736
+ }, ConfigError, FileSystem.FileSystem>;
737
+ type ConfigInput = typeof ConfigSchema.Encoded;
738
+ /**
739
+ * The hooks and the wrappers import the client the `client` block generates, so a config that
740
+ * names one of them without the block is refused as it is typed, the way `parseConfig` refuses
741
+ * it: the block's key is the message.
742
+ */
743
+ type ClientRequired<T> = 'client' extends keyof T ? unknown : { readonly [K in (typeof HOOK_KINDS)[number] | 'eden']?: 'needs the top-level client it imports: add client: { output }' };
744
+ /**
745
+ * The config as it is typed.
746
+ *
747
+ * `ConfigInput` is the schema's own input type, so an option that was removed — typed `never` —
748
+ * and a value of the wrong shape fail here. The rules that need the whole config at once are
749
+ * `parseConfig`'s, reported when the config is read: an unknown key, two generators on one
750
+ * output, a prefix without its slash. The one exception is the client the hooks need, which is
751
+ * told on the hook's key.
752
+ */
753
+ declare function defineConfig<const T extends ConfigInput>(config: T & ClientRequired<T>): T & ClientRequired<T>;
992
754
  //#endregion
993
- export { Config, ConfigError, defineConfig, parseConfig, readConfig };
755
+ export { COMPONENT_KINDS, Config, ConfigError, HOOK_KINDS, defineConfig, parseConfig, readConfig };