skill-creator 1.4.2 → 1.5.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.
Files changed (187) hide show
  1. package/dist/chunk-Da8dvM5T.mjs +1 -0
  2. package/dist/cli.d.mts +1016 -0
  3. package/dist/cli.d.mts.map +1 -0
  4. package/dist/cli.mjs +36 -0
  5. package/dist/cli.mjs.map +1 -0
  6. package/dist/contentManager-8rmWJMb6.mjs +22 -0
  7. package/dist/contentManager-8rmWJMb6.mjs.map +1 -0
  8. package/dist/contentManager-Xt8N5psY.mjs +1 -0
  9. package/dist/dist-DZL34HNo.mjs +8 -0
  10. package/dist/dist-DZL34HNo.mjs.map +1 -0
  11. package/dist/dist-X_kVEzbK.mjs +1 -0
  12. package/dist/esm-8qfZdcpd.mjs +33 -0
  13. package/dist/esm-8qfZdcpd.mjs.map +1 -0
  14. package/dist/esm-BF5pvSbc.mjs +1 -0
  15. package/dist/esm-BbhxxeGF.mjs +4 -0
  16. package/dist/esm-BbhxxeGF.mjs.map +1 -0
  17. package/dist/index.d.mts +1964 -0
  18. package/dist/index.d.mts.map +1 -0
  19. package/dist/index.mjs +21 -0
  20. package/dist/index.mjs.map +1 -0
  21. package/dist/listContext7-DKXzgWdn.mjs +2 -0
  22. package/dist/listContext7-DKXzgWdn.mjs.map +1 -0
  23. package/dist/package-B4FNst2t.mjs +2 -0
  24. package/dist/package-B4FNst2t.mjs.map +1 -0
  25. package/dist/path-CuoiIaIe.mjs +2 -0
  26. package/dist/path-CuoiIaIe.mjs.map +1 -0
  27. package/dist/removeContext7-DOXrTXeI.mjs +3 -0
  28. package/dist/removeContext7-DOXrTXeI.mjs.map +1 -0
  29. package/dist/removeSkill-C-ehFexk.mjs +5 -0
  30. package/dist/removeSkill-C-ehFexk.mjs.map +1 -0
  31. package/dist/removeSkill-DWwhvzej.mjs +1 -0
  32. package/dist/runScript-Cr9RRN9y.mjs +14 -0
  33. package/dist/runScript-Cr9RRN9y.mjs.map +1 -0
  34. package/dist/search_format-DIs-1lKk.mjs +5 -0
  35. package/dist/search_format-DIs-1lKk.mjs.map +1 -0
  36. package/dist/shared-CFoY2Xhg.mjs +2 -0
  37. package/dist/shared-CFoY2Xhg.mjs.map +1 -0
  38. package/dist/skillMdManager-DP8fGZb7.mjs +7 -0
  39. package/dist/skillMdManager-DP8fGZb7.mjs.map +1 -0
  40. package/dist/unifiedSearch-CGZXw0NB.mjs +1 -0
  41. package/dist/unifiedSearch-l-lrSc9C.mjs +4 -0
  42. package/dist/unifiedSearch-l-lrSc9C.mjs.map +1 -0
  43. package/package.json +30 -16
  44. package/dist/cli.d.ts +0 -8
  45. package/dist/cli.d.ts.map +0 -1
  46. package/dist/cli.js +0 -513
  47. package/dist/cli.js.map +0 -1
  48. package/dist/commands/addContent.d.ts +0 -5
  49. package/dist/commands/addContent.d.ts.map +0 -1
  50. package/dist/commands/addContent.js +0 -88
  51. package/dist/commands/addContent.js.map +0 -1
  52. package/dist/commands/buildIndex.d.ts +0 -5
  53. package/dist/commands/buildIndex.d.ts.map +0 -1
  54. package/dist/commands/buildIndex.js +0 -16
  55. package/dist/commands/buildIndex.js.map +0 -1
  56. package/dist/commands/createSkill.d.ts +0 -6
  57. package/dist/commands/createSkill.d.ts.map +0 -1
  58. package/dist/commands/createSkill.js +0 -32
  59. package/dist/commands/createSkill.js.map +0 -1
  60. package/dist/commands/downloadContext7.d.ts +0 -5
  61. package/dist/commands/downloadContext7.d.ts.map +0 -1
  62. package/dist/commands/downloadContext7.js +0 -71
  63. package/dist/commands/downloadContext7.js.map +0 -1
  64. package/dist/commands/init.d.ts +0 -5
  65. package/dist/commands/init.d.ts.map +0 -1
  66. package/dist/commands/init.js +0 -95
  67. package/dist/commands/init.js.map +0 -1
  68. package/dist/commands/listContent.d.ts +0 -5
  69. package/dist/commands/listContent.d.ts.map +0 -1
  70. package/dist/commands/listContent.js +0 -34
  71. package/dist/commands/listContent.js.map +0 -1
  72. package/dist/commands/listContext7.d.ts +0 -5
  73. package/dist/commands/listContext7.d.ts.map +0 -1
  74. package/dist/commands/listContext7.js +0 -26
  75. package/dist/commands/listContext7.js.map +0 -1
  76. package/dist/commands/listSkills.d.ts +0 -5
  77. package/dist/commands/listSkills.d.ts.map +0 -1
  78. package/dist/commands/listSkills.js +0 -34
  79. package/dist/commands/listSkills.js.map +0 -1
  80. package/dist/commands/removeContext7.d.ts +0 -5
  81. package/dist/commands/removeContext7.d.ts.map +0 -1
  82. package/dist/commands/removeContext7.js +0 -54
  83. package/dist/commands/removeContext7.js.map +0 -1
  84. package/dist/commands/removeSkill.d.ts +0 -5
  85. package/dist/commands/removeSkill.d.ts.map +0 -1
  86. package/dist/commands/removeSkill.js +0 -83
  87. package/dist/commands/removeSkill.js.map +0 -1
  88. package/dist/commands/searchContent.d.ts +0 -5
  89. package/dist/commands/searchContent.d.ts.map +0 -1
  90. package/dist/commands/searchContent.js +0 -99
  91. package/dist/commands/searchContent.js.map +0 -1
  92. package/dist/commands/shared.d.ts +0 -21
  93. package/dist/commands/shared.d.ts.map +0 -1
  94. package/dist/commands/shared.js +0 -80
  95. package/dist/commands/shared.js.map +0 -1
  96. package/dist/core/autoSearchAdapter.d.ts +0 -42
  97. package/dist/core/autoSearchAdapter.d.ts.map +0 -1
  98. package/dist/core/autoSearchAdapter.js +0 -116
  99. package/dist/core/autoSearchAdapter.js.map +0 -1
  100. package/dist/core/chromaSearch.d.ts +0 -24
  101. package/dist/core/chromaSearch.d.ts.map +0 -1
  102. package/dist/core/chromaSearch.js +0 -194
  103. package/dist/core/chromaSearch.js.map +0 -1
  104. package/dist/core/chromaSearchAdapter.d.ts +0 -86
  105. package/dist/core/chromaSearchAdapter.d.ts.map +0 -1
  106. package/dist/core/chromaSearchAdapter.js +0 -477
  107. package/dist/core/chromaSearchAdapter.js.map +0 -1
  108. package/dist/core/chromaServerManager.d.ts +0 -64
  109. package/dist/core/chromaServerManager.d.ts.map +0 -1
  110. package/dist/core/chromaServerManager.js +0 -186
  111. package/dist/core/chromaServerManager.js.map +0 -1
  112. package/dist/core/contentManager.d.ts +0 -65
  113. package/dist/core/contentManager.d.ts.map +0 -1
  114. package/dist/core/contentManager.js +0 -533
  115. package/dist/core/contentManager.js.map +0 -1
  116. package/dist/core/fuzzySearchAdapter.d.ts +0 -33
  117. package/dist/core/fuzzySearchAdapter.d.ts.map +0 -1
  118. package/dist/core/fuzzySearchAdapter.js +0 -185
  119. package/dist/core/fuzzySearchAdapter.js.map +0 -1
  120. package/dist/core/portUtils.d.ts +0 -51
  121. package/dist/core/portUtils.d.ts.map +0 -1
  122. package/dist/core/portUtils.js +0 -120
  123. package/dist/core/portUtils.js.map +0 -1
  124. package/dist/core/runScript.d.ts +0 -5
  125. package/dist/core/runScript.d.ts.map +0 -1
  126. package/dist/core/runScript.js +0 -40
  127. package/dist/core/runScript.js.map +0 -1
  128. package/dist/core/searchAdapter.d.ts +0 -48
  129. package/dist/core/searchAdapter.d.ts.map +0 -1
  130. package/dist/core/searchAdapter.js +0 -6
  131. package/dist/core/searchAdapter.js.map +0 -1
  132. package/dist/core/searchEngineFactory.d.ts +0 -30
  133. package/dist/core/searchEngineFactory.d.ts.map +0 -1
  134. package/dist/core/searchEngineFactory.js +0 -41
  135. package/dist/core/searchEngineFactory.js.map +0 -1
  136. package/dist/core/skillCreator.d.ts +0 -12
  137. package/dist/core/skillCreator.d.ts.map +0 -1
  138. package/dist/core/skillCreator.js +0 -75
  139. package/dist/core/skillCreator.js.map +0 -1
  140. package/dist/core/templateManager.d.ts +0 -28
  141. package/dist/core/templateManager.d.ts.map +0 -1
  142. package/dist/core/templateManager.js +0 -583
  143. package/dist/core/templateManager.js.map +0 -1
  144. package/dist/core/unifiedSearch.d.ts +0 -69
  145. package/dist/core/unifiedSearch.d.ts.map +0 -1
  146. package/dist/core/unifiedSearch.js +0 -105
  147. package/dist/core/unifiedSearch.js.map +0 -1
  148. package/dist/index.d.ts +0 -13
  149. package/dist/index.d.ts.map +0 -1
  150. package/dist/index.js +0 -11
  151. package/dist/index.js.map +0 -1
  152. package/dist/search_format/enhancedFormatter.d.ts +0 -109
  153. package/dist/search_format/enhancedFormatter.d.ts.map +0 -1
  154. package/dist/search_format/enhancedFormatter.js +0 -262
  155. package/dist/search_format/enhancedFormatter.js.map +0 -1
  156. package/dist/search_format/index.d.ts +0 -10
  157. package/dist/search_format/index.d.ts.map +0 -1
  158. package/dist/search_format/index.js +0 -22
  159. package/dist/search_format/index.js.map +0 -1
  160. package/dist/search_format/listFormatter.d.ts +0 -16
  161. package/dist/search_format/listFormatter.d.ts.map +0 -1
  162. package/dist/search_format/listFormatter.js +0 -51
  163. package/dist/search_format/listFormatter.js.map +0 -1
  164. package/dist/search_format/types.d.ts +0 -69
  165. package/dist/search_format/types.d.ts.map +0 -1
  166. package/dist/search_format/types.js +0 -5
  167. package/dist/search_format/types.js.map +0 -1
  168. package/dist/types/index.d.ts +0 -74
  169. package/dist/types/index.d.ts.map +0 -1
  170. package/dist/types/index.js +0 -2
  171. package/dist/types/index.js.map +0 -1
  172. package/dist/utils/claudeCodeDetection.d.ts +0 -27
  173. package/dist/utils/claudeCodeDetection.d.ts.map +0 -1
  174. package/dist/utils/claudeCodeDetection.js +0 -81
  175. package/dist/utils/claudeCodeDetection.js.map +0 -1
  176. package/dist/utils/config.d.ts +0 -23
  177. package/dist/utils/config.d.ts.map +0 -1
  178. package/dist/utils/config.js +0 -41
  179. package/dist/utils/config.js.map +0 -1
  180. package/dist/utils/package.d.ts +0 -88
  181. package/dist/utils/package.d.ts.map +0 -1
  182. package/dist/utils/package.js +0 -221
  183. package/dist/utils/package.js.map +0 -1
  184. package/dist/utils/skillMdManager.d.ts +0 -44
  185. package/dist/utils/skillMdManager.d.ts.map +0 -1
  186. package/dist/utils/skillMdManager.js +0 -157
  187. package/dist/utils/skillMdManager.js.map +0 -1
@@ -0,0 +1,1964 @@
1
+ import { ChromaClient } from "chromadb";
2
+
3
+ //#region node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/standard-schema.d.cts
4
+ /** The Standard Schema interface. */
5
+ interface StandardSchemaV1<Input = unknown, Output = Input> {
6
+ /** The Standard Schema properties. */
7
+ readonly "~standard": StandardSchemaV1.Props<Input, Output>;
8
+ }
9
+ declare namespace StandardSchemaV1 {
10
+ /** The Standard Schema properties interface. */
11
+ interface Props<Input = unknown, Output = Input> {
12
+ /** The version number of the standard. */
13
+ readonly version: 1;
14
+ /** The vendor name of the schema library. */
15
+ readonly vendor: string;
16
+ /** Validates unknown input values. */
17
+ readonly validate: (value: unknown) => Result<Output> | Promise<Result<Output>>;
18
+ /** Inferred types associated with the schema. */
19
+ readonly types?: Types<Input, Output> | undefined;
20
+ }
21
+ /** The result interface of the validate function. */
22
+ type Result<Output> = SuccessResult<Output> | FailureResult;
23
+ /** The result interface if validation succeeds. */
24
+ interface SuccessResult<Output> {
25
+ /** The typed output value. */
26
+ readonly value: Output;
27
+ /** The non-existent issues. */
28
+ readonly issues?: undefined;
29
+ }
30
+ /** The result interface if validation fails. */
31
+ interface FailureResult {
32
+ /** The issues of failed validation. */
33
+ readonly issues: ReadonlyArray<Issue>;
34
+ }
35
+ /** The issue interface of the failure output. */
36
+ interface Issue {
37
+ /** The error message of the issue. */
38
+ readonly message: string;
39
+ /** The path of the issue, if any. */
40
+ readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
41
+ }
42
+ /** The path segment interface of the issue. */
43
+ interface PathSegment {
44
+ /** The key representing a path segment. */
45
+ readonly key: PropertyKey;
46
+ }
47
+ /** The Standard Schema types interface. */
48
+ interface Types<Input = unknown, Output = Input> {
49
+ /** The input type of the schema. */
50
+ readonly input: Input;
51
+ /** The output type of the schema. */
52
+ readonly output: Output;
53
+ }
54
+ /** Infers the input type of a Standard Schema. */
55
+ type InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["input"];
56
+ /** Infers the output type of a Standard Schema. */
57
+ type InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
58
+ }
59
+ //#endregion
60
+ //#region node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/util.d.cts
61
+ type JWTAlgorithm = "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | (string & {});
62
+ type IsAny<T$1> = 0 extends 1 & T$1 ? true : false;
63
+ type Omit$1<T$1, K$1 extends keyof T$1> = Pick<T$1, Exclude<keyof T$1, K$1>>;
64
+ type MakePartial<T$1, K$1 extends keyof T$1> = Omit$1<T$1, K$1> & InexactPartial<Pick<T$1, K$1>>;
65
+ type NoUndefined<T$1> = T$1 extends undefined ? never : T$1;
66
+ type LoosePartial<T$1 extends object> = InexactPartial<T$1> & {
67
+ [k: string]: unknown;
68
+ };
69
+ type Mask<Keys extends PropertyKey> = { [K in Keys]?: true };
70
+ type InexactPartial<T$1> = { [P in keyof T$1]?: T$1[P] | undefined };
71
+ type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | {
72
+ readonly [Symbol.toStringTag]: string;
73
+ } | Date | Error | Generator | Promise<unknown> | RegExp;
74
+ type MakeReadonly<T$1> = T$1 extends Map<infer K, infer V> ? ReadonlyMap<K, V> : T$1 extends Set<infer V> ? ReadonlySet<V> : T$1 extends [infer Head, ...infer Tail] ? readonly [Head, ...Tail] : T$1 extends Array<infer V> ? ReadonlyArray<V> : T$1 extends BuiltIn ? T$1 : Readonly<T$1>;
75
+ type SomeObject = Record<PropertyKey, any>;
76
+ type Identity<T$1> = T$1;
77
+ type Flatten<T$1> = Identity<{ [k in keyof T$1]: T$1[k] }>;
78
+ type Prettify<T$1> = { [K in keyof T$1]: T$1[K] } & {};
79
+ type Extend<A extends SomeObject, B extends SomeObject> = Flatten<keyof A & keyof B extends never ? A & B : { [K in keyof A as K extends keyof B ? never : K]: A[K] } & { [K in keyof B]: B[K] }>;
80
+ type AnyFunc = (...args: any[]) => any;
81
+ type MaybeAsync<T$1> = T$1 | Promise<T$1>;
82
+ type EnumValue = string | number;
83
+ type EnumLike = Readonly<Record<string, EnumValue>>;
84
+ type ToEnum<T$1 extends EnumValue> = Flatten<{ [k in T$1]: k }>;
85
+ type Primitive = string | number | symbol | bigint | boolean | null | undefined;
86
+ type HasLength = {
87
+ length: number;
88
+ };
89
+ type Numeric = number | bigint | Date;
90
+ type PropValues = Record<string, Set<Primitive>>;
91
+ type PrimitiveSet = Set<Primitive>;
92
+ type EmptyToNever<T$1> = keyof T$1 extends never ? never : T$1;
93
+ declare abstract class Class {
94
+ constructor(..._args: any[]);
95
+ }
96
+ //#endregion
97
+ //#region node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/versions.d.cts
98
+ declare const version: {
99
+ readonly major: 4;
100
+ readonly minor: 1;
101
+ readonly patch: number;
102
+ };
103
+ //#endregion
104
+ //#region node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/schemas.d.cts
105
+ interface ParseContext<T$1 extends $ZodIssueBase = never> {
106
+ /** Customize error messages. */
107
+ readonly error?: $ZodErrorMap<T$1>;
108
+ /** Include the `input` field in issue objects. Default `false`. */
109
+ readonly reportInput?: boolean;
110
+ /** Skip eval-based fast path. Default `false`. */
111
+ readonly jitless?: boolean;
112
+ }
113
+ /** @internal */
114
+ interface ParseContextInternal<T$1 extends $ZodIssueBase = never> extends ParseContext<T$1> {
115
+ readonly async?: boolean | undefined;
116
+ readonly direction?: "forward" | "backward";
117
+ readonly skipChecks?: boolean;
118
+ }
119
+ interface ParsePayload<T$1 = unknown> {
120
+ value: T$1;
121
+ issues: $ZodRawIssue[];
122
+ /** A may to mark a whole payload as aborted. Used in codecs/pipes. */
123
+ aborted?: boolean;
124
+ }
125
+ type CheckFn<T$1> = (input: ParsePayload<T$1>) => MaybeAsync<void>;
126
+ interface $ZodTypeDef {
127
+ type: "string" | "number" | "int" | "boolean" | "bigint" | "symbol" | "null" | "undefined" | "void" | "never" | "any" | "unknown" | "date" | "object" | "record" | "file" | "array" | "tuple" | "union" | "intersection" | "map" | "set" | "enum" | "literal" | "nullable" | "optional" | "nonoptional" | "success" | "transform" | "default" | "prefault" | "catch" | "nan" | "pipe" | "readonly" | "template_literal" | "promise" | "lazy" | "function" | "custom";
128
+ error?: $ZodErrorMap<never> | undefined;
129
+ checks?: $ZodCheck<never>[];
130
+ }
131
+ interface _$ZodTypeInternals {
132
+ /** The `@zod/core` version of this schema */
133
+ version: typeof version;
134
+ /** Schema definition. */
135
+ def: $ZodTypeDef;
136
+ /** @internal Randomly generated ID for this schema. */
137
+ /** @internal List of deferred initializers. */
138
+ deferred: AnyFunc[] | undefined;
139
+ /** @internal Parses input and runs all checks (refinements). */
140
+ run(payload: ParsePayload<any>, ctx: ParseContextInternal): MaybeAsync<ParsePayload>;
141
+ /** @internal Parses input, doesn't run checks. */
142
+ parse(payload: ParsePayload<any>, ctx: ParseContextInternal): MaybeAsync<ParsePayload>;
143
+ /** @internal Stores identifiers for the set of traits implemented by this schema. */
144
+ traits: Set<string>;
145
+ /** @internal Indicates that a schema output type should be considered optional inside objects.
146
+ * @default Required
147
+ */
148
+ /** @internal */
149
+ optin?: "optional" | undefined;
150
+ /** @internal */
151
+ optout?: "optional" | undefined;
152
+ /** @internal The set of literal values that will pass validation. Must be an exhaustive set. Used to determine optionality in z.record().
153
+ *
154
+ * Defined on: enum, const, literal, null, undefined
155
+ * Passthrough: optional, nullable, branded, default, catch, pipe
156
+ * Todo: unions?
157
+ */
158
+ values?: PrimitiveSet | undefined;
159
+ /** Default value bubbled up from */
160
+ /** @internal A set of literal discriminators used for the fast path in discriminated unions. */
161
+ propValues?: PropValues | undefined;
162
+ /** @internal This flag indicates that a schema validation can be represented with a regular expression. Used to determine allowable schemas in z.templateLiteral(). */
163
+ pattern: RegExp | undefined;
164
+ /** @internal The constructor function of this schema. */
165
+ constr: new (def: any) => $ZodType;
166
+ /** @internal A catchall object for bag metadata related to this schema. Commonly modified by checks using `onattach`. */
167
+ bag: Record<string, unknown>;
168
+ /** @internal The set of issues this schema might throw during type checking. */
169
+ isst: $ZodIssueBase;
170
+ /** An optional method used to override `toJSONSchema` logic. */
171
+ toJSONSchema?: () => unknown;
172
+ /** @internal The parent of this schema. Only set during certain clone operations. */
173
+ parent?: $ZodType | undefined;
174
+ }
175
+ /** @internal */
176
+ interface $ZodTypeInternals<out O = unknown, out I = unknown> extends _$ZodTypeInternals {
177
+ /** @internal The inferred output type */
178
+ output: O;
179
+ /** @internal The inferred input type */
180
+ input: I;
181
+ }
182
+ type $ZodStandardSchema<T$1> = StandardSchemaV1.Props<input<T$1>, output<T$1>>;
183
+ type SomeType = {
184
+ _zod: _$ZodTypeInternals;
185
+ };
186
+ interface $ZodType<O = unknown, I = unknown, Internals extends $ZodTypeInternals<O, I> = $ZodTypeInternals<O, I>> {
187
+ _zod: Internals;
188
+ "~standard": $ZodStandardSchema<this>;
189
+ }
190
+ declare const $ZodType: $constructor<$ZodType>;
191
+ interface $ZodStringDef extends $ZodTypeDef {
192
+ type: "string";
193
+ coerce?: boolean;
194
+ checks?: $ZodCheck<string>[];
195
+ }
196
+ interface $ZodStringInternals<Input> extends $ZodTypeInternals<string, Input> {
197
+ def: $ZodStringDef;
198
+ /** @deprecated Internal API, use with caution (not deprecated) */
199
+ pattern: RegExp;
200
+ /** @deprecated Internal API, use with caution (not deprecated) */
201
+ isst: $ZodIssueInvalidType;
202
+ bag: LoosePartial<{
203
+ minimum: number;
204
+ maximum: number;
205
+ patterns: Set<RegExp>;
206
+ format: string;
207
+ contentEncoding: string;
208
+ }>;
209
+ }
210
+ interface $ZodStringFormatDef<Format extends string = string> extends $ZodStringDef, $ZodCheckStringFormatDef<Format> {}
211
+ interface $ZodStringFormatInternals<Format extends string = string> extends $ZodStringInternals<string>, $ZodCheckStringFormatInternals {
212
+ def: $ZodStringFormatDef<Format>;
213
+ }
214
+ interface $ZodStringFormat<Format extends string = string> extends $ZodType {
215
+ _zod: $ZodStringFormatInternals<Format>;
216
+ }
217
+ declare const $ZodStringFormat: $constructor<$ZodStringFormat>;
218
+ interface $ZodGUIDInternals extends $ZodStringFormatInternals<"guid"> {}
219
+ interface $ZodGUID extends $ZodType {
220
+ _zod: $ZodGUIDInternals;
221
+ }
222
+ declare const $ZodGUID: $constructor<$ZodGUID>;
223
+ interface $ZodUUIDDef extends $ZodStringFormatDef<"uuid"> {
224
+ version?: "v1" | "v2" | "v3" | "v4" | "v5" | "v6" | "v7" | "v8";
225
+ }
226
+ interface $ZodUUIDInternals extends $ZodStringFormatInternals<"uuid"> {
227
+ def: $ZodUUIDDef;
228
+ }
229
+ interface $ZodUUID extends $ZodType {
230
+ _zod: $ZodUUIDInternals;
231
+ }
232
+ declare const $ZodUUID: $constructor<$ZodUUID>;
233
+ interface $ZodEmailInternals extends $ZodStringFormatInternals<"email"> {}
234
+ interface $ZodEmail extends $ZodType {
235
+ _zod: $ZodEmailInternals;
236
+ }
237
+ declare const $ZodEmail: $constructor<$ZodEmail>;
238
+ interface $ZodURLDef extends $ZodStringFormatDef<"url"> {
239
+ hostname?: RegExp | undefined;
240
+ protocol?: RegExp | undefined;
241
+ normalize?: boolean | undefined;
242
+ }
243
+ interface $ZodURLInternals extends $ZodStringFormatInternals<"url"> {
244
+ def: $ZodURLDef;
245
+ }
246
+ interface $ZodURL extends $ZodType {
247
+ _zod: $ZodURLInternals;
248
+ }
249
+ declare const $ZodURL: $constructor<$ZodURL>;
250
+ interface $ZodEmojiInternals extends $ZodStringFormatInternals<"emoji"> {}
251
+ interface $ZodEmoji extends $ZodType {
252
+ _zod: $ZodEmojiInternals;
253
+ }
254
+ declare const $ZodEmoji: $constructor<$ZodEmoji>;
255
+ interface $ZodNanoIDInternals extends $ZodStringFormatInternals<"nanoid"> {}
256
+ interface $ZodNanoID extends $ZodType {
257
+ _zod: $ZodNanoIDInternals;
258
+ }
259
+ declare const $ZodNanoID: $constructor<$ZodNanoID>;
260
+ interface $ZodCUIDInternals extends $ZodStringFormatInternals<"cuid"> {}
261
+ interface $ZodCUID extends $ZodType {
262
+ _zod: $ZodCUIDInternals;
263
+ }
264
+ declare const $ZodCUID: $constructor<$ZodCUID>;
265
+ interface $ZodCUID2Internals extends $ZodStringFormatInternals<"cuid2"> {}
266
+ interface $ZodCUID2 extends $ZodType {
267
+ _zod: $ZodCUID2Internals;
268
+ }
269
+ declare const $ZodCUID2: $constructor<$ZodCUID2>;
270
+ interface $ZodULIDInternals extends $ZodStringFormatInternals<"ulid"> {}
271
+ interface $ZodULID extends $ZodType {
272
+ _zod: $ZodULIDInternals;
273
+ }
274
+ declare const $ZodULID: $constructor<$ZodULID>;
275
+ interface $ZodXIDInternals extends $ZodStringFormatInternals<"xid"> {}
276
+ interface $ZodXID extends $ZodType {
277
+ _zod: $ZodXIDInternals;
278
+ }
279
+ declare const $ZodXID: $constructor<$ZodXID>;
280
+ interface $ZodKSUIDInternals extends $ZodStringFormatInternals<"ksuid"> {}
281
+ interface $ZodKSUID extends $ZodType {
282
+ _zod: $ZodKSUIDInternals;
283
+ }
284
+ declare const $ZodKSUID: $constructor<$ZodKSUID>;
285
+ interface $ZodISODateTimeDef extends $ZodStringFormatDef<"datetime"> {
286
+ precision: number | null;
287
+ offset: boolean;
288
+ local: boolean;
289
+ }
290
+ interface $ZodISODateTimeInternals extends $ZodStringFormatInternals {
291
+ def: $ZodISODateTimeDef;
292
+ }
293
+ interface $ZodISODateTime extends $ZodType {
294
+ _zod: $ZodISODateTimeInternals;
295
+ }
296
+ declare const $ZodISODateTime: $constructor<$ZodISODateTime>;
297
+ interface $ZodISODateInternals extends $ZodStringFormatInternals<"date"> {}
298
+ interface $ZodISODate extends $ZodType {
299
+ _zod: $ZodISODateInternals;
300
+ }
301
+ declare const $ZodISODate: $constructor<$ZodISODate>;
302
+ interface $ZodISOTimeDef extends $ZodStringFormatDef<"time"> {
303
+ precision?: number | null;
304
+ }
305
+ interface $ZodISOTimeInternals extends $ZodStringFormatInternals<"time"> {
306
+ def: $ZodISOTimeDef;
307
+ }
308
+ interface $ZodISOTime extends $ZodType {
309
+ _zod: $ZodISOTimeInternals;
310
+ }
311
+ declare const $ZodISOTime: $constructor<$ZodISOTime>;
312
+ interface $ZodISODurationInternals extends $ZodStringFormatInternals<"duration"> {}
313
+ interface $ZodISODuration extends $ZodType {
314
+ _zod: $ZodISODurationInternals;
315
+ }
316
+ declare const $ZodISODuration: $constructor<$ZodISODuration>;
317
+ interface $ZodIPv4Def extends $ZodStringFormatDef<"ipv4"> {
318
+ version?: "v4";
319
+ }
320
+ interface $ZodIPv4Internals extends $ZodStringFormatInternals<"ipv4"> {
321
+ def: $ZodIPv4Def;
322
+ }
323
+ interface $ZodIPv4 extends $ZodType {
324
+ _zod: $ZodIPv4Internals;
325
+ }
326
+ declare const $ZodIPv4: $constructor<$ZodIPv4>;
327
+ interface $ZodIPv6Def extends $ZodStringFormatDef<"ipv6"> {
328
+ version?: "v6";
329
+ }
330
+ interface $ZodIPv6Internals extends $ZodStringFormatInternals<"ipv6"> {
331
+ def: $ZodIPv6Def;
332
+ }
333
+ interface $ZodIPv6 extends $ZodType {
334
+ _zod: $ZodIPv6Internals;
335
+ }
336
+ declare const $ZodIPv6: $constructor<$ZodIPv6>;
337
+ interface $ZodCIDRv4Def extends $ZodStringFormatDef<"cidrv4"> {
338
+ version?: "v4";
339
+ }
340
+ interface $ZodCIDRv4Internals extends $ZodStringFormatInternals<"cidrv4"> {
341
+ def: $ZodCIDRv4Def;
342
+ }
343
+ interface $ZodCIDRv4 extends $ZodType {
344
+ _zod: $ZodCIDRv4Internals;
345
+ }
346
+ declare const $ZodCIDRv4: $constructor<$ZodCIDRv4>;
347
+ interface $ZodCIDRv6Def extends $ZodStringFormatDef<"cidrv6"> {
348
+ version?: "v6";
349
+ }
350
+ interface $ZodCIDRv6Internals extends $ZodStringFormatInternals<"cidrv6"> {
351
+ def: $ZodCIDRv6Def;
352
+ }
353
+ interface $ZodCIDRv6 extends $ZodType {
354
+ _zod: $ZodCIDRv6Internals;
355
+ }
356
+ declare const $ZodCIDRv6: $constructor<$ZodCIDRv6>;
357
+ interface $ZodBase64Internals extends $ZodStringFormatInternals<"base64"> {}
358
+ interface $ZodBase64 extends $ZodType {
359
+ _zod: $ZodBase64Internals;
360
+ }
361
+ declare const $ZodBase64: $constructor<$ZodBase64>;
362
+ interface $ZodBase64URLInternals extends $ZodStringFormatInternals<"base64url"> {}
363
+ interface $ZodBase64URL extends $ZodType {
364
+ _zod: $ZodBase64URLInternals;
365
+ }
366
+ declare const $ZodBase64URL: $constructor<$ZodBase64URL>;
367
+ interface $ZodE164Internals extends $ZodStringFormatInternals<"e164"> {}
368
+ interface $ZodE164 extends $ZodType {
369
+ _zod: $ZodE164Internals;
370
+ }
371
+ declare const $ZodE164: $constructor<$ZodE164>;
372
+ interface $ZodJWTDef extends $ZodStringFormatDef<"jwt"> {
373
+ alg?: JWTAlgorithm | undefined;
374
+ }
375
+ interface $ZodJWTInternals extends $ZodStringFormatInternals<"jwt"> {
376
+ def: $ZodJWTDef;
377
+ }
378
+ interface $ZodJWT extends $ZodType {
379
+ _zod: $ZodJWTInternals;
380
+ }
381
+ declare const $ZodJWT: $constructor<$ZodJWT>;
382
+ interface $ZodNumberDef extends $ZodTypeDef {
383
+ type: "number";
384
+ coerce?: boolean;
385
+ }
386
+ interface $ZodNumberInternals<Input = unknown> extends $ZodTypeInternals<number, Input> {
387
+ def: $ZodNumberDef;
388
+ /** @deprecated Internal API, use with caution (not deprecated) */
389
+ pattern: RegExp;
390
+ /** @deprecated Internal API, use with caution (not deprecated) */
391
+ isst: $ZodIssueInvalidType;
392
+ bag: LoosePartial<{
393
+ minimum: number;
394
+ maximum: number;
395
+ exclusiveMinimum: number;
396
+ exclusiveMaximum: number;
397
+ format: string;
398
+ pattern: RegExp;
399
+ }>;
400
+ }
401
+ interface $ZodArrayDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
402
+ type: "array";
403
+ element: T$1;
404
+ }
405
+ interface $ZodArrayInternals<T$1 extends SomeType = $ZodType> extends _$ZodTypeInternals {
406
+ def: $ZodArrayDef<T$1>;
407
+ isst: $ZodIssueInvalidType;
408
+ output: output<T$1>[];
409
+ input: input<T$1>[];
410
+ }
411
+ interface $ZodArray<T$1 extends SomeType = $ZodType> extends $ZodType<any, any, $ZodArrayInternals<T$1>> {}
412
+ declare const $ZodArray: $constructor<$ZodArray>;
413
+ type OptionalOutSchema = {
414
+ _zod: {
415
+ optout: "optional";
416
+ };
417
+ };
418
+ type OptionalInSchema = {
419
+ _zod: {
420
+ optin: "optional";
421
+ };
422
+ };
423
+ type $InferObjectOutput<T$1 extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T$1 ? IsAny<T$1[keyof T$1]> extends true ? Record<string, unknown> : Record<string, output<T$1[keyof T$1]>> : keyof (T$1 & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T$1 as T$1[k] extends OptionalOutSchema ? never : k]: T$1[k]["_zod"]["output"] } & { -readonly [k in keyof T$1 as T$1[k] extends OptionalOutSchema ? k : never]?: T$1[k]["_zod"]["output"] } & Extra>;
424
+ type $InferObjectInput<T$1 extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T$1 ? IsAny<T$1[keyof T$1]> extends true ? Record<string, unknown> : Record<string, input<T$1[keyof T$1]>> : keyof (T$1 & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T$1 as T$1[k] extends OptionalInSchema ? never : k]: T$1[k]["_zod"]["input"] } & { -readonly [k in keyof T$1 as T$1[k] extends OptionalInSchema ? k : never]?: T$1[k]["_zod"]["input"] } & Extra>;
425
+ type $ZodObjectConfig = {
426
+ out: Record<string, unknown>;
427
+ in: Record<string, unknown>;
428
+ };
429
+ type $loose = {
430
+ out: Record<string, unknown>;
431
+ in: Record<string, unknown>;
432
+ };
433
+ type $strict = {
434
+ out: {};
435
+ in: {};
436
+ };
437
+ type $strip = {
438
+ out: {};
439
+ in: {};
440
+ };
441
+ type $catchall<T$1 extends SomeType> = {
442
+ out: {
443
+ [k: string]: output<T$1>;
444
+ };
445
+ in: {
446
+ [k: string]: input<T$1>;
447
+ };
448
+ };
449
+ type $ZodShape = Readonly<{
450
+ [k: string]: $ZodType;
451
+ }>;
452
+ interface $ZodObjectDef<Shape extends $ZodShape = $ZodShape> extends $ZodTypeDef {
453
+ type: "object";
454
+ shape: Shape;
455
+ catchall?: $ZodType | undefined;
456
+ }
457
+ interface $ZodObjectInternals< /** @ts-ignore Cast variance */
458
+ out Shape extends $ZodShape = $ZodShape, out Config$1 extends $ZodObjectConfig = $ZodObjectConfig> extends _$ZodTypeInternals {
459
+ def: $ZodObjectDef<Shape>;
460
+ config: Config$1;
461
+ isst: $ZodIssueInvalidType | $ZodIssueUnrecognizedKeys;
462
+ propValues: PropValues;
463
+ output: $InferObjectOutput<Shape, Config$1["out"]>;
464
+ input: $InferObjectInput<Shape, Config$1["in"]>;
465
+ optin?: "optional" | undefined;
466
+ optout?: "optional" | undefined;
467
+ }
468
+ type $ZodLooseShape = Record<string, any>;
469
+ interface $ZodObject< /** @ts-ignore Cast variance */
470
+ out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Params$1 extends $ZodObjectConfig = $ZodObjectConfig> extends $ZodType<any, any, $ZodObjectInternals<Shape, Params$1>> {
471
+ "~standard": $ZodStandardSchema<this>;
472
+ }
473
+ declare const $ZodObject: $constructor<$ZodObject>;
474
+ type $InferUnionOutput<T$1 extends SomeType> = T$1 extends any ? output<T$1> : never;
475
+ type $InferUnionInput<T$1 extends SomeType> = T$1 extends any ? input<T$1> : never;
476
+ interface $ZodUnionDef<Options extends readonly SomeType[] = readonly $ZodType[]> extends $ZodTypeDef {
477
+ type: "union";
478
+ options: Options;
479
+ }
480
+ type IsOptionalIn<T$1 extends SomeType> = T$1 extends OptionalInSchema ? true : false;
481
+ type IsOptionalOut<T$1 extends SomeType> = T$1 extends OptionalOutSchema ? true : false;
482
+ interface $ZodUnionInternals<T$1 extends readonly SomeType[] = readonly $ZodType[]> extends _$ZodTypeInternals {
483
+ def: $ZodUnionDef<T$1>;
484
+ isst: $ZodIssueInvalidUnion;
485
+ pattern: T$1[number]["_zod"]["pattern"];
486
+ values: T$1[number]["_zod"]["values"];
487
+ output: $InferUnionOutput<T$1[number]>;
488
+ input: $InferUnionInput<T$1[number]>;
489
+ optin: IsOptionalIn<T$1[number]> extends false ? "optional" | undefined : "optional";
490
+ optout: IsOptionalOut<T$1[number]> extends false ? "optional" | undefined : "optional";
491
+ }
492
+ interface $ZodUnion<T$1 extends readonly SomeType[] = readonly $ZodType[]> extends $ZodType<any, any, $ZodUnionInternals<T$1>> {
493
+ _zod: $ZodUnionInternals<T$1>;
494
+ }
495
+ declare const $ZodUnion: $constructor<$ZodUnion>;
496
+ interface $ZodIntersectionDef<Left extends SomeType = $ZodType, Right extends SomeType = $ZodType> extends $ZodTypeDef {
497
+ type: "intersection";
498
+ left: Left;
499
+ right: Right;
500
+ }
501
+ interface $ZodIntersectionInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _$ZodTypeInternals {
502
+ def: $ZodIntersectionDef<A, B>;
503
+ isst: never;
504
+ optin: A["_zod"]["optin"] | B["_zod"]["optin"];
505
+ optout: A["_zod"]["optout"] | B["_zod"]["optout"];
506
+ output: output<A> & output<B>;
507
+ input: input<A> & input<B>;
508
+ }
509
+ interface $ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
510
+ _zod: $ZodIntersectionInternals<A, B>;
511
+ }
512
+ declare const $ZodIntersection: $constructor<$ZodIntersection>;
513
+ type $ZodRecordKey = $ZodType<string | number | symbol, string | number | symbol>;
514
+ interface $ZodRecordDef<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeDef {
515
+ type: "record";
516
+ keyType: Key;
517
+ valueType: Value;
518
+ }
519
+ type $InferZodRecordOutput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<output<Key>, output<Value>>> : Record<output<Key>, output<Value>>;
520
+ type $InferZodRecordInput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<input<Key>, input<Value>>> : Record<input<Key>, input<Value>>;
521
+ interface $ZodRecordInternals<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeInternals<$InferZodRecordOutput<Key, Value>, $InferZodRecordInput<Key, Value>> {
522
+ def: $ZodRecordDef<Key, Value>;
523
+ isst: $ZodIssueInvalidType | $ZodIssueInvalidKey<Record<PropertyKey, unknown>>;
524
+ optin?: "optional" | undefined;
525
+ optout?: "optional" | undefined;
526
+ }
527
+ type $partial = {
528
+ "~~partial": true;
529
+ };
530
+ interface $ZodRecord<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodType {
531
+ _zod: $ZodRecordInternals<Key, Value>;
532
+ }
533
+ declare const $ZodRecord: $constructor<$ZodRecord>;
534
+ type $InferEnumOutput<T$1 extends EnumLike> = T$1[keyof T$1] & {};
535
+ type $InferEnumInput<T$1 extends EnumLike> = T$1[keyof T$1] & {};
536
+ interface $ZodEnumDef<T$1 extends EnumLike = EnumLike> extends $ZodTypeDef {
537
+ type: "enum";
538
+ entries: T$1;
539
+ }
540
+ interface $ZodEnumInternals< /** @ts-ignore Cast variance */
541
+ out T$1 extends EnumLike = EnumLike> extends $ZodTypeInternals<$InferEnumOutput<T$1>, $InferEnumInput<T$1>> {
542
+ def: $ZodEnumDef<T$1>;
543
+ /** @deprecated Internal API, use with caution (not deprecated) */
544
+ values: PrimitiveSet;
545
+ /** @deprecated Internal API, use with caution (not deprecated) */
546
+ pattern: RegExp;
547
+ isst: $ZodIssueInvalidValue;
548
+ }
549
+ interface $ZodEnum<T$1 extends EnumLike = EnumLike> extends $ZodType {
550
+ _zod: $ZodEnumInternals<T$1>;
551
+ }
552
+ declare const $ZodEnum: $constructor<$ZodEnum>;
553
+ interface $ZodTransformDef extends $ZodTypeDef {
554
+ type: "transform";
555
+ transform: (input: unknown, payload: ParsePayload<unknown>) => MaybeAsync<unknown>;
556
+ }
557
+ interface $ZodTransformInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I> {
558
+ def: $ZodTransformDef;
559
+ isst: never;
560
+ }
561
+ interface $ZodTransform<O = unknown, I = unknown> extends $ZodType {
562
+ _zod: $ZodTransformInternals<O, I>;
563
+ }
564
+ declare const $ZodTransform: $constructor<$ZodTransform>;
565
+ interface $ZodOptionalDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
566
+ type: "optional";
567
+ innerType: T$1;
568
+ }
569
+ interface $ZodOptionalInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<output<T$1> | undefined, input<T$1> | undefined> {
570
+ def: $ZodOptionalDef<T$1>;
571
+ optin: "optional";
572
+ optout: "optional";
573
+ isst: never;
574
+ values: T$1["_zod"]["values"];
575
+ pattern: T$1["_zod"]["pattern"];
576
+ }
577
+ interface $ZodOptional<T$1 extends SomeType = $ZodType> extends $ZodType {
578
+ _zod: $ZodOptionalInternals<T$1>;
579
+ }
580
+ declare const $ZodOptional: $constructor<$ZodOptional>;
581
+ interface $ZodNullableDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
582
+ type: "nullable";
583
+ innerType: T$1;
584
+ }
585
+ interface $ZodNullableInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<output<T$1> | null, input<T$1> | null> {
586
+ def: $ZodNullableDef<T$1>;
587
+ optin: T$1["_zod"]["optin"];
588
+ optout: T$1["_zod"]["optout"];
589
+ isst: never;
590
+ values: T$1["_zod"]["values"];
591
+ pattern: T$1["_zod"]["pattern"];
592
+ }
593
+ interface $ZodNullable<T$1 extends SomeType = $ZodType> extends $ZodType {
594
+ _zod: $ZodNullableInternals<T$1>;
595
+ }
596
+ declare const $ZodNullable: $constructor<$ZodNullable>;
597
+ interface $ZodDefaultDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
598
+ type: "default";
599
+ innerType: T$1;
600
+ /** The default value. May be a getter. */
601
+ defaultValue: NoUndefined<output<T$1>>;
602
+ }
603
+ interface $ZodDefaultInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T$1>>, input<T$1> | undefined> {
604
+ def: $ZodDefaultDef<T$1>;
605
+ optin: "optional";
606
+ optout?: "optional" | undefined;
607
+ isst: never;
608
+ values: T$1["_zod"]["values"];
609
+ }
610
+ interface $ZodDefault<T$1 extends SomeType = $ZodType> extends $ZodType {
611
+ _zod: $ZodDefaultInternals<T$1>;
612
+ }
613
+ declare const $ZodDefault: $constructor<$ZodDefault>;
614
+ interface $ZodPrefaultDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
615
+ type: "prefault";
616
+ innerType: T$1;
617
+ /** The default value. May be a getter. */
618
+ defaultValue: input<T$1>;
619
+ }
620
+ interface $ZodPrefaultInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T$1>>, input<T$1> | undefined> {
621
+ def: $ZodPrefaultDef<T$1>;
622
+ optin: "optional";
623
+ optout?: "optional" | undefined;
624
+ isst: never;
625
+ values: T$1["_zod"]["values"];
626
+ }
627
+ interface $ZodPrefault<T$1 extends SomeType = $ZodType> extends $ZodType {
628
+ _zod: $ZodPrefaultInternals<T$1>;
629
+ }
630
+ declare const $ZodPrefault: $constructor<$ZodPrefault>;
631
+ interface $ZodNonOptionalDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
632
+ type: "nonoptional";
633
+ innerType: T$1;
634
+ }
635
+ interface $ZodNonOptionalInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T$1>>, NoUndefined<input<T$1>>> {
636
+ def: $ZodNonOptionalDef<T$1>;
637
+ isst: $ZodIssueInvalidType;
638
+ values: T$1["_zod"]["values"];
639
+ optin: "optional" | undefined;
640
+ optout: "optional" | undefined;
641
+ }
642
+ interface $ZodNonOptional<T$1 extends SomeType = $ZodType> extends $ZodType {
643
+ _zod: $ZodNonOptionalInternals<T$1>;
644
+ }
645
+ declare const $ZodNonOptional: $constructor<$ZodNonOptional>;
646
+ interface $ZodCatchCtx extends ParsePayload {
647
+ /** @deprecated Use `ctx.issues` */
648
+ error: {
649
+ issues: $ZodIssue[];
650
+ };
651
+ /** @deprecated Use `ctx.value` */
652
+ input: unknown;
653
+ }
654
+ interface $ZodCatchDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
655
+ type: "catch";
656
+ innerType: T$1;
657
+ catchValue: (ctx: $ZodCatchCtx) => unknown;
658
+ }
659
+ interface $ZodCatchInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<output<T$1>, input<T$1>> {
660
+ def: $ZodCatchDef<T$1>;
661
+ optin: T$1["_zod"]["optin"];
662
+ optout: T$1["_zod"]["optout"];
663
+ isst: never;
664
+ values: T$1["_zod"]["values"];
665
+ }
666
+ interface $ZodCatch<T$1 extends SomeType = $ZodType> extends $ZodType {
667
+ _zod: $ZodCatchInternals<T$1>;
668
+ }
669
+ declare const $ZodCatch: $constructor<$ZodCatch>;
670
+ interface $ZodPipeDef<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeDef {
671
+ type: "pipe";
672
+ in: A;
673
+ out: B;
674
+ /** Only defined inside $ZodCodec instances. */
675
+ transform?: (value: output<A>, payload: ParsePayload<output<A>>) => MaybeAsync<input<B>>;
676
+ /** Only defined inside $ZodCodec instances. */
677
+ reverseTransform?: (value: input<B>, payload: ParsePayload<input<B>>) => MaybeAsync<output<A>>;
678
+ }
679
+ interface $ZodPipeInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeInternals<output<B>, input<A>> {
680
+ def: $ZodPipeDef<A, B>;
681
+ isst: never;
682
+ values: A["_zod"]["values"];
683
+ optin: A["_zod"]["optin"];
684
+ optout: B["_zod"]["optout"];
685
+ propValues: A["_zod"]["propValues"];
686
+ }
687
+ interface $ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
688
+ _zod: $ZodPipeInternals<A, B>;
689
+ }
690
+ declare const $ZodPipe: $constructor<$ZodPipe>;
691
+ interface $ZodReadonlyDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
692
+ type: "readonly";
693
+ innerType: T$1;
694
+ }
695
+ interface $ZodReadonlyInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<MakeReadonly<output<T$1>>, MakeReadonly<input<T$1>>> {
696
+ def: $ZodReadonlyDef<T$1>;
697
+ optin: T$1["_zod"]["optin"];
698
+ optout: T$1["_zod"]["optout"];
699
+ isst: never;
700
+ propValues: T$1["_zod"]["propValues"];
701
+ values: T$1["_zod"]["values"];
702
+ }
703
+ interface $ZodReadonly<T$1 extends SomeType = $ZodType> extends $ZodType {
704
+ _zod: $ZodReadonlyInternals<T$1>;
705
+ }
706
+ declare const $ZodReadonly: $constructor<$ZodReadonly>;
707
+ interface $ZodCustomDef<O = unknown> extends $ZodTypeDef, $ZodCheckDef {
708
+ type: "custom";
709
+ check: "custom";
710
+ path?: PropertyKey[] | undefined;
711
+ error?: $ZodErrorMap | undefined;
712
+ params?: Record<string, any> | undefined;
713
+ fn: (arg: O) => unknown;
714
+ }
715
+ interface $ZodCustomInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I>, $ZodCheckInternals<O> {
716
+ def: $ZodCustomDef;
717
+ issc: $ZodIssue;
718
+ isst: never;
719
+ bag: LoosePartial<{
720
+ Class: typeof Class;
721
+ }>;
722
+ }
723
+ interface $ZodCustom<O = unknown, I = unknown> extends $ZodType {
724
+ _zod: $ZodCustomInternals<O, I>;
725
+ }
726
+ declare const $ZodCustom: $constructor<$ZodCustom>;
727
+ //#endregion
728
+ //#region node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/checks.d.cts
729
+ interface $ZodCheckDef {
730
+ check: string;
731
+ error?: $ZodErrorMap<never> | undefined;
732
+ /** If true, no later checks will be executed if this check fails. Default `false`. */
733
+ abort?: boolean | undefined;
734
+ /** If provided, this check will only be executed if the function returns `true`. Defaults to `payload => z.util.isAborted(payload)`. */
735
+ when?: ((payload: ParsePayload) => boolean) | undefined;
736
+ }
737
+ interface $ZodCheckInternals<T$1> {
738
+ def: $ZodCheckDef;
739
+ /** The set of issues this check might throw. */
740
+ issc?: $ZodIssueBase;
741
+ check(payload: ParsePayload<T$1>): MaybeAsync<void>;
742
+ onattach: ((schema: $ZodType) => void)[];
743
+ }
744
+ interface $ZodCheck<in T$1 = never> {
745
+ _zod: $ZodCheckInternals<T$1>;
746
+ }
747
+ declare const $ZodCheck: $constructor<$ZodCheck<any>>;
748
+ interface $ZodCheckLessThanDef extends $ZodCheckDef {
749
+ check: "less_than";
750
+ value: Numeric;
751
+ inclusive: boolean;
752
+ }
753
+ interface $ZodCheckLessThanInternals<T$1 extends Numeric = Numeric> extends $ZodCheckInternals<T$1> {
754
+ def: $ZodCheckLessThanDef;
755
+ issc: $ZodIssueTooBig<T$1>;
756
+ }
757
+ interface $ZodCheckLessThan<T$1 extends Numeric = Numeric> extends $ZodCheck<T$1> {
758
+ _zod: $ZodCheckLessThanInternals<T$1>;
759
+ }
760
+ declare const $ZodCheckLessThan: $constructor<$ZodCheckLessThan>;
761
+ interface $ZodCheckGreaterThanDef extends $ZodCheckDef {
762
+ check: "greater_than";
763
+ value: Numeric;
764
+ inclusive: boolean;
765
+ }
766
+ interface $ZodCheckGreaterThanInternals<T$1 extends Numeric = Numeric> extends $ZodCheckInternals<T$1> {
767
+ def: $ZodCheckGreaterThanDef;
768
+ issc: $ZodIssueTooSmall<T$1>;
769
+ }
770
+ interface $ZodCheckGreaterThan<T$1 extends Numeric = Numeric> extends $ZodCheck<T$1> {
771
+ _zod: $ZodCheckGreaterThanInternals<T$1>;
772
+ }
773
+ declare const $ZodCheckGreaterThan: $constructor<$ZodCheckGreaterThan>;
774
+ interface $ZodCheckMultipleOfDef<T$1 extends number | bigint = number | bigint> extends $ZodCheckDef {
775
+ check: "multiple_of";
776
+ value: T$1;
777
+ }
778
+ interface $ZodCheckMultipleOfInternals<T$1 extends number | bigint = number | bigint> extends $ZodCheckInternals<T$1> {
779
+ def: $ZodCheckMultipleOfDef<T$1>;
780
+ issc: $ZodIssueNotMultipleOf;
781
+ }
782
+ interface $ZodCheckMultipleOf<T$1 extends number | bigint = number | bigint> extends $ZodCheck<T$1> {
783
+ _zod: $ZodCheckMultipleOfInternals<T$1>;
784
+ }
785
+ declare const $ZodCheckMultipleOf: $constructor<$ZodCheckMultipleOf<number | bigint>>;
786
+ type $ZodNumberFormats = "int32" | "uint32" | "float32" | "float64" | "safeint";
787
+ interface $ZodCheckNumberFormatDef extends $ZodCheckDef {
788
+ check: "number_format";
789
+ format: $ZodNumberFormats;
790
+ }
791
+ interface $ZodCheckNumberFormatInternals extends $ZodCheckInternals<number> {
792
+ def: $ZodCheckNumberFormatDef;
793
+ issc: $ZodIssueInvalidType | $ZodIssueTooBig<"number"> | $ZodIssueTooSmall<"number">;
794
+ }
795
+ interface $ZodCheckNumberFormat extends $ZodCheck<number> {
796
+ _zod: $ZodCheckNumberFormatInternals;
797
+ }
798
+ declare const $ZodCheckNumberFormat: $constructor<$ZodCheckNumberFormat>;
799
+ interface $ZodCheckMaxLengthDef extends $ZodCheckDef {
800
+ check: "max_length";
801
+ maximum: number;
802
+ }
803
+ interface $ZodCheckMaxLengthInternals<T$1 extends HasLength = HasLength> extends $ZodCheckInternals<T$1> {
804
+ def: $ZodCheckMaxLengthDef;
805
+ issc: $ZodIssueTooBig<T$1>;
806
+ }
807
+ interface $ZodCheckMaxLength<T$1 extends HasLength = HasLength> extends $ZodCheck<T$1> {
808
+ _zod: $ZodCheckMaxLengthInternals<T$1>;
809
+ }
810
+ declare const $ZodCheckMaxLength: $constructor<$ZodCheckMaxLength>;
811
+ interface $ZodCheckMinLengthDef extends $ZodCheckDef {
812
+ check: "min_length";
813
+ minimum: number;
814
+ }
815
+ interface $ZodCheckMinLengthInternals<T$1 extends HasLength = HasLength> extends $ZodCheckInternals<T$1> {
816
+ def: $ZodCheckMinLengthDef;
817
+ issc: $ZodIssueTooSmall<T$1>;
818
+ }
819
+ interface $ZodCheckMinLength<T$1 extends HasLength = HasLength> extends $ZodCheck<T$1> {
820
+ _zod: $ZodCheckMinLengthInternals<T$1>;
821
+ }
822
+ declare const $ZodCheckMinLength: $constructor<$ZodCheckMinLength>;
823
+ interface $ZodCheckLengthEqualsDef extends $ZodCheckDef {
824
+ check: "length_equals";
825
+ length: number;
826
+ }
827
+ interface $ZodCheckLengthEqualsInternals<T$1 extends HasLength = HasLength> extends $ZodCheckInternals<T$1> {
828
+ def: $ZodCheckLengthEqualsDef;
829
+ issc: $ZodIssueTooBig<T$1> | $ZodIssueTooSmall<T$1>;
830
+ }
831
+ interface $ZodCheckLengthEquals<T$1 extends HasLength = HasLength> extends $ZodCheck<T$1> {
832
+ _zod: $ZodCheckLengthEqualsInternals<T$1>;
833
+ }
834
+ declare const $ZodCheckLengthEquals: $constructor<$ZodCheckLengthEquals>;
835
+ type $ZodStringFormats = "email" | "url" | "emoji" | "uuid" | "guid" | "nanoid" | "cuid" | "cuid2" | "ulid" | "xid" | "ksuid" | "datetime" | "date" | "time" | "duration" | "ipv4" | "ipv6" | "cidrv4" | "cidrv6" | "base64" | "base64url" | "json_string" | "e164" | "lowercase" | "uppercase" | "regex" | "jwt" | "starts_with" | "ends_with" | "includes";
836
+ interface $ZodCheckStringFormatDef<Format extends string = string> extends $ZodCheckDef {
837
+ check: "string_format";
838
+ format: Format;
839
+ pattern?: RegExp | undefined;
840
+ }
841
+ interface $ZodCheckStringFormatInternals extends $ZodCheckInternals<string> {
842
+ def: $ZodCheckStringFormatDef;
843
+ issc: $ZodIssueInvalidStringFormat;
844
+ }
845
+ interface $ZodCheckRegexDef extends $ZodCheckStringFormatDef {
846
+ format: "regex";
847
+ pattern: RegExp;
848
+ }
849
+ interface $ZodCheckRegexInternals extends $ZodCheckInternals<string> {
850
+ def: $ZodCheckRegexDef;
851
+ issc: $ZodIssueInvalidStringFormat;
852
+ }
853
+ interface $ZodCheckRegex extends $ZodCheck<string> {
854
+ _zod: $ZodCheckRegexInternals;
855
+ }
856
+ declare const $ZodCheckRegex: $constructor<$ZodCheckRegex>;
857
+ interface $ZodCheckLowerCaseDef extends $ZodCheckStringFormatDef<"lowercase"> {}
858
+ interface $ZodCheckLowerCaseInternals extends $ZodCheckInternals<string> {
859
+ def: $ZodCheckLowerCaseDef;
860
+ issc: $ZodIssueInvalidStringFormat;
861
+ }
862
+ interface $ZodCheckLowerCase extends $ZodCheck<string> {
863
+ _zod: $ZodCheckLowerCaseInternals;
864
+ }
865
+ declare const $ZodCheckLowerCase: $constructor<$ZodCheckLowerCase>;
866
+ interface $ZodCheckUpperCaseDef extends $ZodCheckStringFormatDef<"uppercase"> {}
867
+ interface $ZodCheckUpperCaseInternals extends $ZodCheckInternals<string> {
868
+ def: $ZodCheckUpperCaseDef;
869
+ issc: $ZodIssueInvalidStringFormat;
870
+ }
871
+ interface $ZodCheckUpperCase extends $ZodCheck<string> {
872
+ _zod: $ZodCheckUpperCaseInternals;
873
+ }
874
+ declare const $ZodCheckUpperCase: $constructor<$ZodCheckUpperCase>;
875
+ interface $ZodCheckIncludesDef extends $ZodCheckStringFormatDef<"includes"> {
876
+ includes: string;
877
+ position?: number | undefined;
878
+ }
879
+ interface $ZodCheckIncludesInternals extends $ZodCheckInternals<string> {
880
+ def: $ZodCheckIncludesDef;
881
+ issc: $ZodIssueInvalidStringFormat;
882
+ }
883
+ interface $ZodCheckIncludes extends $ZodCheck<string> {
884
+ _zod: $ZodCheckIncludesInternals;
885
+ }
886
+ declare const $ZodCheckIncludes: $constructor<$ZodCheckIncludes>;
887
+ interface $ZodCheckStartsWithDef extends $ZodCheckStringFormatDef<"starts_with"> {
888
+ prefix: string;
889
+ }
890
+ interface $ZodCheckStartsWithInternals extends $ZodCheckInternals<string> {
891
+ def: $ZodCheckStartsWithDef;
892
+ issc: $ZodIssueInvalidStringFormat;
893
+ }
894
+ interface $ZodCheckStartsWith extends $ZodCheck<string> {
895
+ _zod: $ZodCheckStartsWithInternals;
896
+ }
897
+ declare const $ZodCheckStartsWith: $constructor<$ZodCheckStartsWith>;
898
+ interface $ZodCheckEndsWithDef extends $ZodCheckStringFormatDef<"ends_with"> {
899
+ suffix: string;
900
+ }
901
+ interface $ZodCheckEndsWithInternals extends $ZodCheckInternals<string> {
902
+ def: $ZodCheckEndsWithDef;
903
+ issc: $ZodIssueInvalidStringFormat;
904
+ }
905
+ interface $ZodCheckEndsWith extends $ZodCheckInternals<string> {
906
+ _zod: $ZodCheckEndsWithInternals;
907
+ }
908
+ declare const $ZodCheckEndsWith: $constructor<$ZodCheckEndsWith>;
909
+ //#endregion
910
+ //#region node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/errors.d.cts
911
+ interface $ZodIssueBase {
912
+ readonly code?: string;
913
+ readonly input?: unknown;
914
+ readonly path: PropertyKey[];
915
+ readonly message: string;
916
+ }
917
+ interface $ZodIssueInvalidType<Input = unknown> extends $ZodIssueBase {
918
+ readonly code: "invalid_type";
919
+ readonly expected: $ZodType["_zod"]["def"]["type"];
920
+ readonly input?: Input;
921
+ }
922
+ interface $ZodIssueTooBig<Input = unknown> extends $ZodIssueBase {
923
+ readonly code: "too_big";
924
+ readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
925
+ readonly maximum: number | bigint;
926
+ readonly inclusive?: boolean;
927
+ readonly exact?: boolean;
928
+ readonly input?: Input;
929
+ }
930
+ interface $ZodIssueTooSmall<Input = unknown> extends $ZodIssueBase {
931
+ readonly code: "too_small";
932
+ readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
933
+ readonly minimum: number | bigint;
934
+ /** True if the allowable range includes the minimum */
935
+ readonly inclusive?: boolean;
936
+ /** True if the allowed value is fixed (e.g.` z.length(5)`), not a range (`z.minLength(5)`) */
937
+ readonly exact?: boolean;
938
+ readonly input?: Input;
939
+ }
940
+ interface $ZodIssueInvalidStringFormat extends $ZodIssueBase {
941
+ readonly code: "invalid_format";
942
+ readonly format: $ZodStringFormats | (string & {});
943
+ readonly pattern?: string;
944
+ readonly input?: string;
945
+ }
946
+ interface $ZodIssueNotMultipleOf<Input extends number | bigint = number | bigint> extends $ZodIssueBase {
947
+ readonly code: "not_multiple_of";
948
+ readonly divisor: number;
949
+ readonly input?: Input;
950
+ }
951
+ interface $ZodIssueUnrecognizedKeys extends $ZodIssueBase {
952
+ readonly code: "unrecognized_keys";
953
+ readonly keys: string[];
954
+ readonly input?: Record<string, unknown>;
955
+ }
956
+ interface $ZodIssueInvalidUnion extends $ZodIssueBase {
957
+ readonly code: "invalid_union";
958
+ readonly errors: $ZodIssue[][];
959
+ readonly input?: unknown;
960
+ readonly discriminator?: string | undefined;
961
+ }
962
+ interface $ZodIssueInvalidKey<Input = unknown> extends $ZodIssueBase {
963
+ readonly code: "invalid_key";
964
+ readonly origin: "map" | "record";
965
+ readonly issues: $ZodIssue[];
966
+ readonly input?: Input;
967
+ }
968
+ interface $ZodIssueInvalidElement<Input = unknown> extends $ZodIssueBase {
969
+ readonly code: "invalid_element";
970
+ readonly origin: "map" | "set";
971
+ readonly key: unknown;
972
+ readonly issues: $ZodIssue[];
973
+ readonly input?: Input;
974
+ }
975
+ interface $ZodIssueInvalidValue<Input = unknown> extends $ZodIssueBase {
976
+ readonly code: "invalid_value";
977
+ readonly values: Primitive[];
978
+ readonly input?: Input;
979
+ }
980
+ interface $ZodIssueCustom extends $ZodIssueBase {
981
+ readonly code: "custom";
982
+ readonly params?: Record<string, any> | undefined;
983
+ readonly input?: unknown;
984
+ }
985
+ type $ZodIssue = $ZodIssueInvalidType | $ZodIssueTooBig | $ZodIssueTooSmall | $ZodIssueInvalidStringFormat | $ZodIssueNotMultipleOf | $ZodIssueUnrecognizedKeys | $ZodIssueInvalidUnion | $ZodIssueInvalidKey | $ZodIssueInvalidElement | $ZodIssueInvalidValue | $ZodIssueCustom;
986
+ type $ZodInternalIssue<T$1 extends $ZodIssueBase = $ZodIssue> = T$1 extends any ? RawIssue$1<T$1> : never;
987
+ type RawIssue$1<T$1 extends $ZodIssueBase> = T$1 extends any ? Flatten<MakePartial<T$1, "message" | "path"> & {
988
+ /** The input data */
989
+ readonly input: unknown;
990
+ /** The schema or check that originated this issue. */
991
+ readonly inst?: $ZodType | $ZodCheck;
992
+ /** If `true`, Zod will continue executing checks/refinements after this issue. */
993
+ readonly continue?: boolean | undefined;
994
+ } & Record<string, unknown>> : never;
995
+ type $ZodRawIssue<T$1 extends $ZodIssueBase = $ZodIssue> = $ZodInternalIssue<T$1>;
996
+ interface $ZodErrorMap<T$1 extends $ZodIssueBase = $ZodIssue> {
997
+ (issue: $ZodRawIssue<T$1>): {
998
+ message: string;
999
+ } | string | undefined | null;
1000
+ }
1001
+ interface $ZodError<T$1 = unknown> extends Error {
1002
+ type: T$1;
1003
+ issues: $ZodIssue[];
1004
+ _zod: {
1005
+ output: T$1;
1006
+ def: $ZodIssue[];
1007
+ };
1008
+ stack?: string;
1009
+ name: string;
1010
+ }
1011
+ declare const $ZodError: $constructor<$ZodError>;
1012
+ type $ZodFlattenedError<T$1, U = string> = _FlattenedError<T$1, U>;
1013
+ type _FlattenedError<T$1, U = string> = {
1014
+ formErrors: U[];
1015
+ fieldErrors: { [P in keyof T$1]?: U[] };
1016
+ };
1017
+ type _ZodFormattedError<T$1, U = string> = T$1 extends [any, ...any[]] ? { [K in keyof T$1]?: $ZodFormattedError<T$1[K], U> } : T$1 extends any[] ? {
1018
+ [k: number]: $ZodFormattedError<T$1[number], U>;
1019
+ } : T$1 extends object ? Flatten<{ [K in keyof T$1]?: $ZodFormattedError<T$1[K], U> }> : any;
1020
+ type $ZodFormattedError<T$1, U = string> = {
1021
+ _errors: U[];
1022
+ } & Flatten<_ZodFormattedError<T$1, U>>;
1023
+ //#endregion
1024
+ //#region node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/core.d.cts
1025
+ type ZodTrait = {
1026
+ _zod: {
1027
+ def: any;
1028
+ [k: string]: any;
1029
+ };
1030
+ };
1031
+ interface $constructor<T$1 extends ZodTrait, D = T$1["_zod"]["def"]> {
1032
+ new (def: D): T$1;
1033
+ init(inst: T$1, def: D): asserts inst is T$1;
1034
+ }
1035
+ declare function $constructor<T$1 extends ZodTrait, D = T$1["_zod"]["def"]>(name: string, initializer: (inst: T$1, def: D) => void, params?: {
1036
+ Parent?: typeof Class;
1037
+ }): $constructor<T$1, D>;
1038
+ declare const $brand: unique symbol;
1039
+ type $brand<T$1 extends string | number | symbol = string | number | symbol> = {
1040
+ [$brand]: { [k in T$1]: true };
1041
+ };
1042
+ type $ZodBranded<T$1 extends SomeType, Brand extends string | number | symbol> = T$1 & Record<"_zod", Record<"output", output<T$1> & $brand<Brand>>>;
1043
+ type input<T$1> = T$1 extends {
1044
+ _zod: {
1045
+ input: any;
1046
+ };
1047
+ } ? T$1["_zod"]["input"] : unknown;
1048
+ type output<T$1> = T$1 extends {
1049
+ _zod: {
1050
+ output: any;
1051
+ };
1052
+ } ? T$1["_zod"]["output"] : unknown;
1053
+ //#endregion
1054
+ //#region node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/registries.d.cts
1055
+ declare const $output: unique symbol;
1056
+ type $output = typeof $output;
1057
+ declare const $input: unique symbol;
1058
+ type $input = typeof $input;
1059
+ type $replace<Meta, S extends $ZodType> = Meta extends $output ? output<S> : Meta extends $input ? input<S> : Meta extends (infer M)[] ? $replace<M, S>[] : Meta extends ((...args: infer P) => infer R) ? (...args: { [K in keyof P]: $replace<P[K], S> }) => $replace<R, S> : Meta extends object ? { [K in keyof Meta]: $replace<Meta[K], S> } : Meta;
1060
+ type MetadataType = object | undefined;
1061
+ declare class $ZodRegistry<Meta extends MetadataType = MetadataType, Schema extends $ZodType = $ZodType> {
1062
+ _meta: Meta;
1063
+ _schema: Schema;
1064
+ _map: WeakMap<Schema, $replace<Meta, Schema>>;
1065
+ _idmap: Map<string, Schema>;
1066
+ add<S extends Schema>(schema: S, ..._meta: undefined extends Meta ? [$replace<Meta, S>?] : [$replace<Meta, S>]): this;
1067
+ clear(): this;
1068
+ remove(schema: Schema): this;
1069
+ get<S extends Schema>(schema: S): $replace<Meta, S> | undefined;
1070
+ has(schema: Schema): boolean;
1071
+ }
1072
+ interface JSONSchemaMeta {
1073
+ id?: string | undefined;
1074
+ title?: string | undefined;
1075
+ description?: string | undefined;
1076
+ deprecated?: boolean | undefined;
1077
+ [k: string]: unknown;
1078
+ }
1079
+ interface GlobalMeta extends JSONSchemaMeta {}
1080
+ //#endregion
1081
+ //#region node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/api.d.cts
1082
+ type Params<T$1 extends $ZodType | $ZodCheck, IssueTypes extends $ZodIssueBase, OmitKeys extends keyof T$1["_zod"]["def"] = never> = Flatten<Partial<EmptyToNever<Omit<T$1["_zod"]["def"], OmitKeys> & ([IssueTypes] extends [never] ? {} : {
1083
+ error?: string | $ZodErrorMap<IssueTypes> | undefined;
1084
+ /** @deprecated This parameter is deprecated. Use `error` instead. */
1085
+ message?: string | undefined;
1086
+ })>>>;
1087
+ type TypeParams<T$1 extends $ZodType = $ZodType & {
1088
+ _isst: never;
1089
+ }, AlsoOmit extends Exclude<keyof T$1["_zod"]["def"], "type" | "checks" | "error"> = never> = Params<T$1, NonNullable<T$1["_zod"]["isst"]>, "type" | "checks" | "error" | AlsoOmit>;
1090
+ type CheckParams<T$1 extends $ZodCheck = $ZodCheck,
1091
+ // & { _issc: never },
1092
+ AlsoOmit extends Exclude<keyof T$1["_zod"]["def"], "check" | "error"> = never> = Params<T$1, NonNullable<T$1["_zod"]["issc"]>, "check" | "error" | AlsoOmit>;
1093
+ type CheckStringFormatParams<T$1 extends $ZodStringFormat = $ZodStringFormat, AlsoOmit extends Exclude<keyof T$1["_zod"]["def"], "type" | "coerce" | "checks" | "error" | "check" | "format"> = never> = Params<T$1, NonNullable<T$1["_zod"]["issc"]>, "type" | "coerce" | "checks" | "error" | "check" | "format" | AlsoOmit>;
1094
+ type CheckTypeParams<T$1 extends $ZodType & $ZodCheck = $ZodType & $ZodCheck, AlsoOmit extends Exclude<keyof T$1["_zod"]["def"], "type" | "checks" | "error" | "check"> = never> = Params<T$1, NonNullable<T$1["_zod"]["isst"] | T$1["_zod"]["issc"]>, "type" | "checks" | "error" | "check" | AlsoOmit>;
1095
+ type $ZodCheckEmailParams = CheckStringFormatParams<$ZodEmail, "when">;
1096
+ type $ZodCheckGUIDParams = CheckStringFormatParams<$ZodGUID, "pattern" | "when">;
1097
+ type $ZodCheckUUIDParams = CheckStringFormatParams<$ZodUUID, "pattern" | "when">;
1098
+ type $ZodCheckURLParams = CheckStringFormatParams<$ZodURL, "when">;
1099
+ type $ZodCheckEmojiParams = CheckStringFormatParams<$ZodEmoji, "when">;
1100
+ type $ZodCheckNanoIDParams = CheckStringFormatParams<$ZodNanoID, "when">;
1101
+ type $ZodCheckCUIDParams = CheckStringFormatParams<$ZodCUID, "when">;
1102
+ type $ZodCheckCUID2Params = CheckStringFormatParams<$ZodCUID2, "when">;
1103
+ type $ZodCheckULIDParams = CheckStringFormatParams<$ZodULID, "when">;
1104
+ type $ZodCheckXIDParams = CheckStringFormatParams<$ZodXID, "when">;
1105
+ type $ZodCheckKSUIDParams = CheckStringFormatParams<$ZodKSUID, "when">;
1106
+ type $ZodCheckIPv4Params = CheckStringFormatParams<$ZodIPv4, "pattern" | "when" | "version">;
1107
+ type $ZodCheckIPv6Params = CheckStringFormatParams<$ZodIPv6, "pattern" | "when" | "version">;
1108
+ type $ZodCheckCIDRv4Params = CheckStringFormatParams<$ZodCIDRv4, "pattern" | "when">;
1109
+ type $ZodCheckCIDRv6Params = CheckStringFormatParams<$ZodCIDRv6, "pattern" | "when">;
1110
+ type $ZodCheckBase64Params = CheckStringFormatParams<$ZodBase64, "pattern" | "when">;
1111
+ type $ZodCheckBase64URLParams = CheckStringFormatParams<$ZodBase64URL, "pattern" | "when">;
1112
+ type $ZodCheckE164Params = CheckStringFormatParams<$ZodE164, "when">;
1113
+ type $ZodCheckJWTParams = CheckStringFormatParams<$ZodJWT, "pattern" | "when">;
1114
+ type $ZodCheckISODateTimeParams = CheckStringFormatParams<$ZodISODateTime, "pattern" | "when">;
1115
+ type $ZodCheckISODateParams = CheckStringFormatParams<$ZodISODate, "pattern" | "when">;
1116
+ type $ZodCheckISOTimeParams = CheckStringFormatParams<$ZodISOTime, "pattern" | "when">;
1117
+ type $ZodCheckISODurationParams = CheckStringFormatParams<$ZodISODuration, "when">;
1118
+ type $ZodCheckNumberFormatParams = CheckParams<$ZodCheckNumberFormat, "format" | "when">;
1119
+ type $ZodCheckLessThanParams = CheckParams<$ZodCheckLessThan, "inclusive" | "value" | "when">;
1120
+ type $ZodCheckGreaterThanParams = CheckParams<$ZodCheckGreaterThan, "inclusive" | "value" | "when">;
1121
+ type $ZodCheckMultipleOfParams = CheckParams<$ZodCheckMultipleOf, "value" | "when">;
1122
+ type $ZodCheckMaxLengthParams = CheckParams<$ZodCheckMaxLength, "maximum" | "when">;
1123
+ type $ZodCheckMinLengthParams = CheckParams<$ZodCheckMinLength, "minimum" | "when">;
1124
+ type $ZodCheckLengthEqualsParams = CheckParams<$ZodCheckLengthEquals, "length" | "when">;
1125
+ type $ZodCheckRegexParams = CheckParams<$ZodCheckRegex, "format" | "pattern" | "when">;
1126
+ type $ZodCheckLowerCaseParams = CheckParams<$ZodCheckLowerCase, "format" | "when">;
1127
+ type $ZodCheckUpperCaseParams = CheckParams<$ZodCheckUpperCase, "format" | "when">;
1128
+ type $ZodCheckIncludesParams = CheckParams<$ZodCheckIncludes, "includes" | "format" | "when" | "pattern">;
1129
+ type $ZodCheckStartsWithParams = CheckParams<$ZodCheckStartsWith, "prefix" | "format" | "when" | "pattern">;
1130
+ type $ZodCheckEndsWithParams = CheckParams<$ZodCheckEndsWith, "suffix" | "format" | "pattern" | "when">;
1131
+ type $ZodEnumParams = TypeParams<$ZodEnum, "entries">;
1132
+ type $ZodNonOptionalParams = TypeParams<$ZodNonOptional, "innerType">;
1133
+ type $ZodCustomParams = CheckTypeParams<$ZodCustom, "fn">;
1134
+ type $ZodSuperRefineIssue<T$1 extends $ZodIssueBase = $ZodIssue> = T$1 extends any ? RawIssue<T$1> : never;
1135
+ type RawIssue<T$1 extends $ZodIssueBase> = T$1 extends any ? Flatten<MakePartial<T$1, "message" | "path"> & {
1136
+ /** The schema or check that originated this issue. */
1137
+ readonly inst?: $ZodType | $ZodCheck;
1138
+ /** If `true`, Zod will execute subsequent checks/refinements instead of immediately aborting */
1139
+ readonly continue?: boolean | undefined;
1140
+ } & Record<string, unknown>> : never;
1141
+ interface $RefinementCtx<T$1 = unknown> extends ParsePayload<T$1> {
1142
+ addIssue(arg: string | $ZodSuperRefineIssue): void;
1143
+ }
1144
+ //#endregion
1145
+ //#region node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/errors.d.cts
1146
+ /** An Error-like class used to store Zod validation issues. */
1147
+ interface ZodError<T$1 = unknown> extends $ZodError<T$1> {
1148
+ /** @deprecated Use the `z.treeifyError(err)` function instead. */
1149
+ format(): $ZodFormattedError<T$1>;
1150
+ format<U>(mapper: (issue: $ZodIssue) => U): $ZodFormattedError<T$1, U>;
1151
+ /** @deprecated Use the `z.treeifyError(err)` function instead. */
1152
+ flatten(): $ZodFlattenedError<T$1>;
1153
+ flatten<U>(mapper: (issue: $ZodIssue) => U): $ZodFlattenedError<T$1, U>;
1154
+ /** @deprecated Push directly to `.issues` instead. */
1155
+ addIssue(issue: $ZodIssue): void;
1156
+ /** @deprecated Push directly to `.issues` instead. */
1157
+ addIssues(issues: $ZodIssue[]): void;
1158
+ /** @deprecated Check `err.issues.length === 0` instead. */
1159
+ isEmpty: boolean;
1160
+ }
1161
+ declare const ZodError: $constructor<ZodError>;
1162
+ //#endregion
1163
+ //#region node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/parse.d.cts
1164
+ type ZodSafeParseResult<T$1> = ZodSafeParseSuccess<T$1> | ZodSafeParseError<T$1>;
1165
+ type ZodSafeParseSuccess<T$1> = {
1166
+ success: true;
1167
+ data: T$1;
1168
+ error?: never;
1169
+ };
1170
+ type ZodSafeParseError<T$1> = {
1171
+ success: false;
1172
+ data?: never;
1173
+ error: ZodError<T$1>;
1174
+ };
1175
+ //#endregion
1176
+ //#region node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/schemas.d.cts
1177
+ interface ZodType<out Output = unknown, out Input = unknown, out Internals extends $ZodTypeInternals<Output, Input> = $ZodTypeInternals<Output, Input>> extends $ZodType<Output, Input, Internals> {
1178
+ def: Internals["def"];
1179
+ type: Internals["def"]["type"];
1180
+ /** @deprecated Use `.def` instead. */
1181
+ _def: Internals["def"];
1182
+ /** @deprecated Use `z.output<typeof schema>` instead. */
1183
+ _output: Internals["output"];
1184
+ /** @deprecated Use `z.input<typeof schema>` instead. */
1185
+ _input: Internals["input"];
1186
+ check(...checks: (CheckFn<output<this>> | $ZodCheck<output<this>>)[]): this;
1187
+ clone(def?: Internals["def"], params?: {
1188
+ parent: boolean;
1189
+ }): this;
1190
+ register<R$1 extends $ZodRegistry>(registry: R$1, ...meta: this extends R$1["_schema"] ? undefined extends R$1["_meta"] ? [$replace<R$1["_meta"], this>?] : [$replace<R$1["_meta"], this>] : ["Incompatible schema"]): this;
1191
+ brand<T$1 extends PropertyKey = PropertyKey>(value?: T$1): PropertyKey extends T$1 ? this : $ZodBranded<this, T$1>;
1192
+ parse(data: unknown, params?: ParseContext<$ZodIssue>): output<this>;
1193
+ safeParse(data: unknown, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<output<this>>;
1194
+ parseAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<output<this>>;
1195
+ safeParseAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<output<this>>>;
1196
+ spa: (data: unknown, params?: ParseContext<$ZodIssue>) => Promise<ZodSafeParseResult<output<this>>>;
1197
+ encode(data: output<this>, params?: ParseContext<$ZodIssue>): input<this>;
1198
+ decode(data: input<this>, params?: ParseContext<$ZodIssue>): output<this>;
1199
+ encodeAsync(data: output<this>, params?: ParseContext<$ZodIssue>): Promise<input<this>>;
1200
+ decodeAsync(data: input<this>, params?: ParseContext<$ZodIssue>): Promise<output<this>>;
1201
+ safeEncode(data: output<this>, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<input<this>>;
1202
+ safeDecode(data: input<this>, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<output<this>>;
1203
+ safeEncodeAsync(data: output<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<input<this>>>;
1204
+ safeDecodeAsync(data: input<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<output<this>>>;
1205
+ refine(check: (arg: output<this>) => unknown | Promise<unknown>, params?: string | $ZodCustomParams): this;
1206
+ superRefine(refinement: (arg: output<this>, ctx: $RefinementCtx<output<this>>) => void | Promise<void>): this;
1207
+ overwrite(fn: (x: output<this>) => output<this>): this;
1208
+ optional(): ZodOptional<this>;
1209
+ nonoptional(params?: string | $ZodNonOptionalParams): ZodNonOptional<this>;
1210
+ nullable(): ZodNullable<this>;
1211
+ nullish(): ZodOptional<ZodNullable<this>>;
1212
+ default(def: NoUndefined<output<this>>): ZodDefault<this>;
1213
+ default(def: () => NoUndefined<output<this>>): ZodDefault<this>;
1214
+ prefault(def: () => input<this>): ZodPrefault<this>;
1215
+ prefault(def: input<this>): ZodPrefault<this>;
1216
+ array(): ZodArray<this>;
1217
+ or<T$1 extends SomeType>(option: T$1): ZodUnion<[this, T$1]>;
1218
+ and<T$1 extends SomeType>(incoming: T$1): ZodIntersection<this, T$1>;
1219
+ transform<NewOut>(transform: (arg: output<this>, ctx: $RefinementCtx<output<this>>) => NewOut | Promise<NewOut>): ZodPipe<this, ZodTransform<Awaited<NewOut>, output<this>>>;
1220
+ catch(def: output<this>): ZodCatch<this>;
1221
+ catch(def: (ctx: $ZodCatchCtx) => output<this>): ZodCatch<this>;
1222
+ pipe<T$1 extends $ZodType<any, output<this>>>(target: T$1 | $ZodType<any, output<this>>): ZodPipe<this, T$1>;
1223
+ readonly(): ZodReadonly<this>;
1224
+ /** Returns a new instance that has been registered in `z.globalRegistry` with the specified description */
1225
+ describe(description: string): this;
1226
+ description?: string;
1227
+ /** Returns the metadata associated with this instance in `z.globalRegistry` */
1228
+ meta(): $replace<GlobalMeta, this> | undefined;
1229
+ /** Returns a new instance that has been registered in `z.globalRegistry` with the specified metadata */
1230
+ meta(data: $replace<GlobalMeta, this>): this;
1231
+ /** @deprecated Try safe-parsing `undefined` (this is what `isOptional` does internally):
1232
+ *
1233
+ * ```ts
1234
+ * const schema = z.string().optional();
1235
+ * const isOptional = schema.safeParse(undefined).success; // true
1236
+ * ```
1237
+ */
1238
+ isOptional(): boolean;
1239
+ /**
1240
+ * @deprecated Try safe-parsing `null` (this is what `isNullable` does internally):
1241
+ *
1242
+ * ```ts
1243
+ * const schema = z.string().nullable();
1244
+ * const isNullable = schema.safeParse(null).success; // true
1245
+ * ```
1246
+ */
1247
+ isNullable(): boolean;
1248
+ }
1249
+ interface _ZodType<out Internals extends $ZodTypeInternals = $ZodTypeInternals> extends ZodType<any, any, Internals> {}
1250
+ declare const ZodType: $constructor<ZodType>;
1251
+ interface _ZodString<T$1 extends $ZodStringInternals<unknown> = $ZodStringInternals<unknown>> extends _ZodType<T$1> {
1252
+ format: string | null;
1253
+ minLength: number | null;
1254
+ maxLength: number | null;
1255
+ regex(regex: RegExp, params?: string | $ZodCheckRegexParams): this;
1256
+ includes(value: string, params?: $ZodCheckIncludesParams): this;
1257
+ startsWith(value: string, params?: string | $ZodCheckStartsWithParams): this;
1258
+ endsWith(value: string, params?: string | $ZodCheckEndsWithParams): this;
1259
+ min(minLength: number, params?: string | $ZodCheckMinLengthParams): this;
1260
+ max(maxLength: number, params?: string | $ZodCheckMaxLengthParams): this;
1261
+ length(len: number, params?: string | $ZodCheckLengthEqualsParams): this;
1262
+ nonempty(params?: string | $ZodCheckMinLengthParams): this;
1263
+ lowercase(params?: string | $ZodCheckLowerCaseParams): this;
1264
+ uppercase(params?: string | $ZodCheckUpperCaseParams): this;
1265
+ trim(): this;
1266
+ normalize(form?: "NFC" | "NFD" | "NFKC" | "NFKD" | (string & {})): this;
1267
+ toLowerCase(): this;
1268
+ toUpperCase(): this;
1269
+ }
1270
+ /** @internal */
1271
+ declare const _ZodString: $constructor<_ZodString>;
1272
+ interface ZodString extends _ZodString<$ZodStringInternals<string>> {
1273
+ /** @deprecated Use `z.email()` instead. */
1274
+ email(params?: string | $ZodCheckEmailParams): this;
1275
+ /** @deprecated Use `z.url()` instead. */
1276
+ url(params?: string | $ZodCheckURLParams): this;
1277
+ /** @deprecated Use `z.jwt()` instead. */
1278
+ jwt(params?: string | $ZodCheckJWTParams): this;
1279
+ /** @deprecated Use `z.emoji()` instead. */
1280
+ emoji(params?: string | $ZodCheckEmojiParams): this;
1281
+ /** @deprecated Use `z.guid()` instead. */
1282
+ guid(params?: string | $ZodCheckGUIDParams): this;
1283
+ /** @deprecated Use `z.uuid()` instead. */
1284
+ uuid(params?: string | $ZodCheckUUIDParams): this;
1285
+ /** @deprecated Use `z.uuid()` instead. */
1286
+ uuidv4(params?: string | $ZodCheckUUIDParams): this;
1287
+ /** @deprecated Use `z.uuid()` instead. */
1288
+ uuidv6(params?: string | $ZodCheckUUIDParams): this;
1289
+ /** @deprecated Use `z.uuid()` instead. */
1290
+ uuidv7(params?: string | $ZodCheckUUIDParams): this;
1291
+ /** @deprecated Use `z.nanoid()` instead. */
1292
+ nanoid(params?: string | $ZodCheckNanoIDParams): this;
1293
+ /** @deprecated Use `z.guid()` instead. */
1294
+ guid(params?: string | $ZodCheckGUIDParams): this;
1295
+ /** @deprecated Use `z.cuid()` instead. */
1296
+ cuid(params?: string | $ZodCheckCUIDParams): this;
1297
+ /** @deprecated Use `z.cuid2()` instead. */
1298
+ cuid2(params?: string | $ZodCheckCUID2Params): this;
1299
+ /** @deprecated Use `z.ulid()` instead. */
1300
+ ulid(params?: string | $ZodCheckULIDParams): this;
1301
+ /** @deprecated Use `z.base64()` instead. */
1302
+ base64(params?: string | $ZodCheckBase64Params): this;
1303
+ /** @deprecated Use `z.base64url()` instead. */
1304
+ base64url(params?: string | $ZodCheckBase64URLParams): this;
1305
+ /** @deprecated Use `z.xid()` instead. */
1306
+ xid(params?: string | $ZodCheckXIDParams): this;
1307
+ /** @deprecated Use `z.ksuid()` instead. */
1308
+ ksuid(params?: string | $ZodCheckKSUIDParams): this;
1309
+ /** @deprecated Use `z.ipv4()` instead. */
1310
+ ipv4(params?: string | $ZodCheckIPv4Params): this;
1311
+ /** @deprecated Use `z.ipv6()` instead. */
1312
+ ipv6(params?: string | $ZodCheckIPv6Params): this;
1313
+ /** @deprecated Use `z.cidrv4()` instead. */
1314
+ cidrv4(params?: string | $ZodCheckCIDRv4Params): this;
1315
+ /** @deprecated Use `z.cidrv6()` instead. */
1316
+ cidrv6(params?: string | $ZodCheckCIDRv6Params): this;
1317
+ /** @deprecated Use `z.e164()` instead. */
1318
+ e164(params?: string | $ZodCheckE164Params): this;
1319
+ /** @deprecated Use `z.iso.datetime()` instead. */
1320
+ datetime(params?: string | $ZodCheckISODateTimeParams): this;
1321
+ /** @deprecated Use `z.iso.date()` instead. */
1322
+ date(params?: string | $ZodCheckISODateParams): this;
1323
+ /** @deprecated Use `z.iso.time()` instead. */
1324
+ time(params?: string | $ZodCheckISOTimeParams): this;
1325
+ /** @deprecated Use `z.iso.duration()` instead. */
1326
+ duration(params?: string | $ZodCheckISODurationParams): this;
1327
+ }
1328
+ declare const ZodString: $constructor<ZodString>;
1329
+ interface _ZodNumber<Internals extends $ZodNumberInternals = $ZodNumberInternals> extends _ZodType<Internals> {
1330
+ gt(value: number, params?: string | $ZodCheckGreaterThanParams): this;
1331
+ /** Identical to .min() */
1332
+ gte(value: number, params?: string | $ZodCheckGreaterThanParams): this;
1333
+ min(value: number, params?: string | $ZodCheckGreaterThanParams): this;
1334
+ lt(value: number, params?: string | $ZodCheckLessThanParams): this;
1335
+ /** Identical to .max() */
1336
+ lte(value: number, params?: string | $ZodCheckLessThanParams): this;
1337
+ max(value: number, params?: string | $ZodCheckLessThanParams): this;
1338
+ /** Consider `z.int()` instead. This API is considered *legacy*; it will never be removed but a better alternative exists. */
1339
+ int(params?: string | $ZodCheckNumberFormatParams): this;
1340
+ /** @deprecated This is now identical to `.int()`. Only numbers in the safe integer range are accepted. */
1341
+ safe(params?: string | $ZodCheckNumberFormatParams): this;
1342
+ positive(params?: string | $ZodCheckGreaterThanParams): this;
1343
+ nonnegative(params?: string | $ZodCheckGreaterThanParams): this;
1344
+ negative(params?: string | $ZodCheckLessThanParams): this;
1345
+ nonpositive(params?: string | $ZodCheckLessThanParams): this;
1346
+ multipleOf(value: number, params?: string | $ZodCheckMultipleOfParams): this;
1347
+ /** @deprecated Use `.multipleOf()` instead. */
1348
+ step(value: number, params?: string | $ZodCheckMultipleOfParams): this;
1349
+ /** @deprecated In v4 and later, z.number() does not allow infinite values by default. This is a no-op. */
1350
+ finite(params?: unknown): this;
1351
+ minValue: number | null;
1352
+ maxValue: number | null;
1353
+ /** @deprecated Check the `format` property instead. */
1354
+ isInt: boolean;
1355
+ /** @deprecated Number schemas no longer accept infinite values, so this always returns `true`. */
1356
+ isFinite: boolean;
1357
+ format: string | null;
1358
+ }
1359
+ interface ZodNumber extends _ZodNumber<$ZodNumberInternals<number>> {}
1360
+ declare const ZodNumber: $constructor<ZodNumber>;
1361
+ interface ZodArray<T$1 extends SomeType = $ZodType> extends _ZodType<$ZodArrayInternals<T$1>>, $ZodArray<T$1> {
1362
+ element: T$1;
1363
+ min(minLength: number, params?: string | $ZodCheckMinLengthParams): this;
1364
+ nonempty(params?: string | $ZodCheckMinLengthParams): this;
1365
+ max(maxLength: number, params?: string | $ZodCheckMaxLengthParams): this;
1366
+ length(len: number, params?: string | $ZodCheckLengthEqualsParams): this;
1367
+ unwrap(): T$1;
1368
+ }
1369
+ declare const ZodArray: $constructor<ZodArray>;
1370
+ type SafeExtendShape<Base extends $ZodShape, Ext extends $ZodLooseShape> = { [K in keyof Ext]: K extends keyof Base ? output<Ext[K]> extends output<Base[K]> ? input<Ext[K]> extends input<Base[K]> ? Ext[K] : never : never : Ext[K] };
1371
+ interface ZodObject< /** @ts-ignore Cast variance */
1372
+ out Shape extends $ZodShape = $ZodLooseShape, out Config$1 extends $ZodObjectConfig = $strip> extends _ZodType<$ZodObjectInternals<Shape, Config$1>>, $ZodObject<Shape, Config$1> {
1373
+ shape: Shape;
1374
+ keyof(): ZodEnum<ToEnum<keyof Shape & string>>;
1375
+ /** Define a schema to validate all unrecognized keys. This overrides the existing strict/loose behavior. */
1376
+ catchall<T$1 extends SomeType>(schema: T$1): ZodObject<Shape, $catchall<T$1>>;
1377
+ /** @deprecated Use `z.looseObject()` or `.loose()` instead. */
1378
+ passthrough(): ZodObject<Shape, $loose>;
1379
+ /** Consider `z.looseObject(A.shape)` instead */
1380
+ loose(): ZodObject<Shape, $loose>;
1381
+ /** Consider `z.strictObject(A.shape)` instead */
1382
+ strict(): ZodObject<Shape, $strict>;
1383
+ /** This is the default behavior. This method call is likely unnecessary. */
1384
+ strip(): ZodObject<Shape, $strip>;
1385
+ extend<U extends $ZodLooseShape>(shape: U): ZodObject<Extend<Shape, U>, Config$1>;
1386
+ safeExtend<U extends $ZodLooseShape>(shape: SafeExtendShape<Shape, U> & Partial<Record<keyof Shape, SomeType>>): ZodObject<Extend<Shape, U>, Config$1>;
1387
+ /**
1388
+ * @deprecated Use [`A.extend(B.shape)`](https://zod.dev/api?id=extend) instead.
1389
+ */
1390
+ merge<U extends ZodObject>(other: U): ZodObject<Extend<Shape, U["shape"]>, U["_zod"]["config"]>;
1391
+ pick<M$1 extends Mask<keyof Shape>>(mask: M$1): ZodObject<Flatten<Pick<Shape, Extract<keyof Shape, keyof M$1>>>, Config$1>;
1392
+ omit<M$1 extends Mask<keyof Shape>>(mask: M$1): ZodObject<Flatten<Omit<Shape, Extract<keyof Shape, keyof M$1>>>, Config$1>;
1393
+ partial(): ZodObject<{ [k in keyof Shape]: ZodOptional<Shape[k]> }, Config$1>;
1394
+ partial<M$1 extends Mask<keyof Shape>>(mask: M$1): ZodObject<{ [k in keyof Shape]: k extends keyof M$1 ? ZodOptional<Shape[k]> : Shape[k] }, Config$1>;
1395
+ required(): ZodObject<{ [k in keyof Shape]: ZodNonOptional<Shape[k]> }, Config$1>;
1396
+ required<M$1 extends Mask<keyof Shape>>(mask: M$1): ZodObject<{ [k in keyof Shape]: k extends keyof M$1 ? ZodNonOptional<Shape[k]> : Shape[k] }, Config$1>;
1397
+ }
1398
+ declare const ZodObject: $constructor<ZodObject>;
1399
+ interface ZodUnion<T$1 extends readonly SomeType[] = readonly $ZodType[]> extends _ZodType<$ZodUnionInternals<T$1>>, $ZodUnion<T$1> {
1400
+ options: T$1;
1401
+ }
1402
+ declare const ZodUnion: $constructor<ZodUnion>;
1403
+ interface ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _ZodType<$ZodIntersectionInternals<A, B>>, $ZodIntersection<A, B> {}
1404
+ declare const ZodIntersection: $constructor<ZodIntersection>;
1405
+ interface ZodRecord<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends _ZodType<$ZodRecordInternals<Key, Value>>, $ZodRecord<Key, Value> {
1406
+ keyType: Key;
1407
+ valueType: Value;
1408
+ }
1409
+ declare const ZodRecord: $constructor<ZodRecord>;
1410
+ interface ZodEnum< /** @ts-ignore Cast variance */
1411
+ out T$1 extends EnumLike = EnumLike> extends _ZodType<$ZodEnumInternals<T$1>>, $ZodEnum<T$1> {
1412
+ enum: T$1;
1413
+ options: Array<T$1[keyof T$1]>;
1414
+ extract<const U extends readonly (keyof T$1)[]>(values: U, params?: string | $ZodEnumParams): ZodEnum<Flatten<Pick<T$1, U[number]>>>;
1415
+ exclude<const U extends readonly (keyof T$1)[]>(values: U, params?: string | $ZodEnumParams): ZodEnum<Flatten<Omit<T$1, U[number]>>>;
1416
+ }
1417
+ declare const ZodEnum: $constructor<ZodEnum>;
1418
+ interface ZodTransform<O = unknown, I = unknown> extends _ZodType<$ZodTransformInternals<O, I>>, $ZodTransform<O, I> {}
1419
+ declare const ZodTransform: $constructor<ZodTransform>;
1420
+ interface ZodOptional<T$1 extends SomeType = $ZodType> extends _ZodType<$ZodOptionalInternals<T$1>>, $ZodOptional<T$1> {
1421
+ unwrap(): T$1;
1422
+ }
1423
+ declare const ZodOptional: $constructor<ZodOptional>;
1424
+ interface ZodNullable<T$1 extends SomeType = $ZodType> extends _ZodType<$ZodNullableInternals<T$1>>, $ZodNullable<T$1> {
1425
+ unwrap(): T$1;
1426
+ }
1427
+ declare const ZodNullable: $constructor<ZodNullable>;
1428
+ interface ZodDefault<T$1 extends SomeType = $ZodType> extends _ZodType<$ZodDefaultInternals<T$1>>, $ZodDefault<T$1> {
1429
+ unwrap(): T$1;
1430
+ /** @deprecated Use `.unwrap()` instead. */
1431
+ removeDefault(): T$1;
1432
+ }
1433
+ declare const ZodDefault: $constructor<ZodDefault>;
1434
+ interface ZodPrefault<T$1 extends SomeType = $ZodType> extends _ZodType<$ZodPrefaultInternals<T$1>>, $ZodPrefault<T$1> {
1435
+ unwrap(): T$1;
1436
+ }
1437
+ declare const ZodPrefault: $constructor<ZodPrefault>;
1438
+ interface ZodNonOptional<T$1 extends SomeType = $ZodType> extends _ZodType<$ZodNonOptionalInternals<T$1>>, $ZodNonOptional<T$1> {
1439
+ unwrap(): T$1;
1440
+ }
1441
+ declare const ZodNonOptional: $constructor<ZodNonOptional>;
1442
+ interface ZodCatch<T$1 extends SomeType = $ZodType> extends _ZodType<$ZodCatchInternals<T$1>>, $ZodCatch<T$1> {
1443
+ unwrap(): T$1;
1444
+ /** @deprecated Use `.unwrap()` instead. */
1445
+ removeCatch(): T$1;
1446
+ }
1447
+ declare const ZodCatch: $constructor<ZodCatch>;
1448
+ interface ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _ZodType<$ZodPipeInternals<A, B>>, $ZodPipe<A, B> {
1449
+ in: A;
1450
+ out: B;
1451
+ }
1452
+ declare const ZodPipe: $constructor<ZodPipe>;
1453
+ interface ZodReadonly<T$1 extends SomeType = $ZodType> extends _ZodType<$ZodReadonlyInternals<T$1>>, $ZodReadonly<T$1> {
1454
+ unwrap(): T$1;
1455
+ }
1456
+ declare const ZodReadonly: $constructor<ZodReadonly>;
1457
+ //#endregion
1458
+ //#region src/utils/config.d.ts
1459
+ declare const SkillConfigSchema: ZodObject<{
1460
+ context7ProjectId: ZodOptional<ZodString>;
1461
+ context7Projects: ZodOptional<ZodRecord<ZodString, ZodObject<{
1462
+ downloadedAt: ZodString;
1463
+ filesCount: ZodNumber;
1464
+ }, $strip>>>;
1465
+ }, $strip>;
1466
+ type SkillConfig = input<typeof SkillConfigSchema>;
1467
+ declare class Config {
1468
+ static load(filePath: string): SkillConfig;
1469
+ static save(config: SkillConfig, filePath: string): void;
1470
+ static loadWithDefaults(filePath: string): SkillConfig;
1471
+ }
1472
+ //#endregion
1473
+ //#region src/types/index.d.ts
1474
+ interface SearchResult {
1475
+ id: string;
1476
+ title: string;
1477
+ content: string;
1478
+ score: number;
1479
+ source: 'user' | 'context7';
1480
+ file_path: string;
1481
+ metadata: Record<string, unknown>;
1482
+ }
1483
+ interface ContentStats {
1484
+ userFiles: number;
1485
+ context7Files: number;
1486
+ totalFiles: number;
1487
+ userDirExists: boolean;
1488
+ context7DirExists: boolean;
1489
+ }
1490
+ interface ContentItem {
1491
+ title: string;
1492
+ filename: string;
1493
+ source: 'user' | 'context7';
1494
+ path: string;
1495
+ size: number;
1496
+ modified: Date;
1497
+ }
1498
+ interface CreateSkillOptions {
1499
+ baseDir: string;
1500
+ skillDirname: string;
1501
+ skillName: string;
1502
+ skillDescription?: string;
1503
+ force?: boolean;
1504
+ }
1505
+ interface CreateSkillResult {
1506
+ created: boolean;
1507
+ skillPath?: string;
1508
+ message: string;
1509
+ }
1510
+ interface UpdateContext7Result {
1511
+ updated: boolean;
1512
+ skipped: boolean;
1513
+ filesCreated: number;
1514
+ message: string;
1515
+ }
1516
+ interface AddContentResult {
1517
+ added: boolean;
1518
+ updated: boolean;
1519
+ skipped: boolean;
1520
+ filePath?: string;
1521
+ message: string;
1522
+ similarFound: number;
1523
+ similarContent?: Array<{
1524
+ title: string;
1525
+ score: number;
1526
+ source: string;
1527
+ preview: string;
1528
+ }>;
1529
+ existingFile?: {
1530
+ path: string;
1531
+ content: string;
1532
+ };
1533
+ }
1534
+ interface PackageVersion {
1535
+ version: string;
1536
+ formatted: string;
1537
+ }
1538
+ interface Context7Library {
1539
+ context7_compatible_library_id: string;
1540
+ name: string;
1541
+ description: string;
1542
+ code_snippets: number;
1543
+ trust_score: number;
1544
+ versions?: string[];
1545
+ }
1546
+ //#endregion
1547
+ //#region src/core/skillCreator.d.ts
1548
+ declare class SkillCreator {
1549
+ private templateDir;
1550
+ constructor();
1551
+ createSkill(options: CreateSkillOptions): Promise<CreateSkillResult>;
1552
+ private createDirectoryStructure;
1553
+ private createSkillMdFromTemplate;
1554
+ }
1555
+ //#endregion
1556
+ //#region src/core/searchAdapter.d.ts
1557
+ /**
1558
+ * Search Engine Adapter Interface
1559
+ * Provides a unified interface for different search implementations
1560
+ */
1561
+ interface SearchResult$2 {
1562
+ id: string;
1563
+ title: string;
1564
+ content: string;
1565
+ source: 'user' | 'context7';
1566
+ file_path: string;
1567
+ score: number;
1568
+ metadata: any;
1569
+ }
1570
+ interface SearchOptions$1 {
1571
+ topK?: number;
1572
+ where?: Record<string, any>;
1573
+ fuzzyThreshold?: number;
1574
+ }
1575
+ interface SearchEngine {
1576
+ /**
1577
+ * Build search index from files
1578
+ */
1579
+ buildIndex(referencesDir: string): Promise<void>;
1580
+ /**
1581
+ * Search for documents matching the query
1582
+ */
1583
+ search(query: string, options?: SearchOptions$1): Promise<SearchResult$2[]>;
1584
+ /**
1585
+ * Check if the search index is built and ready
1586
+ */
1587
+ isBuilt(): boolean;
1588
+ /**
1589
+ * Get search engine statistics
1590
+ */
1591
+ getStats(): any;
1592
+ /**
1593
+ * Clear the search index
1594
+ */
1595
+ clearIndex(): void;
1596
+ }
1597
+ //#endregion
1598
+ //#region src/core/chromaSearchAdapter.d.ts
1599
+ interface ChromaSearchOptions {
1600
+ /** 技能目录路径 */
1601
+ skillDir: string;
1602
+ /** ChromaDB 集合名称 */
1603
+ collectionName: string;
1604
+ /** 启动超时时间(毫秒) */
1605
+ startupTimeout?: number;
1606
+ /** 是否启用自动回退 */
1607
+ enableFallback?: boolean;
1608
+ }
1609
+ /**
1610
+ * ChromaDB Search Adapter
1611
+ * 支持按需启动、自动回退和优雅关闭
1612
+ */
1613
+ declare class ChromaSearchAdapter implements SearchEngine {
1614
+ private fuzzyAdapter;
1615
+ private serverManager;
1616
+ private options;
1617
+ private isIndexBuilt;
1618
+ private embeddingFunction;
1619
+ constructor(options: ChromaSearchOptions);
1620
+ /**
1621
+ * 统一准备ChromaDB环境
1622
+ * 封装服务器启动、客户端创建和配置的通用逻辑
1623
+ */
1624
+ private prepareChromadb;
1625
+ /**
1626
+ * 安全关闭ChromaDB服务器
1627
+ */
1628
+ private safeShutdownServer;
1629
+ search(query: string, options?: SearchOptions$1): Promise<SearchResult$2[]>;
1630
+ /**
1631
+ * 计算当前文件的hash映射 {filename: hash}
1632
+ */
1633
+ private calculateFileHashes;
1634
+ /**
1635
+ * 加载之前的文件hash缓存
1636
+ */
1637
+ private loadFileHashCache;
1638
+ /**
1639
+ * 保存文件hash缓存
1640
+ */
1641
+ private saveFileHashCache;
1642
+ /**
1643
+ * 分析文件变化
1644
+ */
1645
+ private analyzeFileChanges;
1646
+ /**
1647
+ * 获取或创建集合
1648
+ */
1649
+ private getOrCreateCollection;
1650
+ /**
1651
+ * 处理文件变化
1652
+ */
1653
+ private processFileChanges;
1654
+ buildIndex(referencesDir: string): Promise<void>;
1655
+ clearIndex(): Promise<void>;
1656
+ isBuilt(): boolean;
1657
+ getStats(): Promise<{
1658
+ totalDocuments: number;
1659
+ }>;
1660
+ /**
1661
+ * 获取运行中的服务器状态
1662
+ */
1663
+ getServerStatus(): {
1664
+ isRunning: boolean;
1665
+ };
1666
+ }
1667
+ //#endregion
1668
+ //#region src/core/fuzzySearchAdapter.d.ts
1669
+ /**
1670
+ * uFuzzy-based Search Engine Adapter
1671
+ * Clean implementation focused only on search functionality
1672
+ */
1673
+ declare class FuzzySearchAdapter implements SearchEngine {
1674
+ private documents;
1675
+ private fuzzy;
1676
+ private lastSearchInfo;
1677
+ constructor();
1678
+ buildIndex(referencesDir: string): Promise<void>;
1679
+ search(query: string, options?: SearchOptions$1): Promise<SearchResult$2[]>;
1680
+ /**
1681
+ * Basic fuzzy search using uFuzzy
1682
+ */
1683
+ private fuzzySearch;
1684
+ /**
1685
+ * Enhanced fuzzy search that returns both indices and detailed info
1686
+ */
1687
+ private fuzzySearchWithInfo;
1688
+ isBuilt(): boolean;
1689
+ getStats(): Promise<{
1690
+ totalDocuments: number;
1691
+ }>;
1692
+ searchByPriority(query: string, topK?: number): Promise<SearchResult$2[]>;
1693
+ clearIndex(): void;
1694
+ }
1695
+ //#endregion
1696
+ //#region src/search_format/types.d.ts
1697
+ /**
1698
+ * Enhanced search result with additional metadata for formatting
1699
+ */
1700
+ interface FormattableSearchResult extends SearchResult$2 {
1701
+ /** Relative file path from skill root */
1702
+ relativePath?: string;
1703
+ /** Full content (for high-quality matches) */
1704
+ fullContent?: string;
1705
+ /** Preview content with line numbers (for medium-quality matches) */
1706
+ preview?: string;
1707
+ /** Display tier information */
1708
+ metadata: SearchResult$2['metadata'] & {
1709
+ displayTier?: 'full' | 'preview' | 'metadata-only';
1710
+ maxScore?: number;
1711
+ averageScore?: number;
1712
+ matchRanges?: number[][];
1713
+ };
1714
+ }
1715
+ /**
1716
+ * Formatted search result ready for display
1717
+ */
1718
+ interface FormattedResult {
1719
+ /** Original result */
1720
+ result: FormattableSearchResult;
1721
+ /** Formatted display content */
1722
+ content: string;
1723
+ /** Content type for styling */
1724
+ contentType: 'full-content' | 'preview' | 'metadata-only';
1725
+ /** Display priority */
1726
+ priority: number;
1727
+ }
1728
+ //#endregion
1729
+ //#region src/core/searchEngineFactory.d.ts
1730
+ interface SearchEngineOptions {
1731
+ /** Search mode: auto, fuzzy, or chroma */
1732
+ mode?: 'auto' | 'fuzzy' | 'chroma';
1733
+ /** Skill directory for file operations */
1734
+ skillDir?: string;
1735
+ /** References directory containing documentation */
1736
+ referencesDir?: string;
1737
+ /** Skill configuration */
1738
+ config?: SkillConfig;
1739
+ /** Additional options for adapters */
1740
+ adapterOptions?: {
1741
+ /** Enable ChromaDB fallback on failure */
1742
+ enableChromaFallback?: boolean;
1743
+ /** ChromaDB startup timeout */
1744
+ chromaStartupTimeout?: number;
1745
+ /** Auto search quality threshold */
1746
+ qualityThreshold?: number;
1747
+ };
1748
+ }
1749
+ //#endregion
1750
+ //#region src/core/unifiedSearch.d.ts
1751
+ /**
1752
+ * Unified search options including formatting preferences
1753
+ */
1754
+ interface UnifiedSearchOptions extends SearchEngineOptions {
1755
+ /** Output format: list, enhanced, or custom */
1756
+ format?: 'list' | 'enhanced' | string;
1757
+ /** Skill path for relative path calculation */
1758
+ skillPath?: string;
1759
+ /** Formatting options */
1760
+ formatting?: {
1761
+ maxPreviewLength?: number;
1762
+ showFullContentThreshold?: number;
1763
+ minScoreForPreview?: number;
1764
+ showLineNumbers?: boolean;
1765
+ };
1766
+ }
1767
+ /**
1768
+ * Unified Search Engine
1769
+ * Coordinates search adapters with formatters for complete search experience
1770
+ */
1771
+ declare class UnifiedSearchEngine {
1772
+ private searchEngine;
1773
+ private formatter;
1774
+ private options;
1775
+ constructor(options: UnifiedSearchOptions);
1776
+ /**
1777
+ * Initialize the search engine
1778
+ */
1779
+ initialize(): Promise<void>;
1780
+ /**
1781
+ * Build search index
1782
+ */
1783
+ buildIndex(referencesDir: string): Promise<void>;
1784
+ /**
1785
+ * Search and optionally format results
1786
+ */
1787
+ search(query: string, topK?: number, where?: Record<string, any>): Promise<SearchResult$2[]>;
1788
+ /**
1789
+ * Search and return formatted results
1790
+ */
1791
+ searchAndFormat(query: string, topK?: number, where?: Record<string, any>): Promise<FormattedResult[]>;
1792
+ /**
1793
+ * Check if search index is built
1794
+ */
1795
+ isBuilt(): Promise<boolean>;
1796
+ /**
1797
+ * Get search statistics
1798
+ */
1799
+ getStats(): Promise<{
1800
+ totalDocuments: number;
1801
+ }>;
1802
+ /**
1803
+ * Clear search index
1804
+ */
1805
+ clearIndex(): Promise<void>;
1806
+ /**
1807
+ * Ensure engine is initialized
1808
+ */
1809
+ private ensureInitialized;
1810
+ }
1811
+ //#endregion
1812
+ //#region src/core/contentManager.d.ts
1813
+ interface ContentManagerOptions {
1814
+ searchEngine: {
1815
+ search(query: string, topK?: number, where?: any): Promise<any[]>;
1816
+ };
1817
+ referencesDir: string;
1818
+ }
1819
+ declare class ContentManager {
1820
+ private options;
1821
+ private userDir;
1822
+ private context7BaseDir;
1823
+ private md;
1824
+ constructor(options: ContentManagerOptions);
1825
+ /**
1826
+ * Get the directory path for a specific context7 project
1827
+ */
1828
+ private getContext7ProjectDir;
1829
+ updateFromContext7(libraryId: string, force?: boolean): Promise<UpdateContext7Result>;
1830
+ addUserContent(options: {
1831
+ title: string;
1832
+ content: string;
1833
+ force?: boolean;
1834
+ forceAppend?: boolean;
1835
+ autoUpdate?: boolean;
1836
+ }): Promise<AddContentResult>;
1837
+ getContentStats(): ContentStats;
1838
+ listContent(source?: 'user' | 'context7'): ContentItem[];
1839
+ private downloadContext7Doc;
1840
+ private sliceDocument;
1841
+ private extractSections;
1842
+ private mergeShortSections;
1843
+ private isMajorSection;
1844
+ private createUniqueFileName;
1845
+ private extractHeadingLevel;
1846
+ private createUniqueFilePath;
1847
+ private findSimilarContent;
1848
+ private isContentEnhanced;
1849
+ private getHashFilePath;
1850
+ private saveContentHash;
1851
+ private needsUpdate;
1852
+ private triggerReindex;
1853
+ /**
1854
+ * List all context7 projects
1855
+ */
1856
+ listContext7Projects(): Array<{
1857
+ projectId: string;
1858
+ filesCount: number;
1859
+ directory: string;
1860
+ }>;
1861
+ /**
1862
+ * Get files for a specific context7 project
1863
+ */
1864
+ getContext7ProjectFiles(projectId: string): string[];
1865
+ /**
1866
+ * Remove a context7 project
1867
+ */
1868
+ removeContext7Project(projectId: string): {
1869
+ success: boolean;
1870
+ message: string;
1871
+ };
1872
+ }
1873
+ //#endregion
1874
+ //#region src/utils/package.d.ts
1875
+ /**
1876
+ * Package utilities
1877
+ */
1878
+ interface SearchResult$1 {
1879
+ name: string;
1880
+ description: string;
1881
+ version: string;
1882
+ date: string;
1883
+ publisher: string;
1884
+ score: number;
1885
+ homepage?: string;
1886
+ repository?: string;
1887
+ skill_dir_name?: string;
1888
+ }
1889
+ interface SearchOptions {
1890
+ limit?: number;
1891
+ minScore?: number;
1892
+ }
1893
+ declare class PackageUtils {
1894
+ /**
1895
+ * Get package version from npm registry
1896
+ */
1897
+ static getPackageVersion(packageName: string): Promise<string | null>;
1898
+ /**
1899
+ * Get full package info from npm registry for the latest version
1900
+ */
1901
+ static getPackageInfo(packageName: string): Promise<{
1902
+ name: string;
1903
+ version: string;
1904
+ description: string;
1905
+ homepage?: string;
1906
+ repository?: {
1907
+ type: string;
1908
+ url: string;
1909
+ };
1910
+ [key: string]: any;
1911
+ } | null>;
1912
+ /**
1913
+ * Get full package info from npm registry for the latest version
1914
+ */
1915
+ static getCurrentPackageInfo(): {
1916
+ name: string;
1917
+ version: string;
1918
+ description: string;
1919
+ homepage?: string;
1920
+ repository?: {
1921
+ type: string;
1922
+ url: string;
1923
+ };
1924
+ [key: string]: any;
1925
+ } | null;
1926
+ /**
1927
+ * Format version according to doc-downloader rules
1928
+ */
1929
+ static formatVersion(version: string): string;
1930
+ /**
1931
+ * Create skill folder name according to spec
1932
+ */
1933
+ static createSkillFolderName(packageName: string, version: string): string;
1934
+ /**
1935
+ * Normalize package name (remove @ prefix)
1936
+ */
1937
+ static normalizePackageName(packageName: string): string;
1938
+ /**
1939
+ * Validate package name format
1940
+ */
1941
+ static validatePackageName(packageName: string): boolean;
1942
+ /**
1943
+ * Search for packages on npm registry
1944
+ */
1945
+ static searchPackages(keywords: string[], options?: SearchOptions): Promise<SearchResult$1[]>;
1946
+ /**
1947
+ * Find exact package match
1948
+ */
1949
+ static findExactPackage(packageName: string): Promise<SearchResult$1 | null>;
1950
+ /**
1951
+ * Suggest packages based on keywords
1952
+ */
1953
+ static suggestPackages(input: string, options?: SearchOptions): Promise<SearchResult$1[]>;
1954
+ /**
1955
+ * Select package from multiple options
1956
+ */
1957
+ static selectPackage(input: string): Promise<{
1958
+ name: string;
1959
+ version: string;
1960
+ } | null>;
1961
+ }
1962
+ //#endregion
1963
+ export { type AddContentResult, ChromaSearchAdapter, Config, type ContentItem, ContentManager, type ContentStats, type Context7Library, type CreateSkillOptions, type CreateSkillResult, FuzzySearchAdapter, PackageUtils, type PackageVersion, type SearchEngine, type SearchResult, type SkillConfig, SkillCreator, UnifiedSearchEngine, type UpdateContext7Result };
1964
+ //# sourceMappingURL=index.d.mts.map