@kubb/core 5.0.0-beta.10 → 5.0.0-beta.101

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.
Files changed (44) hide show
  1. package/LICENSE +17 -10
  2. package/README.md +20 -123
  3. package/dist/index.cjs +2301 -1122
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.d.ts +131 -179
  6. package/dist/index.js +2293 -1115
  7. package/dist/index.js.map +1 -1
  8. package/dist/mocks.cjs +81 -32
  9. package/dist/mocks.cjs.map +1 -1
  10. package/dist/mocks.d.ts +37 -14
  11. package/dist/mocks.js +83 -36
  12. package/dist/mocks.js.map +1 -1
  13. package/dist/types-B14Ba9P7.d.ts +2880 -0
  14. package/dist/usingCtx-BNggxUEL.js +597 -0
  15. package/dist/usingCtx-BNggxUEL.js.map +1 -0
  16. package/dist/usingCtx-CZyLSqds.cjs +705 -0
  17. package/dist/usingCtx-CZyLSqds.cjs.map +1 -0
  18. package/package.json +7 -28
  19. package/dist/PluginDriver-Cu1Kj9S-.cjs +0 -1075
  20. package/dist/PluginDriver-Cu1Kj9S-.cjs.map +0 -1
  21. package/dist/PluginDriver-D8Z0Htid.js +0 -978
  22. package/dist/PluginDriver-D8Z0Htid.js.map +0 -1
  23. package/dist/createKubb-ALdb8lmq.d.ts +0 -2082
  24. package/src/FileManager.ts +0 -115
  25. package/src/FileProcessor.ts +0 -86
  26. package/src/PluginDriver.ts +0 -457
  27. package/src/constants.ts +0 -35
  28. package/src/createAdapter.ts +0 -108
  29. package/src/createKubb.ts +0 -1266
  30. package/src/createRenderer.ts +0 -57
  31. package/src/createStorage.ts +0 -70
  32. package/src/defineGenerator.ts +0 -175
  33. package/src/defineLogger.ts +0 -58
  34. package/src/defineMiddleware.ts +0 -62
  35. package/src/defineParser.ts +0 -44
  36. package/src/definePlugin.ts +0 -379
  37. package/src/defineResolver.ts +0 -654
  38. package/src/devtools.ts +0 -66
  39. package/src/index.ts +0 -20
  40. package/src/mocks.ts +0 -177
  41. package/src/storages/fsStorage.ts +0 -89
  42. package/src/storages/memoryStorage.ts +0 -55
  43. package/src/types.ts +0 -41
  44. /package/dist/{chunk--u3MIqq1.js → rolldown-runtime-C0LytTxp.js} +0 -0
package/dist/index.d.ts CHANGED
@@ -1,185 +1,135 @@
1
- import { t as __name } from "./chunk--u3MIqq1.js";
2
- import { $ as ResolverPathParams, A as isInputPath, B as KubbPluginSetupContext, C as KubbPluginsEndContext, D as PossibleConfig, E as KubbWarnContext, F as FileManager, G as Plugin, H as NormalizedPlugin, I as Exclude, J as ResolveBannerContext, K as PluginFactoryOptions, L as Group, M as GeneratorContext, N as defineGenerator, O as UserConfig, P as PluginDriver, Q as ResolverFileParams, R as Include, S as KubbLifecycleStartContext, T as KubbVersionNewContext, U as Output, V as KubbPluginStartContext, W as Override, X as Resolver, Y as ResolveOptionsContext, Z as ResolverContext, _ as KubbGenerationSummaryContext, _t as AdapterFactoryOptions, a as InputPath, at as Logger, b as KubbHooks, bt as logLevel, c as KubbBuildStartContext, ct as UserLogger, d as KubbErrorContext, dt as Storage, et as defineResolver, f as KubbFileProcessingUpdateContext, ft as createStorage, g as KubbGenerationStartContext, gt as Adapter, h as KubbGenerationEndContext, ht as createRenderer, i as InputData, it as defineMiddleware, j as Generator, k as createKubb, l as KubbConfigEndContext, lt as defineLogger, m as KubbFilesProcessingStartContext, mt as RendererFactory, n as CLIOptions, nt as defineParser, o as Kubb, ot as LoggerContext, p as KubbFilesProcessingEndContext, pt as Renderer, q as definePlugin, r as Config, rt as Middleware, s as KubbBuildEndContext, st as LoggerOptions, t as BuildOutput, tt as Parser, u as KubbDebugContext, ut as DevtoolsOptions, v as KubbHookEndContext, vt as AdapterSource, w as KubbSuccessContext, x as KubbInfoContext, xt as AsyncEventEmitter, y as KubbHookStartContext, yt as createAdapter, z as KubbPluginEndContext } from "./createKubb-ALdb8lmq.js";
3
- import * as ast from "@kubb/ast";
4
- import { FileNode } from "@kubb/ast";
5
-
6
- //#region ../../internals/utils/src/urlPath.d.ts
7
- type URLObject = {
8
- /**
9
- * The resolved URL string (Express-style or template literal, depending on context).
10
- */
11
- url: string;
12
- /**
13
- * Extracted path parameters as a key-value map, or `undefined` when the path has none.
14
- */
15
- params?: Record<string, string>;
16
- };
17
- type ObjectOptions = {
18
- /**
19
- * Controls whether the `url` is rendered as an Express path or a template literal.
20
- * @default 'path'
21
- */
22
- type?: 'path' | 'template';
23
- /**
24
- * Optional transform applied to each extracted parameter name.
25
- */
26
- replacer?: (pathParam: string) => string;
27
- /**
28
- * When `true`, the result is serialized to a string expression instead of a plain object.
29
- */
30
- stringify?: boolean;
1
+ import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
2
+ import { $ as PluginName, A as Kubb, At as DiagnosticKind, B as Filter, Bt as Adapter, C as KubbWarnContext, Ct as ReporterContext, D as CreateKubbOptions, Dt as logLevel, E as UserConfig, Et as createReporter, F as KubbDriver, Ft as ProblemCode, G as KubbPluginStartContext, H as Include, Ht as AdapterSource, I as FileManagerHooks, It as ProblemDiagnostic, J as OutputMode, K as NormalizedPlugin, L as Parser, Lt as SerializedDiagnostic, M as Generator, Mt as DiagnosticSeverity, N as GeneratorContext, Nt as Diagnostics, O as GenerateOptions, Ot as Diagnostic, P as defineGenerator, Pt as PerformanceDiagnostic, Q as PluginFactoryOptions, R as defineParser, Rt as UpdateDiagnostic, S as KubbSuccessContext, St as Reporter, T as PostGenerateCommand, Tt as UserReporter, U as KubbPluginEndContext, Ut as createAdapter, V as Group, Vt as AdapterFactoryOptions, W as KubbPluginSetupContext, X as Override, Y as OutputOptions, Z as Plugin, _ as KubbHookStartContext, _t as RendererFactory, a as KubbBuildEndContext, at as ResolveFileOptions, b as KubbLifecycleStartContext, bt as createStorage, c as KubbErrorContext, ct as ResolvePathOptions, d as KubbFilesProcessingStartContext, dt as ResolverFile, et as ResolvePluginOptions, f as KubbFilesProcessingUpdateContext, ft as ResolverFileParams, g as KubbHookLineContext, gt as Renderer, h as KubbHookEndContext, ht as ResolverPathParams, i as Input, it as ResolveBannerFile, j as createKubb, jt as DiagnosticLocation, k as GenerateResult, kt as DiagnosticDoc, l as KubbFileProcessingUpdate, lt as Resolver, m as KubbGenerationStartContext, mt as ResolverPatch, n as CLIOptions, nt as BannerMeta, o as KubbBuildStartContext, ot as ResolveImportsOptions, p as KubbGenerationEndContext, pt as ResolverFilePathParams, q as Output, r as Config, rt as ResolveBannerContext, s as KubbDiagnosticContext, st as ResolveOptionsContext, t as BuildOutput, tt as definePlugin, u as KubbFilesProcessingEndContext, ut as ResolverDefault, v as KubbHooks, vt as createRenderer, w as PossibleConfig, wt as ReporterName, x as KubbPluginsEndContext, xt as GenerationResult, y as KubbInfoContext, yt as Storage, z as Exclude, zt as Hookable } from "./types-B14Ba9P7.js";
3
+ //#region src/applyConfigDefaults.d.ts
4
+ type ApplyConfigDefaultsOptions<TOutput> = {
5
+ defaultAdapter: Adapter;
6
+ barrelPlugin: Plugin;
7
+ barrelPluginName: string;
8
+ /** Output fields to fill in when the user's config leaves them unset. */
9
+ defaultOutput: Partial<TOutput>;
31
10
  };
32
11
  /**
33
- * Supported identifier casing strategies for path parameters.
12
+ * Fills in the config defaults shared by `defineConfig` and the unplugin factory: the fallback
13
+ * adapter, `defaultOutput`'s fields, and appending the barrel plugin when it's not already
14
+ * registered. Both entry points construct their own adapter, barrel plugin, and output defaults
15
+ * (`barrel` is a `@kubb/plugin-barrel` extension field core doesn't know about) and pass them in,
16
+ * so `@kubb/core` doesn't need to depend on `@kubb/adapter-oas` or `@kubb/plugin-barrel`.
34
17
  */
35
- type PathCasing = 'camelcase';
36
- type Options = {
37
- /**
38
- * Casing strategy applied to path parameter names.
39
- * @default undefined (original identifier preserved)
40
- */
41
- casing?: PathCasing;
18
+ declare function applyConfigDefaults<TOutput extends Config['output'] = Config['output']>(config: {
19
+ adapter?: Adapter;
20
+ output: TOutput;
21
+ plugins?: Array<Plugin>;
22
+ }, { defaultAdapter, barrelPlugin, barrelPluginName, defaultOutput }: ApplyConfigDefaultsOptions<TOutput>): {
23
+ adapter: Adapter;
24
+ output: TOutput;
25
+ plugins: Array<Plugin>;
42
26
  };
27
+ //#endregion
28
+ //#region src/reporters/cliReporter.d.ts
29
+ /**
30
+ * The default `cli` reporter. Renders the {@link Report} for each config as it finishes, independent
31
+ * of the live logger view. Suppressed at `silent`. The `verbose` level adds the per-plugin timings.
32
+ */
33
+ declare const cliReporter: Reporter;
34
+ //#endregion
35
+ //#region src/reporters/fileReporter.d.ts
43
36
  /**
44
- * Parses and transforms an OpenAPI/Swagger path string into various URL formats.
37
+ * The `file` reporter. Writes a config's {@link Report} to `.kubb/kubb-<name>-<timestamp>.log` as a
38
+ * plain-text document: a `# <name> — <timestamp>` header, a `## Summary` with the same counts the
39
+ * cli and json reporters expose, a `## Problems` section in the miette block format, and a
40
+ * `## Timings` section. Selected with `--reporter file` (or `reporters: ['file']`).
45
41
  *
46
- * @example
47
- * const p = new URLPath('/pet/{petId}')
48
- * p.URL // '/pet/:petId'
49
- * p.template // '`/pet/${petId}`'
42
+ * @note It captures the collected diagnostics once a config finishes, not the live
43
+ * `kubb:info`/`kubb:plugin` hook stream. Color is stripped so the file stays plain text even when
44
+ * the run is attached to a TTY.
50
45
  */
51
- declare class URLPath {
52
- #private;
53
- /**
54
- * The raw OpenAPI/Swagger path string, e.g. `/pet/{petId}`.
55
- */
56
- path: string;
57
- constructor(path: string, options?: Options);
58
- /** Converts the OpenAPI path to Express-style colon syntax, e.g. `/pet/{petId}` → `/pet/:petId`.
59
- *
60
- * @example
61
- * ```ts
62
- * new URLPath('/pet/{petId}').URL // '/pet/:petId'
63
- * ```
64
- */
65
- get URL(): string;
66
- /** Returns `true` when `path` is a fully-qualified URL (e.g. starts with `https://`).
67
- *
68
- * @example
69
- * ```ts
70
- * new URLPath('https://petstore.swagger.io/v2/pet').isURL // true
71
- * new URLPath('/pet/{petId}').isURL // false
72
- * ```
73
- */
74
- get isURL(): boolean;
75
- /**
76
- * Converts the OpenAPI path to a TypeScript template literal string.
77
- *
78
- * @example
79
- * new URLPath('/pet/{petId}').template // '`/pet/${petId}`'
80
- * new URLPath('/account/monetary-accountID').template // '`/account/${monetaryAccountId}`'
81
- */
82
- get template(): string;
83
- /** Returns the path and its extracted params as a structured `URLObject`, or as a stringified expression when `stringify` is set.
84
- *
85
- * @example
86
- * ```ts
87
- * new URLPath('/pet/{petId}').object
88
- * // { url: '/pet/:petId', params: { petId: 'petId' } }
89
- * ```
90
- */
91
- get object(): URLObject | string;
92
- /** Returns a map of path parameter names, or `undefined` when the path has no parameters.
93
- *
94
- * @example
95
- * ```ts
96
- * new URLPath('/pet/{petId}').params // { petId: 'petId' }
97
- * new URLPath('/pet').params // undefined
98
- * ```
99
- */
100
- get params(): Record<string, string> | undefined;
101
- toObject({
102
- type,
103
- replacer,
104
- stringify
105
- }?: ObjectOptions): URLObject | string;
106
- /**
107
- * Converts the OpenAPI path to a TypeScript template literal string.
108
- * An optional `replacer` can transform each extracted parameter name before interpolation.
109
- *
110
- * @example
111
- * new URLPath('/pet/{petId}').toTemplateString() // '`/pet/${petId}`'
112
- */
113
- toTemplateString({
114
- prefix,
115
- replacer
116
- }?: {
117
- prefix?: string;
118
- replacer?: (pathParam: string) => string;
119
- }): string;
120
- /**
121
- * Extracts all `{param}` segments from the path and returns them as a key-value map.
122
- * An optional `replacer` transforms each parameter name in both key and value positions.
123
- * Returns `undefined` when no path parameters are found.
124
- *
125
- * @example
126
- * ```ts
127
- * new URLPath('/pet/{petId}/tag/{tagId}').getParams()
128
- * // { petId: 'petId', tagId: 'tagId' }
129
- * ```
130
- */
131
- getParams(replacer?: (pathParam: string) => string): Record<string, string> | undefined;
132
- /** Converts the OpenAPI path to Express-style colon syntax.
133
- *
134
- * @example
135
- * ```ts
136
- * new URLPath('/pet/{petId}').toURLPath() // '/pet/:petId'
137
- * ```
138
- */
139
- toURLPath(): string;
140
- }
46
+ declare const fileReporter: Reporter;
141
47
  //#endregion
142
- //#region src/FileProcessor.d.ts
143
- type ParseOptions = {
144
- parsers?: Map<FileNode['extname'], Parser>;
145
- extension?: Record<FileNode['extname'], FileNode['extname'] | ''>;
146
- };
147
- type RunOptions = ParseOptions & {
148
- /**
149
- * @default 'sequential'
150
- */
151
- mode?: 'sequential' | 'parallel';
152
- onStart?: (files: Array<FileNode>) => Promise<void> | void;
153
- onEnd?: (files: Array<FileNode>) => Promise<void> | void;
154
- onUpdate?: (params: {
155
- file: FileNode;
156
- source?: string;
157
- processed: number;
158
- total: number;
159
- percentage: number;
160
- }) => Promise<void> | void;
161
- };
48
+ //#region src/reporters/jsonReporter.d.ts
49
+ /**
50
+ * The `json` reporter. `report` returns one config's {@link Report}, which {@link createReporter}
51
+ * buffers, and `drain` writes them as a single pretty-printed JSON array on `kubb:lifecycle:end`.
52
+ * Buffering keeps a multi-config run one valid JSON document on stdout instead of concatenated
53
+ * objects that would break `jq .`. The terminal reporter is suppressed while `json` is active so
54
+ * stdout stays valid JSON.
55
+ */
56
+ declare const jsonReporter: Reporter;
57
+ //#endregion
58
+ //#region src/createResolver.d.ts
59
+ /**
60
+ * The plugin-specific resolver fields handed to `createResolver`. `name` and `file` fall
61
+ * back to the built-ins when omitted. Every method reaches sibling helpers through `this`,
62
+ * which `ThisType` types as the full resolver.
63
+ */
64
+ type ResolverOptions<T extends PluginFactoryOptions> = Omit<T['resolver'], keyof Resolver> & {
65
+ pluginName: T['name'];
66
+ name?: T['resolver']['name'];
67
+ file?: ResolverFile;
68
+ } & ThisType<T['resolver']>;
69
+ /**
70
+ * Defines a plugin resolver, the object that decides what every generated symbol and file
71
+ * path is called. Override the top-level `name` and `file` to set the plugin's conventions,
72
+ * and add your own naming helpers, top-level (`typeName`, …) or grouped in namespaces
73
+ * (`query`, `schema`, …). Every method reaches sibling helpers and the built-in machinery
74
+ * through `this.name`, `this.file`, and `this.default`.
75
+ *
76
+ * @example Custom identifier casing
77
+ * ```ts
78
+ * export const resolverTs = createResolver<PluginTs>({
79
+ * pluginName: 'plugin-ts',
80
+ * name(name) {
81
+ * return ensureValidVarName(pascalCase(name))
82
+ * },
83
+ * })
84
+ * ```
85
+ *
86
+ * @example Rename generated files with `file.baseName`
87
+ * ```ts
88
+ * export const resolverFaker = createResolver<PluginFaker>({
89
+ * pluginName: 'plugin-faker',
90
+ * name(name) {
91
+ * return camelCase(name, { prefix: 'create' })
92
+ * },
93
+ * file: {
94
+ * baseName({ name, extname }) {
95
+ * return `${camelCase(name, { prefix: 'create' })}${extname}`
96
+ * },
97
+ * },
98
+ * })
99
+ * ```
100
+ *
101
+ * @example Own the full path with `file.path`
102
+ * ```ts
103
+ * export const resolverFaker = createResolver<PluginFaker>({
104
+ * pluginName: 'plugin-faker',
105
+ * file: {
106
+ * path({ baseName, output }) {
107
+ * return `${output.path}/mocks/${baseName}`
108
+ * },
109
+ * },
110
+ * })
111
+ * ```
112
+ */
113
+ declare function createResolver<T extends PluginFactoryOptions>(options: ResolverOptions<T>): T['resolver'];
114
+ //#endregion
115
+ //#region src/input.d.ts
116
+ /**
117
+ * What an `input` value points at, once Kubb has looked at it.
118
+ *
119
+ * - `file` is a local file path, absolute or relative to the config file.
120
+ * - `url` is a remote document to fetch.
121
+ * - `inline` is OpenAPI content held in the string itself (JSON or YAML).
122
+ * - `object` is an already-parsed spec.
123
+ */
124
+ type InputKind = 'file' | 'url' | 'inline' | 'object';
162
125
  /**
163
- * Converts a single file to a string using the registered parsers.
164
- * Falls back to joining source values when no matching parser is found.
126
+ * Classifies an `input` value so callers branch on it once instead of repeating the checks.
165
127
  *
166
- * @internal
128
+ * A non-string is a parsed spec (`object`). A string is `inline` when it holds OpenAPI content,
129
+ * meaning it starts with `{` or `[`, spans multiple lines, or opens with a YAML `openapi:` or
130
+ * `swagger:` key. Otherwise a string is a `url` when it parses as one, or a `file` path.
167
131
  */
168
- declare class FileProcessor {
169
- #private;
170
- parse(file: FileNode, {
171
- parsers,
172
- extension
173
- }?: ParseOptions): Promise<string>;
174
- run(files: Array<FileNode>, {
175
- parsers,
176
- mode,
177
- extension,
178
- onStart,
179
- onEnd,
180
- onUpdate
181
- }?: RunOptions): Promise<Array<FileNode>>;
182
- }
132
+ declare function getInputKind(input: NonNullable<Input>): InputKind;
183
133
  //#endregion
184
134
  //#region src/storages/fsStorage.d.ts
185
135
  /**
@@ -189,11 +139,13 @@ declare class FileProcessor {
189
139
  * Keys are resolved against `process.cwd()`, so root-relative paths such as
190
140
  * `src/gen/api/getPets.ts` are written to the correct location without extra configuration.
191
141
  *
192
- * Internally uses the `write` utility from `@internals/utils`, which:
193
- * - trims leading/trailing whitespace before writing
194
- * - skips the write when file content is already identical (deduplication)
195
- * - creates missing parent directories automatically
196
- * - supports Bun's native file API when running under Bun
142
+ * Writes are deduplicated and directory-safe:
143
+ * - leading and trailing whitespace is trimmed before writing
144
+ * - the write is skipped when the file content is already identical
145
+ * - missing parent directories are created automatically
146
+ * - Bun's native file API is used when running under Bun
147
+ * - concurrent `setItem` calls are capped at {@link WRITE_CONCURRENCY} in flight, so a caller
148
+ * can fire every file's write without pacing itself
197
149
  *
198
150
  * @example
199
151
  * ```ts
@@ -201,7 +153,7 @@ declare class FileProcessor {
201
153
  * import { defineConfig } from 'kubb'
202
154
  *
203
155
  * export default defineConfig({
204
- * input: { path: './petStore.yaml' },
156
+ * input: './petStore.yaml',
205
157
  * output: { path: './src/gen' },
206
158
  * storage: fsStorage(),
207
159
  * })
@@ -223,7 +175,7 @@ declare const fsStorage: (options?: Record<string, never> | undefined) => Storag
223
175
  * import { defineConfig } from 'kubb'
224
176
  *
225
177
  * export default defineConfig({
226
- * input: { path: './petStore.yaml' },
178
+ * input: './petStore.yaml',
227
179
  * output: { path: './src/gen' },
228
180
  * storage: memoryStorage(),
229
181
  * })
@@ -231,5 +183,5 @@ declare const fsStorage: (options?: Record<string, never> | undefined) => Storag
231
183
  */
232
184
  declare const memoryStorage: (options?: Record<string, never> | undefined) => Storage;
233
185
  //#endregion
234
- export { Adapter, AdapterFactoryOptions, AdapterSource, AsyncEventEmitter, BuildOutput, CLIOptions, Config, DevtoolsOptions, Exclude, FileManager, FileProcessor, Generator, GeneratorContext, Group, Include, InputData, InputPath, Kubb, KubbBuildEndContext, KubbBuildStartContext, KubbConfigEndContext, KubbDebugContext, KubbErrorContext, KubbFileProcessingUpdateContext, KubbFilesProcessingEndContext, KubbFilesProcessingStartContext, KubbGenerationEndContext, KubbGenerationStartContext, KubbGenerationSummaryContext, KubbHookEndContext, KubbHookStartContext, KubbHooks, KubbInfoContext, KubbLifecycleStartContext, KubbPluginEndContext, KubbPluginSetupContext, KubbPluginStartContext, KubbPluginsEndContext, KubbSuccessContext, KubbVersionNewContext, KubbWarnContext, Logger, LoggerContext, LoggerOptions, Middleware, NormalizedPlugin, Output, Override, Parser, Plugin, PluginDriver, PluginFactoryOptions, PossibleConfig, Renderer, RendererFactory, ResolveBannerContext, ResolveOptionsContext, Resolver, ResolverContext, ResolverFileParams, ResolverPathParams, Storage, URLPath, UserConfig, UserLogger, ast, createAdapter, createKubb, createRenderer, createStorage, defineGenerator, defineLogger, defineMiddleware, defineParser, definePlugin, defineResolver, fsStorage, isInputPath, logLevel, memoryStorage };
186
+ export { type Adapter, type AdapterFactoryOptions, type AdapterSource, type BannerMeta, BuildOutput, CLIOptions, Config, type CreateKubbOptions, type Diagnostic, type DiagnosticDoc, type DiagnosticKind, type DiagnosticLocation, type DiagnosticSeverity, Diagnostics, type Exclude, type FileManagerHooks, type Filter, type GenerateOptions, type GenerateResult, type GenerationResult, type Generator, type GeneratorContext, type Group, Hookable, type Include, Input, type InputKind, type Kubb, KubbBuildEndContext, KubbBuildStartContext, KubbDiagnosticContext, KubbDriver, KubbErrorContext, KubbFileProcessingUpdate, KubbFilesProcessingEndContext, KubbFilesProcessingStartContext, KubbFilesProcessingUpdateContext, KubbGenerationEndContext, KubbGenerationStartContext, KubbHookEndContext, KubbHookLineContext, KubbHookStartContext, KubbHooks, KubbInfoContext, KubbLifecycleStartContext, type KubbPluginEndContext, type KubbPluginSetupContext, type KubbPluginStartContext, KubbPluginsEndContext, KubbSuccessContext, KubbWarnContext, type NormalizedPlugin, type Output, type OutputMode, type OutputOptions, type Override, type Parser, type PerformanceDiagnostic, type Plugin, type PluginFactoryOptions, type PluginName, PossibleConfig, PostGenerateCommand, type ProblemCode, type ProblemDiagnostic, type Renderer, type RendererFactory, type Reporter, type ReporterContext, type ReporterName, type ResolveBannerContext, type ResolveBannerFile, type ResolveFileOptions, type ResolveImportsOptions, type ResolveOptionsContext, type ResolvePathOptions, type ResolvePluginOptions, Resolver, type ResolverDefault, type ResolverFile, type ResolverFileParams, type ResolverFilePathParams, type ResolverPatch, type ResolverPathParams, type SerializedDiagnostic, type Storage, type UpdateDiagnostic, UserConfig, type UserReporter, applyConfigDefaults, cliReporter, createAdapter, createKubb, createRenderer, createReporter, createResolver, createStorage, defineGenerator, defineParser, definePlugin, fileReporter, fsStorage, getInputKind, jsonReporter, logLevel, memoryStorage };
235
187
  //# sourceMappingURL=index.d.ts.map