UNPKG

244 kBTypeScriptView Raw
1export { PackageJson } from 'zod-package-json';
2import QuickLRU from 'quick-lru';
3import { z } from 'zod';
4
5/**
6Internal cache for all requests.
7@see {@link https://github.com/sindresorhus/quick-lru}
8@internal
9*/
10declare const cache: QuickLRU<string, unknown>;
11
12declare const DownloadPeriod: z.ZodUnion<[z.ZodLiteral<"last-day">, z.ZodLiteral<"last-week">, z.ZodLiteral<"last-month">, z.ZodLiteral<"last-year">, z.ZodString]>;
13/**
14`DownloadPeriod` represents a time period for which downloads should be counted.
15
16The following time periods are supported by npm:
17- `last-day` - Last day available, not necessarily yesterday.
18- `last-week` - Last seven days available.
19- `last-month` - Last 30 days available.
20- `last-year` - Last 365 days available.
21- `YYYY-MM-DD` - Date in the format `YYYY-MM-DD`.
22- `YYYY-MM-DD:YYYY-MM-DD` - Inclusive date range in the format `YYYY-MM-DD:YYYY-MM-DD`.
23
24@see {@link https://github.com/npm/registry/blob/master/docs/download-counts.md}
25 */
26type DownloadPeriod =
27/** Last day available, not necessarily yesterday. */
28"last-day"
29/** Last seven days available. */
30 | "last-week"
31/** Last 30 days available. */
32 | "last-month"
33/** Last 365 days available. */
34 | "last-year"
35/** Date in the format `YYYY-MM-DD`. */
36 | `${number}-${number}-${number}`
37/** Inclusive date range in the format `YYYY-MM-DD:YYYY-MM-DD`. */
38 | `${number}-${number}-${number}:${number}-${number}-${number}`;
39
40declare const AbbreviatedPackument: z.ZodObject<{
41 /** Package name. */
42 name: z.ZodString;
43 /** Timestamp of when the package was last modified in ISO 8601 format (e.g., `2021-11-23T19:12:24.006Z`). */
44 modified: z.ZodString;
45 /** Mapping of distribution tags to semver version numbers e.g., `{ "latest": "1.0.0" }`). */
46 "dist-tags": z.ZodObject<{
47 latest: z.ZodString;
48 next: z.ZodOptional<z.ZodString>;
49 alpha: z.ZodOptional<z.ZodString>;
50 beta: z.ZodOptional<z.ZodString>;
51 rc: z.ZodOptional<z.ZodString>;
52 canary: z.ZodOptional<z.ZodString>;
53 dev: z.ZodOptional<z.ZodString>;
54 }, "strip", z.ZodString, z.objectOutputType<{
55 latest: z.ZodString;
56 next: z.ZodOptional<z.ZodString>;
57 alpha: z.ZodOptional<z.ZodString>;
58 beta: z.ZodOptional<z.ZodString>;
59 rc: z.ZodOptional<z.ZodString>;
60 canary: z.ZodOptional<z.ZodString>;
61 dev: z.ZodOptional<z.ZodString>;
62 }, z.ZodString, "strip">, z.objectInputType<{
63 latest: z.ZodString;
64 next: z.ZodOptional<z.ZodString>;
65 alpha: z.ZodOptional<z.ZodString>;
66 beta: z.ZodOptional<z.ZodString>;
67 rc: z.ZodOptional<z.ZodString>;
68 canary: z.ZodOptional<z.ZodString>;
69 dev: z.ZodOptional<z.ZodString>;
70 }, z.ZodString, "strip">>;
71 /** Mapping of semver version numbers to the required metadata for installing a package version. */
72 versions: z.ZodRecord<z.ZodString, z.ZodObject<z.objectUtil.extendShape<Pick<z.objectUtil.extendShape<{
73 name: z.ZodString;
74 version: z.ZodString;
75 description: z.ZodOptional<z.ZodString>;
76 keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
77 homepage: z.ZodOptional<z.ZodString>;
78 bugs: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
79 url: z.ZodOptional<z.ZodString>;
80 email: z.ZodOptional<z.ZodString>;
81 }, "strip", z.ZodTypeAny, {
82 url?: string | undefined;
83 email?: string | undefined;
84 }, {
85 url?: string | undefined;
86 email?: string | undefined;
87 }>]>>;
88 license: z.ZodOptional<z.ZodString>;
89 author: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
90 name: z.ZodString;
91 email: z.ZodOptional<z.ZodString>;
92 url: z.ZodOptional<z.ZodString>;
93 }, "strip", z.ZodTypeAny, {
94 name: string;
95 url?: string | undefined;
96 email?: string | undefined;
97 }, {
98 name: string;
99 url?: string | undefined;
100 email?: string | undefined;
101 }>]>>;
102 contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
103 name: z.ZodString;
104 email: z.ZodOptional<z.ZodString>;
105 url: z.ZodOptional<z.ZodString>;
106 }, "strip", z.ZodTypeAny, {
107 name: string;
108 url?: string | undefined;
109 email?: string | undefined;
110 }, {
111 name: string;
112 url?: string | undefined;
113 email?: string | undefined;
114 }>]>, "many">>;
115 maintainers: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
116 name: z.ZodString;
117 email: z.ZodOptional<z.ZodString>;
118 url: z.ZodOptional<z.ZodString>;
119 }, "strip", z.ZodTypeAny, {
120 name: string;
121 url?: string | undefined;
122 email?: string | undefined;
123 }, {
124 name: string;
125 url?: string | undefined;
126 email?: string | undefined;
127 }>]>, "many">>;
128 funding: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
129 url: z.ZodString;
130 type: z.ZodOptional<z.ZodString>;
131 }, "strip", z.ZodTypeAny, {
132 url: string;
133 type?: string | undefined;
134 }, {
135 url: string;
136 type?: string | undefined;
137 }>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
138 url: z.ZodString;
139 type: z.ZodOptional<z.ZodString>;
140 }, "strip", z.ZodTypeAny, {
141 url: string;
142 type?: string | undefined;
143 }, {
144 url: string;
145 type?: string | undefined;
146 }>]>, "many">]>>;
147 files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
148 main: z.ZodOptional<z.ZodString>;
149 browser: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>]>>;
150 bin: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
151 man: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
152 directories: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
153 repository: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
154 type: z.ZodString;
155 url: z.ZodString;
156 directory: z.ZodOptional<z.ZodString>;
157 }, "strip", z.ZodTypeAny, {
158 type: string;
159 url: string;
160 directory?: string | undefined;
161 }, {
162 type: string;
163 url: string;
164 directory?: string | undefined;
165 }>]>>;
166 scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
167 config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
168 dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
169 devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
170 peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
171 peerDependenciesMeta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
172 optional: z.ZodBoolean;
173 }, "strip", z.ZodTypeAny, {
174 optional: boolean;
175 }, {
176 optional: boolean;
177 }>>>;
178 bundleDependencies: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
179 bundledDependencies: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
180 optionalDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
181 overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
182 engines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
183 os: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
184 cpu: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
185 private: z.ZodOptional<z.ZodBoolean>;
186 publishConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
187 workspaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
188 deprecated: z.ZodOptional<z.ZodString>;
189 module: z.ZodOptional<z.ZodString>;
190 type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"module">, z.ZodLiteral<"commonjs">]>>;
191 types: z.ZodOptional<z.ZodString>;
192 typings: z.ZodOptional<z.ZodString>;
193 typesVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
194 packageManager: z.ZodOptional<z.ZodString>;
195 sideEffects: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
196 imports: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
197 exports: z.ZodOptional<z.ZodUnion<[z.ZodNull, z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
198 }, {
199 _id: z.ZodString;
200 dist: z.ZodObject<{
201 tarball: z.ZodString;
202 shasum: z.ZodString;
203 integrity: z.ZodOptional<z.ZodString>;
204 /** Mapping of semver version numbers to the required metadata for installing a package version. */
205 fileCount: z.ZodOptional<z.ZodNumber>;
206 unpackedSize: z.ZodOptional<z.ZodNumber>;
207 "npm-signature": z.ZodOptional<z.ZodString>;
208 signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
209 keyid: z.ZodString;
210 sig: z.ZodString;
211 }, "strip", z.ZodTypeAny, {
212 keyid: string;
213 sig: string;
214 }, {
215 keyid: string;
216 sig: string;
217 }>, "many">>;
218 }, "strip", z.ZodTypeAny, {
219 tarball: string;
220 shasum: string;
221 integrity?: string | undefined;
222 fileCount?: number | undefined;
223 unpackedSize?: number | undefined;
224 "npm-signature"?: string | undefined;
225 signatures?: {
226 keyid: string;
227 sig: string;
228 }[] | undefined;
229 }, {
230 tarball: string;
231 shasum: string;
232 integrity?: string | undefined;
233 fileCount?: number | undefined;
234 unpackedSize?: number | undefined;
235 "npm-signature"?: string | undefined;
236 signatures?: {
237 keyid: string;
238 sig: string;
239 }[] | undefined;
240 }>;
241 readme: z.ZodOptional<z.ZodString>;
242 readmeFilename: z.ZodOptional<z.ZodString>;
243 gitHead: z.ZodOptional<z.ZodString>;
244 _hasShrinkwrap: z.ZodOptional<z.ZodBoolean>;
245 _nodeVersion: z.ZodOptional<z.ZodString>;
246 _npmVersion: z.ZodOptional<z.ZodString>;
247 _npmUser: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
248 name: z.ZodString;
249 email: z.ZodOptional<z.ZodString>;
250 url: z.ZodOptional<z.ZodString>;
251 }, "strip", z.ZodTypeAny, {
252 name: string;
253 url?: string | undefined;
254 email?: string | undefined;
255 }, {
256 name: string;
257 url?: string | undefined;
258 email?: string | undefined;
259 }>]>>>;
260 _npmOperationalInternal: z.ZodOptional<z.ZodObject<{
261 host: z.ZodOptional<z.ZodString>;
262 tmp: z.ZodOptional<z.ZodString>;
263 }, "strip", z.ZodTypeAny, {
264 host?: string | undefined;
265 tmp?: string | undefined;
266 }, {
267 host?: string | undefined;
268 tmp?: string | undefined;
269 }>>;
270 engines: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
271 license: z.ZodCatch<z.ZodOptional<z.ZodString>>;
272 homepage: z.ZodCatch<z.ZodOptional<z.ZodString>>;
273 deprecated: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
274 }>, "name" | "version" | "bin" | "directories" | "dependencies" | "devDependencies" | "peerDependencies" | "peerDependenciesMeta" | "bundleDependencies" | "optionalDependencies" | "engines" | "os" | "cpu" | "deprecated" | "dist" | "_hasShrinkwrap">, {
275 /** True if the package contains an `install` script. */
276 hasInstallScript: z.ZodOptional<z.ZodBoolean>;
277 }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<Pick<z.objectUtil.extendShape<{
278 name: z.ZodString;
279 version: z.ZodString;
280 description: z.ZodOptional<z.ZodString>;
281 keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
282 homepage: z.ZodOptional<z.ZodString>;
283 bugs: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
284 url: z.ZodOptional<z.ZodString>;
285 email: z.ZodOptional<z.ZodString>;
286 }, "strip", z.ZodTypeAny, {
287 url?: string | undefined;
288 email?: string | undefined;
289 }, {
290 url?: string | undefined;
291 email?: string | undefined;
292 }>]>>;
293 license: z.ZodOptional<z.ZodString>;
294 author: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
295 name: z.ZodString;
296 email: z.ZodOptional<z.ZodString>;
297 url: z.ZodOptional<z.ZodString>;
298 }, "strip", z.ZodTypeAny, {
299 name: string;
300 url?: string | undefined;
301 email?: string | undefined;
302 }, {
303 name: string;
304 url?: string | undefined;
305 email?: string | undefined;
306 }>]>>;
307 contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
308 name: z.ZodString;
309 email: z.ZodOptional<z.ZodString>;
310 url: z.ZodOptional<z.ZodString>;
311 }, "strip", z.ZodTypeAny, {
312 name: string;
313 url?: string | undefined;
314 email?: string | undefined;
315 }, {
316 name: string;
317 url?: string | undefined;
318 email?: string | undefined;
319 }>]>, "many">>;
320 maintainers: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
321 name: z.ZodString;
322 email: z.ZodOptional<z.ZodString>;
323 url: z.ZodOptional<z.ZodString>;
324 }, "strip", z.ZodTypeAny, {
325 name: string;
326 url?: string | undefined;
327 email?: string | undefined;
328 }, {
329 name: string;
330 url?: string | undefined;
331 email?: string | undefined;
332 }>]>, "many">>;
333 funding: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
334 url: z.ZodString;
335 type: z.ZodOptional<z.ZodString>;
336 }, "strip", z.ZodTypeAny, {
337 url: string;
338 type?: string | undefined;
339 }, {
340 url: string;
341 type?: string | undefined;
342 }>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
343 url: z.ZodString;
344 type: z.ZodOptional<z.ZodString>;
345 }, "strip", z.ZodTypeAny, {
346 url: string;
347 type?: string | undefined;
348 }, {
349 url: string;
350 type?: string | undefined;
351 }>]>, "many">]>>;
352 files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
353 main: z.ZodOptional<z.ZodString>;
354 browser: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>]>>;
355 bin: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
356 man: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
357 directories: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
358 repository: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
359 type: z.ZodString;
360 url: z.ZodString;
361 directory: z.ZodOptional<z.ZodString>;
362 }, "strip", z.ZodTypeAny, {
363 type: string;
364 url: string;
365 directory?: string | undefined;
366 }, {
367 type: string;
368 url: string;
369 directory?: string | undefined;
370 }>]>>;
371 scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
372 config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
373 dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
374 devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
375 peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
376 peerDependenciesMeta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
377 optional: z.ZodBoolean;
378 }, "strip", z.ZodTypeAny, {
379 optional: boolean;
380 }, {
381 optional: boolean;
382 }>>>;
383 bundleDependencies: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
384 bundledDependencies: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
385 optionalDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
386 overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
387 engines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
388 os: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
389 cpu: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
390 private: z.ZodOptional<z.ZodBoolean>;
391 publishConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
392 workspaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
393 deprecated: z.ZodOptional<z.ZodString>;
394 module: z.ZodOptional<z.ZodString>;
395 type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"module">, z.ZodLiteral<"commonjs">]>>;
396 types: z.ZodOptional<z.ZodString>;
397 typings: z.ZodOptional<z.ZodString>;
398 typesVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
399 packageManager: z.ZodOptional<z.ZodString>;
400 sideEffects: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
401 imports: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
402 exports: z.ZodOptional<z.ZodUnion<[z.ZodNull, z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
403 }, {
404 _id: z.ZodString;
405 dist: z.ZodObject<{
406 tarball: z.ZodString;
407 shasum: z.ZodString;
408 integrity: z.ZodOptional<z.ZodString>;
409 /** Mapping of semver version numbers to the required metadata for installing a package version. */
410 fileCount: z.ZodOptional<z.ZodNumber>;
411 unpackedSize: z.ZodOptional<z.ZodNumber>;
412 "npm-signature": z.ZodOptional<z.ZodString>;
413 signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
414 keyid: z.ZodString;
415 sig: z.ZodString;
416 }, "strip", z.ZodTypeAny, {
417 keyid: string;
418 sig: string;
419 }, {
420 keyid: string;
421 sig: string;
422 }>, "many">>;
423 }, "strip", z.ZodTypeAny, {
424 tarball: string;
425 shasum: string;
426 integrity?: string | undefined;
427 fileCount?: number | undefined;
428 unpackedSize?: number | undefined;
429 "npm-signature"?: string | undefined;
430 signatures?: {
431 keyid: string;
432 sig: string;
433 }[] | undefined;
434 }, {
435 tarball: string;
436 shasum: string;
437 integrity?: string | undefined;
438 fileCount?: number | undefined;
439 unpackedSize?: number | undefined;
440 "npm-signature"?: string | undefined;
441 signatures?: {
442 keyid: string;
443 sig: string;
444 }[] | undefined;
445 }>;
446 readme: z.ZodOptional<z.ZodString>;
447 readmeFilename: z.ZodOptional<z.ZodString>;
448 gitHead: z.ZodOptional<z.ZodString>;
449 _hasShrinkwrap: z.ZodOptional<z.ZodBoolean>;
450 _nodeVersion: z.ZodOptional<z.ZodString>;
451 _npmVersion: z.ZodOptional<z.ZodString>;
452 _npmUser: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
453 name: z.ZodString;
454 email: z.ZodOptional<z.ZodString>;
455 url: z.ZodOptional<z.ZodString>;
456 }, "strip", z.ZodTypeAny, {
457 name: string;
458 url?: string | undefined;
459 email?: string | undefined;
460 }, {
461 name: string;
462 url?: string | undefined;
463 email?: string | undefined;
464 }>]>>>;
465 _npmOperationalInternal: z.ZodOptional<z.ZodObject<{
466 host: z.ZodOptional<z.ZodString>;
467 tmp: z.ZodOptional<z.ZodString>;
468 }, "strip", z.ZodTypeAny, {
469 host?: string | undefined;
470 tmp?: string | undefined;
471 }, {
472 host?: string | undefined;
473 tmp?: string | undefined;
474 }>>;
475 engines: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
476 license: z.ZodCatch<z.ZodOptional<z.ZodString>>;
477 homepage: z.ZodCatch<z.ZodOptional<z.ZodString>>;
478 deprecated: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
479 }>, "name" | "version" | "bin" | "directories" | "dependencies" | "devDependencies" | "peerDependencies" | "peerDependenciesMeta" | "bundleDependencies" | "optionalDependencies" | "engines" | "os" | "cpu" | "deprecated" | "dist" | "_hasShrinkwrap">, {
480 /** True if the package contains an `install` script. */
481 hasInstallScript: z.ZodOptional<z.ZodBoolean>;
482 }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<Pick<z.objectUtil.extendShape<{
483 name: z.ZodString;
484 version: z.ZodString;
485 description: z.ZodOptional<z.ZodString>;
486 keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
487 homepage: z.ZodOptional<z.ZodString>;
488 bugs: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
489 url: z.ZodOptional<z.ZodString>;
490 email: z.ZodOptional<z.ZodString>;
491 }, "strip", z.ZodTypeAny, {
492 url?: string | undefined;
493 email?: string | undefined;
494 }, {
495 url?: string | undefined;
496 email?: string | undefined;
497 }>]>>;
498 license: z.ZodOptional<z.ZodString>;
499 author: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
500 name: z.ZodString;
501 email: z.ZodOptional<z.ZodString>;
502 url: z.ZodOptional<z.ZodString>;
503 }, "strip", z.ZodTypeAny, {
504 name: string;
505 url?: string | undefined;
506 email?: string | undefined;
507 }, {
508 name: string;
509 url?: string | undefined;
510 email?: string | undefined;
511 }>]>>;
512 contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
513 name: z.ZodString;
514 email: z.ZodOptional<z.ZodString>;
515 url: z.ZodOptional<z.ZodString>;
516 }, "strip", z.ZodTypeAny, {
517 name: string;
518 url?: string | undefined;
519 email?: string | undefined;
520 }, {
521 name: string;
522 url?: string | undefined;
523 email?: string | undefined;
524 }>]>, "many">>;
525 maintainers: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
526 name: z.ZodString;
527 email: z.ZodOptional<z.ZodString>;
528 url: z.ZodOptional<z.ZodString>;
529 }, "strip", z.ZodTypeAny, {
530 name: string;
531 url?: string | undefined;
532 email?: string | undefined;
533 }, {
534 name: string;
535 url?: string | undefined;
536 email?: string | undefined;
537 }>]>, "many">>;
538 funding: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
539 url: z.ZodString;
540 type: z.ZodOptional<z.ZodString>;
541 }, "strip", z.ZodTypeAny, {
542 url: string;
543 type?: string | undefined;
544 }, {
545 url: string;
546 type?: string | undefined;
547 }>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
548 url: z.ZodString;
549 type: z.ZodOptional<z.ZodString>;
550 }, "strip", z.ZodTypeAny, {
551 url: string;
552 type?: string | undefined;
553 }, {
554 url: string;
555 type?: string | undefined;
556 }>]>, "many">]>>;
557 files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
558 main: z.ZodOptional<z.ZodString>;
559 browser: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>]>>;
560 bin: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
561 man: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
562 directories: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
563 repository: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
564 type: z.ZodString;
565 url: z.ZodString;
566 directory: z.ZodOptional<z.ZodString>;
567 }, "strip", z.ZodTypeAny, {
568 type: string;
569 url: string;
570 directory?: string | undefined;
571 }, {
572 type: string;
573 url: string;
574 directory?: string | undefined;
575 }>]>>;
576 scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
577 config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
578 dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
579 devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
580 peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
581 peerDependenciesMeta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
582 optional: z.ZodBoolean;
583 }, "strip", z.ZodTypeAny, {
584 optional: boolean;
585 }, {
586 optional: boolean;
587 }>>>;
588 bundleDependencies: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
589 bundledDependencies: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
590 optionalDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
591 overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
592 engines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
593 os: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
594 cpu: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
595 private: z.ZodOptional<z.ZodBoolean>;
596 publishConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
597 workspaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
598 deprecated: z.ZodOptional<z.ZodString>;
599 module: z.ZodOptional<z.ZodString>;
600 type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"module">, z.ZodLiteral<"commonjs">]>>;
601 types: z.ZodOptional<z.ZodString>;
602 typings: z.ZodOptional<z.ZodString>;
603 typesVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
604 packageManager: z.ZodOptional<z.ZodString>;
605 sideEffects: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
606 imports: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
607 exports: z.ZodOptional<z.ZodUnion<[z.ZodNull, z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
608 }, {
609 _id: z.ZodString;
610 dist: z.ZodObject<{
611 tarball: z.ZodString;
612 shasum: z.ZodString;
613 integrity: z.ZodOptional<z.ZodString>;
614 /** Mapping of semver version numbers to the required metadata for installing a package version. */
615 fileCount: z.ZodOptional<z.ZodNumber>;
616 unpackedSize: z.ZodOptional<z.ZodNumber>;
617 "npm-signature": z.ZodOptional<z.ZodString>;
618 signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
619 keyid: z.ZodString;
620 sig: z.ZodString;
621 }, "strip", z.ZodTypeAny, {
622 keyid: string;
623 sig: string;
624 }, {
625 keyid: string;
626 sig: string;
627 }>, "many">>;
628 }, "strip", z.ZodTypeAny, {
629 tarball: string;
630 shasum: string;
631 integrity?: string | undefined;
632 fileCount?: number | undefined;
633 unpackedSize?: number | undefined;
634 "npm-signature"?: string | undefined;
635 signatures?: {
636 keyid: string;
637 sig: string;
638 }[] | undefined;
639 }, {
640 tarball: string;
641 shasum: string;
642 integrity?: string | undefined;
643 fileCount?: number | undefined;
644 unpackedSize?: number | undefined;
645 "npm-signature"?: string | undefined;
646 signatures?: {
647 keyid: string;
648 sig: string;
649 }[] | undefined;
650 }>;
651 readme: z.ZodOptional<z.ZodString>;
652 readmeFilename: z.ZodOptional<z.ZodString>;
653 gitHead: z.ZodOptional<z.ZodString>;
654 _hasShrinkwrap: z.ZodOptional<z.ZodBoolean>;
655 _nodeVersion: z.ZodOptional<z.ZodString>;
656 _npmVersion: z.ZodOptional<z.ZodString>;
657 _npmUser: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
658 name: z.ZodString;
659 email: z.ZodOptional<z.ZodString>;
660 url: z.ZodOptional<z.ZodString>;
661 }, "strip", z.ZodTypeAny, {
662 name: string;
663 url?: string | undefined;
664 email?: string | undefined;
665 }, {
666 name: string;
667 url?: string | undefined;
668 email?: string | undefined;
669 }>]>>>;
670 _npmOperationalInternal: z.ZodOptional<z.ZodObject<{
671 host: z.ZodOptional<z.ZodString>;
672 tmp: z.ZodOptional<z.ZodString>;
673 }, "strip", z.ZodTypeAny, {
674 host?: string | undefined;
675 tmp?: string | undefined;
676 }, {
677 host?: string | undefined;
678 tmp?: string | undefined;
679 }>>;
680 engines: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
681 license: z.ZodCatch<z.ZodOptional<z.ZodString>>;
682 homepage: z.ZodCatch<z.ZodOptional<z.ZodString>>;
683 deprecated: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
684 }>, "name" | "version" | "bin" | "directories" | "dependencies" | "devDependencies" | "peerDependencies" | "peerDependenciesMeta" | "bundleDependencies" | "optionalDependencies" | "engines" | "os" | "cpu" | "deprecated" | "dist" | "_hasShrinkwrap">, {
685 /** True if the package contains an `install` script. */
686 hasInstallScript: z.ZodOptional<z.ZodBoolean>;
687 }>, z.ZodTypeAny, "passthrough">>>;
688}, "strip", z.ZodTypeAny, {
689 name: string;
690 modified: string;
691 "dist-tags": {
692 latest: string;
693 next?: string | undefined;
694 alpha?: string | undefined;
695 beta?: string | undefined;
696 rc?: string | undefined;
697 canary?: string | undefined;
698 dev?: string | undefined;
699 } & {
700 [k: string]: string;
701 };
702 versions: Record<string, z.objectOutputType<z.objectUtil.extendShape<Pick<z.objectUtil.extendShape<{
703 name: z.ZodString;
704 version: z.ZodString;
705 description: z.ZodOptional<z.ZodString>;
706 keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
707 homepage: z.ZodOptional<z.ZodString>;
708 bugs: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
709 url: z.ZodOptional<z.ZodString>;
710 email: z.ZodOptional<z.ZodString>;
711 }, "strip", z.ZodTypeAny, {
712 url?: string | undefined;
713 email?: string | undefined;
714 }, {
715 url?: string | undefined;
716 email?: string | undefined;
717 }>]>>;
718 license: z.ZodOptional<z.ZodString>;
719 author: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
720 name: z.ZodString;
721 email: z.ZodOptional<z.ZodString>;
722 url: z.ZodOptional<z.ZodString>;
723 }, "strip", z.ZodTypeAny, {
724 name: string;
725 url?: string | undefined;
726 email?: string | undefined;
727 }, {
728 name: string;
729 url?: string | undefined;
730 email?: string | undefined;
731 }>]>>;
732 contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
733 name: z.ZodString;
734 email: z.ZodOptional<z.ZodString>;
735 url: z.ZodOptional<z.ZodString>;
736 }, "strip", z.ZodTypeAny, {
737 name: string;
738 url?: string | undefined;
739 email?: string | undefined;
740 }, {
741 name: string;
742 url?: string | undefined;
743 email?: string | undefined;
744 }>]>, "many">>;
745 maintainers: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
746 name: z.ZodString;
747 email: z.ZodOptional<z.ZodString>;
748 url: z.ZodOptional<z.ZodString>;
749 }, "strip", z.ZodTypeAny, {
750 name: string;
751 url?: string | undefined;
752 email?: string | undefined;
753 }, {
754 name: string;
755 url?: string | undefined;
756 email?: string | undefined;
757 }>]>, "many">>;
758 funding: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
759 url: z.ZodString;
760 type: z.ZodOptional<z.ZodString>;
761 }, "strip", z.ZodTypeAny, {
762 url: string;
763 type?: string | undefined;
764 }, {
765 url: string;
766 type?: string | undefined;
767 }>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
768 url: z.ZodString;
769 type: z.ZodOptional<z.ZodString>;
770 }, "strip", z.ZodTypeAny, {
771 url: string;
772 type?: string | undefined;
773 }, {
774 url: string;
775 type?: string | undefined;
776 }>]>, "many">]>>;
777 files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
778 main: z.ZodOptional<z.ZodString>;
779 browser: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>]>>;
780 bin: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
781 man: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
782 directories: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
783 repository: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
784 type: z.ZodString;
785 url: z.ZodString;
786 directory: z.ZodOptional<z.ZodString>;
787 }, "strip", z.ZodTypeAny, {
788 type: string;
789 url: string;
790 directory?: string | undefined;
791 }, {
792 type: string;
793 url: string;
794 directory?: string | undefined;
795 }>]>>;
796 scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
797 config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
798 dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
799 devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
800 peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
801 peerDependenciesMeta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
802 optional: z.ZodBoolean;
803 }, "strip", z.ZodTypeAny, {
804 optional: boolean;
805 }, {
806 optional: boolean;
807 }>>>;
808 bundleDependencies: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
809 bundledDependencies: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
810 optionalDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
811 overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
812 engines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
813 os: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
814 cpu: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
815 private: z.ZodOptional<z.ZodBoolean>;
816 publishConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
817 workspaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
818 deprecated: z.ZodOptional<z.ZodString>;
819 module: z.ZodOptional<z.ZodString>;
820 type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"module">, z.ZodLiteral<"commonjs">]>>;
821 types: z.ZodOptional<z.ZodString>;
822 typings: z.ZodOptional<z.ZodString>;
823 typesVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
824 packageManager: z.ZodOptional<z.ZodString>;
825 sideEffects: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
826 imports: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
827 exports: z.ZodOptional<z.ZodUnion<[z.ZodNull, z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
828 }, {
829 _id: z.ZodString;
830 dist: z.ZodObject<{
831 tarball: z.ZodString;
832 shasum: z.ZodString;
833 integrity: z.ZodOptional<z.ZodString>;
834 /** Mapping of semver version numbers to the required metadata for installing a package version. */
835 fileCount: z.ZodOptional<z.ZodNumber>;
836 unpackedSize: z.ZodOptional<z.ZodNumber>;
837 "npm-signature": z.ZodOptional<z.ZodString>;
838 signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
839 keyid: z.ZodString;
840 sig: z.ZodString;
841 }, "strip", z.ZodTypeAny, {
842 keyid: string;
843 sig: string;
844 }, {
845 keyid: string;
846 sig: string;
847 }>, "many">>;
848 }, "strip", z.ZodTypeAny, {
849 tarball: string;
850 shasum: string;
851 integrity?: string | undefined;
852 fileCount?: number | undefined;
853 unpackedSize?: number | undefined;
854 "npm-signature"?: string | undefined;
855 signatures?: {
856 keyid: string;
857 sig: string;
858 }[] | undefined;
859 }, {
860 tarball: string;
861 shasum: string;
862 integrity?: string | undefined;
863 fileCount?: number | undefined;
864 unpackedSize?: number | undefined;
865 "npm-signature"?: string | undefined;
866 signatures?: {
867 keyid: string;
868 sig: string;
869 }[] | undefined;
870 }>;
871 readme: z.ZodOptional<z.ZodString>;
872 readmeFilename: z.ZodOptional<z.ZodString>;
873 gitHead: z.ZodOptional<z.ZodString>;
874 _hasShrinkwrap: z.ZodOptional<z.ZodBoolean>;
875 _nodeVersion: z.ZodOptional<z.ZodString>;
876 _npmVersion: z.ZodOptional<z.ZodString>;
877 _npmUser: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
878 name: z.ZodString;
879 email: z.ZodOptional<z.ZodString>;
880 url: z.ZodOptional<z.ZodString>;
881 }, "strip", z.ZodTypeAny, {
882 name: string;
883 url?: string | undefined;
884 email?: string | undefined;
885 }, {
886 name: string;
887 url?: string | undefined;
888 email?: string | undefined;
889 }>]>>>;
890 _npmOperationalInternal: z.ZodOptional<z.ZodObject<{
891 host: z.ZodOptional<z.ZodString>;
892 tmp: z.ZodOptional<z.ZodString>;
893 }, "strip", z.ZodTypeAny, {
894 host?: string | undefined;
895 tmp?: string | undefined;
896 }, {
897 host?: string | undefined;
898 tmp?: string | undefined;
899 }>>;
900 engines: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
901 license: z.ZodCatch<z.ZodOptional<z.ZodString>>;
902 homepage: z.ZodCatch<z.ZodOptional<z.ZodString>>;
903 deprecated: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
904 }>, "name" | "version" | "bin" | "directories" | "dependencies" | "devDependencies" | "peerDependencies" | "peerDependenciesMeta" | "bundleDependencies" | "optionalDependencies" | "engines" | "os" | "cpu" | "deprecated" | "dist" | "_hasShrinkwrap">, {
905 /** True if the package contains an `install` script. */
906 hasInstallScript: z.ZodOptional<z.ZodBoolean>;
907 }>, z.ZodTypeAny, "passthrough">>;
908}, {
909 name: string;
910 modified: string;
911 "dist-tags": {
912 latest: string;
913 next?: string | undefined;
914 alpha?: string | undefined;
915 beta?: string | undefined;
916 rc?: string | undefined;
917 canary?: string | undefined;
918 dev?: string | undefined;
919 } & {
920 [k: string]: string;
921 };
922 versions: Record<string, z.objectInputType<z.objectUtil.extendShape<Pick<z.objectUtil.extendShape<{
923 name: z.ZodString;
924 version: z.ZodString;
925 description: z.ZodOptional<z.ZodString>;
926 keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
927 homepage: z.ZodOptional<z.ZodString>;
928 bugs: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
929 url: z.ZodOptional<z.ZodString>;
930 email: z.ZodOptional<z.ZodString>;
931 }, "strip", z.ZodTypeAny, {
932 url?: string | undefined;
933 email?: string | undefined;
934 }, {
935 url?: string | undefined;
936 email?: string | undefined;
937 }>]>>;
938 license: z.ZodOptional<z.ZodString>;
939 author: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
940 name: z.ZodString;
941 email: z.ZodOptional<z.ZodString>;
942 url: z.ZodOptional<z.ZodString>;
943 }, "strip", z.ZodTypeAny, {
944 name: string;
945 url?: string | undefined;
946 email?: string | undefined;
947 }, {
948 name: string;
949 url?: string | undefined;
950 email?: string | undefined;
951 }>]>>;
952 contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
953 name: z.ZodString;
954 email: z.ZodOptional<z.ZodString>;
955 url: z.ZodOptional<z.ZodString>;
956 }, "strip", z.ZodTypeAny, {
957 name: string;
958 url?: string | undefined;
959 email?: string | undefined;
960 }, {
961 name: string;
962 url?: string | undefined;
963 email?: string | undefined;
964 }>]>, "many">>;
965 maintainers: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
966 name: z.ZodString;
967 email: z.ZodOptional<z.ZodString>;
968 url: z.ZodOptional<z.ZodString>;
969 }, "strip", z.ZodTypeAny, {
970 name: string;
971 url?: string | undefined;
972 email?: string | undefined;
973 }, {
974 name: string;
975 url?: string | undefined;
976 email?: string | undefined;
977 }>]>, "many">>;
978 funding: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
979 url: z.ZodString;
980 type: z.ZodOptional<z.ZodString>;
981 }, "strip", z.ZodTypeAny, {
982 url: string;
983 type?: string | undefined;
984 }, {
985 url: string;
986 type?: string | undefined;
987 }>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
988 url: z.ZodString;
989 type: z.ZodOptional<z.ZodString>;
990 }, "strip", z.ZodTypeAny, {
991 url: string;
992 type?: string | undefined;
993 }, {
994 url: string;
995 type?: string | undefined;
996 }>]>, "many">]>>;
997 files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
998 main: z.ZodOptional<z.ZodString>;
999 browser: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>]>>;
1000 bin: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1001 man: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1002 directories: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1003 repository: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
1004 type: z.ZodString;
1005 url: z.ZodString;
1006 directory: z.ZodOptional<z.ZodString>;
1007 }, "strip", z.ZodTypeAny, {
1008 type: string;
1009 url: string;
1010 directory?: string | undefined;
1011 }, {
1012 type: string;
1013 url: string;
1014 directory?: string | undefined;
1015 }>]>>;
1016 scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1017 config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1018 dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1019 devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1020 peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1021 peerDependenciesMeta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1022 optional: z.ZodBoolean;
1023 }, "strip", z.ZodTypeAny, {
1024 optional: boolean;
1025 }, {
1026 optional: boolean;
1027 }>>>;
1028 bundleDependencies: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1029 bundledDependencies: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1030 optionalDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1031 overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1032 engines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1033 os: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1034 cpu: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1035 private: z.ZodOptional<z.ZodBoolean>;
1036 publishConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1037 workspaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1038 deprecated: z.ZodOptional<z.ZodString>;
1039 module: z.ZodOptional<z.ZodString>;
1040 type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"module">, z.ZodLiteral<"commonjs">]>>;
1041 types: z.ZodOptional<z.ZodString>;
1042 typings: z.ZodOptional<z.ZodString>;
1043 typesVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
1044 packageManager: z.ZodOptional<z.ZodString>;
1045 sideEffects: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1046 imports: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1047 exports: z.ZodOptional<z.ZodUnion<[z.ZodNull, z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
1048 }, {
1049 _id: z.ZodString;
1050 dist: z.ZodObject<{
1051 tarball: z.ZodString;
1052 shasum: z.ZodString;
1053 integrity: z.ZodOptional<z.ZodString>;
1054 /** Mapping of semver version numbers to the required metadata for installing a package version. */
1055 fileCount: z.ZodOptional<z.ZodNumber>;
1056 unpackedSize: z.ZodOptional<z.ZodNumber>;
1057 "npm-signature": z.ZodOptional<z.ZodString>;
1058 signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
1059 keyid: z.ZodString;
1060 sig: z.ZodString;
1061 }, "strip", z.ZodTypeAny, {
1062 keyid: string;
1063 sig: string;
1064 }, {
1065 keyid: string;
1066 sig: string;
1067 }>, "many">>;
1068 }, "strip", z.ZodTypeAny, {
1069 tarball: string;
1070 shasum: string;
1071 integrity?: string | undefined;
1072 fileCount?: number | undefined;
1073 unpackedSize?: number | undefined;
1074 "npm-signature"?: string | undefined;
1075 signatures?: {
1076 keyid: string;
1077 sig: string;
1078 }[] | undefined;
1079 }, {
1080 tarball: string;
1081 shasum: string;
1082 integrity?: string | undefined;
1083 fileCount?: number | undefined;
1084 unpackedSize?: number | undefined;
1085 "npm-signature"?: string | undefined;
1086 signatures?: {
1087 keyid: string;
1088 sig: string;
1089 }[] | undefined;
1090 }>;
1091 readme: z.ZodOptional<z.ZodString>;
1092 readmeFilename: z.ZodOptional<z.ZodString>;
1093 gitHead: z.ZodOptional<z.ZodString>;
1094 _hasShrinkwrap: z.ZodOptional<z.ZodBoolean>;
1095 _nodeVersion: z.ZodOptional<z.ZodString>;
1096 _npmVersion: z.ZodOptional<z.ZodString>;
1097 _npmUser: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
1098 name: z.ZodString;
1099 email: z.ZodOptional<z.ZodString>;
1100 url: z.ZodOptional<z.ZodString>;
1101 }, "strip", z.ZodTypeAny, {
1102 name: string;
1103 url?: string | undefined;
1104 email?: string | undefined;
1105 }, {
1106 name: string;
1107 url?: string | undefined;
1108 email?: string | undefined;
1109 }>]>>>;
1110 _npmOperationalInternal: z.ZodOptional<z.ZodObject<{
1111 host: z.ZodOptional<z.ZodString>;
1112 tmp: z.ZodOptional<z.ZodString>;
1113 }, "strip", z.ZodTypeAny, {
1114 host?: string | undefined;
1115 tmp?: string | undefined;
1116 }, {
1117 host?: string | undefined;
1118 tmp?: string | undefined;
1119 }>>;
1120 engines: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
1121 license: z.ZodCatch<z.ZodOptional<z.ZodString>>;
1122 homepage: z.ZodCatch<z.ZodOptional<z.ZodString>>;
1123 deprecated: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
1124 }>, "name" | "version" | "bin" | "directories" | "dependencies" | "devDependencies" | "peerDependencies" | "peerDependenciesMeta" | "bundleDependencies" | "optionalDependencies" | "engines" | "os" | "cpu" | "deprecated" | "dist" | "_hasShrinkwrap">, {
1125 /** True if the package contains an `install` script. */
1126 hasInstallScript: z.ZodOptional<z.ZodBoolean>;
1127 }>, z.ZodTypeAny, "passthrough">>;
1128}>;
1129/**
1130`AbbreviatedPackument` (package document) describes the minimal metadata needed for installing a package.
1131@see {@link https://github.com/npm/registry/blob/master/docs/responses/package-metadata.md#abbreviated-metadata-format}
1132*/
1133type AbbreviatedPackument = z.infer<typeof AbbreviatedPackument>;
1134/**
1135`getAbbreviatedPackument` returns the abbreviated packument (package document)
1136containing only the metadata necessary to install a package.
1137
1138@remarks
1139To get all the metadata (full packument) about a package see {@link getPackument}.
1140
1141@param name - package name
1142@param registry - URL of the registry (default: npm registry)
1143
1144@see {@link AbbreviatedPackument}
1145*/
1146declare const getAbbreviatedPackument: (name: string, registry?: string) => Promise<AbbreviatedPackument>;
1147
1148declare const BulkDailyPackageDownloads: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodNull, z.ZodObject<z.objectUtil.extendShape<{
1149 start: z.ZodString;
1150 end: z.ZodString;
1151 downloads: z.ZodArray<z.ZodObject<{
1152 downloads: z.ZodNumber;
1153 day: z.ZodString;
1154 }, "strip", z.ZodTypeAny, {
1155 downloads: number;
1156 day: string;
1157 }, {
1158 downloads: number;
1159 day: string;
1160 }>, "many">;
1161}, {
1162 package: z.ZodString;
1163}>, "strip", z.ZodTypeAny, {
1164 start: string;
1165 end: string;
1166 downloads: {
1167 downloads: number;
1168 day: string;
1169 }[];
1170 package: string;
1171}, {
1172 start: string;
1173 end: string;
1174 downloads: {
1175 downloads: number;
1176 day: string;
1177 }[];
1178 package: string;
1179}>]>>;
1180/**
1181`BulkDailyPackageDownloads` describes the total number of downloads for each day
1182for some packages in a given time period.
1183@see {@link https://github.com/npm/registry/blob/master/docs/download-counts.md#bulk-queries}
1184*/
1185type BulkDailyPackageDownloads = z.infer<typeof BulkDailyPackageDownloads>;
1186/**
1187`getBulkDailyPackageDownloads` returns the total number of downloads for each day
1188for some packages in the given time period.
1189
1190@param names - list of package names; the npm registry does not support scoped packages and handles a maximum of 128 packages at a time
1191@param period - {@link DownloadPeriod | time period} in which downloads happened; the npm registry limits bulk data to the last 365 days
1192@param registry - URL of the registry downloads API (default: npm registry downloads API)
1193
1194@see {@link BulkDailyPackageDownloads}
1195*/
1196declare const getBulkDailyPackageDownloads: (names: [string, string, ...string[]], period: DownloadPeriod, registry?: string) => Promise<BulkDailyPackageDownloads>;
1197
1198declare const BulkPackageDownloads: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodNull, z.ZodObject<z.objectUtil.extendShape<{
1199 downloads: z.ZodNumber;
1200 start: z.ZodString;
1201 end: z.ZodString;
1202}, {
1203 package: z.ZodString;
1204}>, "strip", z.ZodTypeAny, {
1205 start: string;
1206 end: string;
1207 downloads: number;
1208 package: string;
1209}, {
1210 start: string;
1211 end: string;
1212 downloads: number;
1213 package: string;
1214}>]>>;
1215/**
1216`BulkPackageDownloads` describes the total number of downloads for some packages in a given time period.
1217@see {@link https://github.com/npm/registry/blob/master/docs/download-counts.md#bulk-queries}
1218*/
1219type BulkPackageDownloads = z.infer<typeof BulkPackageDownloads>;
1220/**
1221`getBulkPackageDownloads` returns the total number of downloads for
1222the given packages in the given time period.
1223
1224@param names - list of package names; the npm registry does not support scoped packages and handles a maximum of 128 packages at a time
1225@param period - {@link DownloadPeriod | time period} in which downloads happened; the npm registry limits bulk data to the last 365 days
1226@param registry - URL of the registry downloads API (default: npm registry downloads API)
1227
1228@see {@link BulkPackageDownloads}
1229*/
1230declare const getBulkPackageDownloads: (names: [string, string, ...string[]], period: DownloadPeriod, registry?: string) => Promise<BulkPackageDownloads>;
1231
1232declare const DailyPackageDownloads: z.ZodObject<z.objectUtil.extendShape<{
1233 start: z.ZodString;
1234 end: z.ZodString;
1235 downloads: z.ZodArray<z.ZodObject<{
1236 downloads: z.ZodNumber;
1237 day: z.ZodString;
1238 }, "strip", z.ZodTypeAny, {
1239 downloads: number;
1240 day: string;
1241 }, {
1242 downloads: number;
1243 day: string;
1244 }>, "many">;
1245}, {
1246 /** Package name. */
1247 package: z.ZodString;
1248}>, "strip", z.ZodTypeAny, {
1249 start: string;
1250 end: string;
1251 downloads: {
1252 downloads: number;
1253 day: string;
1254 }[];
1255 package: string;
1256}, {
1257 start: string;
1258 end: string;
1259 downloads: {
1260 downloads: number;
1261 day: string;
1262 }[];
1263 package: string;
1264}>;
1265/**
1266`DailyPackageDownloads` describes the total number of downloads for each day
1267for a package in a given time period.
1268@see {@link https://github.com/npm/registry/blob/master/docs/download-counts.md#ranges}
1269*/
1270type DailyPackageDownloads = z.infer<typeof DailyPackageDownloads>;
1271/**
1272`getDailyPackageDownloads` returns the total number of downloads for each day
1273for a package in the given time period.
1274
1275@param name - package name
1276@param period - {@link DownloadPeriod | time period} in which downloads happened; the npm registry limits data to the last 18 months
1277@param registry - URL of the registry downloads API (default: npm registry downloads API)
1278
1279@see {@link DailyPackageDownloads}
1280*/
1281declare const getDailyPackageDownloads: (name: string, period: DownloadPeriod, registry?: string) => Promise<DailyPackageDownloads>;
1282
1283declare const DailyRegistryDownloads: z.ZodObject<{
1284 /** Date of the first day (inclusive) in the format `YYYY-MM-DD`. */
1285 start: z.ZodString;
1286 /** Date of the last day (inclusive) in the format `YYYY-MM-DD`. */
1287 end: z.ZodString;
1288 /** Download counts for each day. */
1289 downloads: z.ZodArray<z.ZodObject<{
1290 /** Total number of downloads for the day. */
1291 downloads: z.ZodNumber;
1292 /** Date of the day in the format `YYYY-MM-DD`. */
1293 day: z.ZodString;
1294 }, "strip", z.ZodTypeAny, {
1295 downloads: number;
1296 day: string;
1297 }, {
1298 downloads: number;
1299 day: string;
1300 }>, "many">;
1301}, "strip", z.ZodTypeAny, {
1302 start: string;
1303 end: string;
1304 downloads: {
1305 downloads: number;
1306 day: string;
1307 }[];
1308}, {
1309 start: string;
1310 end: string;
1311 downloads: {
1312 downloads: number;
1313 day: string;
1314 }[];
1315}>;
1316/**
1317`DailyRegistryDownloads` describes the total number of downloads for each day
1318for all packages in the registry in a given time period.
1319@see {@link https://github.com/npm/registry/blob/master/docs/download-counts.md#ranges}
1320*/
1321type DailyRegistryDownloads = z.infer<typeof DailyRegistryDownloads>;
1322/**
1323`getDailyRegistryDownloads` returns the total number of downloads for each day
1324for all packages in the registry in the given time period.
1325
1326@param period - {@link DownloadPeriod | time period} in which downloads happened; the npm registry limits data to the last 18 months
1327@param registry - URL of the registry downloads API (default: npm registry downloads API)
1328
1329@see {@link DailyRegistryDownloads}
1330*/
1331declare const getDailyRegistryDownloads: (period: DownloadPeriod, registry?: string) => Promise<DailyRegistryDownloads>;
1332
1333declare const PackageDownloads: z.ZodObject<z.objectUtil.extendShape<{
1334 downloads: z.ZodNumber;
1335 start: z.ZodString; /** Package name. */
1336 end: z.ZodString;
1337}, {
1338 /** Package name. */
1339 package: z.ZodString;
1340}>, "strip", z.ZodTypeAny, {
1341 start: string;
1342 end: string;
1343 downloads: number;
1344 package: string;
1345}, {
1346 start: string;
1347 end: string;
1348 downloads: number;
1349 package: string;
1350}>;
1351/**
1352`PackageDownloads` describes the total number of downloads for a package in a given time period.
1353@see {@link https://github.com/npm/registry/blob/master/docs/download-counts.md#point-values}
1354*/
1355type PackageDownloads = z.infer<typeof PackageDownloads>;
1356/**
1357`getPackageDownloads` returns the total number of downloads for a package in the given time period.
1358
1359@param name - package name
1360@param period - {@link DownloadPeriod | time period} in which downloads happened; the npm registry limits data to the last 18 months
1361@param registry - URL of the registry downloads API (default: npm registry downloads API)
1362
1363@see {@link PackageDownloads}
1364*/
1365declare const getPackageDownloads: (name: string, period: DownloadPeriod, registry?: string) => Promise<PackageDownloads>;
1366
1367declare const PackageManifest: z.ZodObject<z.objectUtil.extendShape<{
1368 name: z.ZodString;
1369 version: z.ZodString;
1370 description: z.ZodOptional<z.ZodString>; /**
1371 `Dist` describes the distribution metadata generated by the registry.
1372 @see {@link https://github.com/npm/registry/blob/master/docs/responses/package-metadata.md#dist}
1373 */
1374 keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1375 homepage: z.ZodOptional<z.ZodString>;
1376 bugs: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
1377 url: z.ZodOptional<z.ZodString>;
1378 email: z.ZodOptional<z.ZodString>;
1379 }, "strip", z.ZodTypeAny, {
1380 url?: string | undefined;
1381 email?: string | undefined;
1382 }, {
1383 url?: string | undefined;
1384 email?: string | undefined;
1385 }>]>>;
1386 license: z.ZodOptional<z.ZodString>;
1387 author: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
1388 name: z.ZodString;
1389 email: z.ZodOptional<z.ZodString>;
1390 url: z.ZodOptional<z.ZodString>;
1391 }, "strip", z.ZodTypeAny, {
1392 name: string;
1393 url?: string | undefined;
1394 email?: string | undefined;
1395 }, {
1396 name: string;
1397 url?: string | undefined;
1398 email?: string | undefined;
1399 }>]>>;
1400 contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1401 name: z.ZodString;
1402 email: z.ZodOptional<z.ZodString>; /** Name of the README file. */
1403 url: z.ZodOptional<z.ZodString>;
1404 }, "strip", z.ZodTypeAny, {
1405 /** Commit corresponding to the published package version. */
1406 name: string;
1407 url?: string | undefined;
1408 email?: string | undefined;
1409 }, {
1410 name: string;
1411 url?: string | undefined;
1412 email?: string | undefined;
1413 }>]>, "many">>;
1414 maintainers: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1415 name: z.ZodString;
1416 email: z.ZodOptional<z.ZodString>;
1417 url: z.ZodOptional<z.ZodString>;
1418 }, "strip", z.ZodTypeAny, {
1419 name: string;
1420 url?: string | undefined;
1421 email?: string | undefined;
1422 }, {
1423 name: string;
1424 url?: string | undefined;
1425 email?: string | undefined;
1426 }>]>, "many">>;
1427 funding: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
1428 url: z.ZodString;
1429 type: z.ZodOptional<z.ZodString>;
1430 }, "strip", z.ZodTypeAny, {
1431 url: string;
1432 type?: string | undefined;
1433 }, {
1434 url: string;
1435 type?: string | undefined;
1436 }>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1437 url: z.ZodString;
1438 type: z.ZodOptional<z.ZodString>;
1439 }, "strip", z.ZodTypeAny, {
1440 url: string;
1441 type?: string | undefined;
1442 }, {
1443 url: string;
1444 type?: string | undefined;
1445 }>]>, "many">]>>;
1446 files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1447 main: z.ZodOptional<z.ZodString>;
1448 browser: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>]>>;
1449 bin: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1450 man: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1451 directories: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1452 repository: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
1453 type: z.ZodString;
1454 url: z.ZodString;
1455 directory: z.ZodOptional<z.ZodString>;
1456 }, "strip", z.ZodTypeAny, {
1457 type: string;
1458 url: string;
1459 directory?: string | undefined;
1460 }, {
1461 type: string;
1462 url: string;
1463 directory?: string | undefined;
1464 }>]>>;
1465 scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1466 config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1467 dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1468 devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1469 peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1470 peerDependenciesMeta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1471 optional: z.ZodBoolean;
1472 }, "strip", z.ZodTypeAny, {
1473 optional: boolean;
1474 }, {
1475 optional: boolean;
1476 }>>>;
1477 bundleDependencies: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1478 bundledDependencies: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1479 optionalDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1480 overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1481 engines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1482 os: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1483 cpu: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1484 private: z.ZodOptional<z.ZodBoolean>;
1485 publishConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1486 workspaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1487 deprecated: z.ZodOptional<z.ZodString>;
1488 module: z.ZodOptional<z.ZodString>;
1489 type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"module">, z.ZodLiteral<"commonjs">]>>;
1490 types: z.ZodOptional<z.ZodString>;
1491 typings: z.ZodOptional<z.ZodString>;
1492 typesVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
1493 packageManager: z.ZodOptional<z.ZodString>;
1494 sideEffects: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1495 imports: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1496 exports: z.ZodOptional<z.ZodUnion<[z.ZodNull, z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
1497}, {
1498 /** Package version ID in the format `<name>@<version>` (e.g., `foo@1.0.0`). */
1499 _id: z.ZodString;
1500 /** Distribution metadata generated by the registry. */
1501 dist: z.ZodObject<{
1502 /** Tarball URL. */
1503 tarball: z.ZodString;
1504 /** SHA1 sum of the tarball. */
1505 shasum: z.ZodString;
1506 /** String in the format `<hashAlgorithm>-<base64-hash>`. */
1507 integrity: z.ZodOptional<z.ZodString>;
1508 /** Number of files in the tarball. */
1509 fileCount: z.ZodOptional<z.ZodNumber>;
1510 /** Total unpacked size in bytes of the files in the tarball. */
1511 unpackedSize: z.ZodOptional<z.ZodNumber>;
1512 /**
1513 PGP signature in the format `<package>@<version>:<integrity>`.
1514 @deprecated {@link https://docs.npmjs.com/about-registry-signatures#migrating-from-pgp-to-ecdsa-signatures}
1515 */
1516 "npm-signature": z.ZodOptional<z.ZodString>;
1517 /**
1518 ECDSA registry signatures.
1519 @see {@link https://docs.npmjs.com/about-registry-signatures}
1520 */
1521 signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
1522 keyid: z.ZodString;
1523 sig: z.ZodString;
1524 }, "strip", z.ZodTypeAny, {
1525 keyid: string;
1526 sig: string;
1527 }, {
1528 keyid: string;
1529 sig: string;
1530 }>, "many">>;
1531 }, "strip", z.ZodTypeAny, {
1532 tarball: string;
1533 shasum: string;
1534 integrity?: string | undefined;
1535 fileCount?: number | undefined;
1536 unpackedSize?: number | undefined;
1537 "npm-signature"?: string | undefined;
1538 signatures?: {
1539 keyid: string;
1540 sig: string;
1541 }[] | undefined;
1542 }, {
1543 tarball: string;
1544 shasum: string;
1545 integrity?: string | undefined;
1546 fileCount?: number | undefined;
1547 unpackedSize?: number | undefined;
1548 "npm-signature"?: string | undefined;
1549 signatures?: {
1550 keyid: string;
1551 sig: string;
1552 }[] | undefined;
1553 }>;
1554 /** Text extracted from the README file. */
1555 readme: z.ZodOptional<z.ZodString>;
1556 /** Name of the README file. */
1557 readmeFilename: z.ZodOptional<z.ZodString>;
1558 /** Commit corresponding to the published package version. */
1559 gitHead: z.ZodOptional<z.ZodString>;
1560 /** True if the package contains a shrinkwrap file. */
1561 _hasShrinkwrap: z.ZodOptional<z.ZodBoolean>;
1562 /** Node.js version used to publish the package. */
1563 _nodeVersion: z.ZodOptional<z.ZodString>;
1564 /** npm CLI version used to publish the package. */
1565 _npmVersion: z.ZodOptional<z.ZodString>;
1566 /** npm user who published the specific version of the package. */
1567 _npmUser: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
1568 name: z.ZodString;
1569 email: z.ZodOptional<z.ZodString>;
1570 url: z.ZodOptional<z.ZodString>;
1571 }, "strip", z.ZodTypeAny, {
1572 name: string;
1573 url?: string | undefined;
1574 email?: string | undefined;
1575 }, {
1576 name: string;
1577 url?: string | undefined;
1578 email?: string | undefined;
1579 }>]>>>;
1580 /** Internal npm registry data. */
1581 _npmOperationalInternal: z.ZodOptional<z.ZodObject<{
1582 host: z.ZodOptional<z.ZodString>;
1583 tmp: z.ZodOptional<z.ZodString>;
1584 }, "strip", z.ZodTypeAny, {
1585 host?: string | undefined;
1586 tmp?: string | undefined;
1587 }, {
1588 host?: string | undefined;
1589 tmp?: string | undefined;
1590 }>>;
1591 /**
1592 Runtime systems supported by the package.
1593
1594 @remarks
1595 In some old packages (like `lodash@0.1.0`) the `engines` property is an array of strings
1596 instead of an object and with catch it becomes `undefined`.
1597 */
1598 engines: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
1599 /**
1600 SPDX license expression or a custom license.
1601
1602 @remarks
1603 In some old packages (like `eslint@0.0.6`) the `license` property is an object
1604 and with catch `license` becomes `undefined`.
1605 */
1606 license: z.ZodCatch<z.ZodOptional<z.ZodString>>;
1607 /**
1608 URL of the package's homepage.
1609
1610 @remarks
1611 In some old packages (like `fs-extra@0.0.1`) the `homepage` property is an array
1612 of strings and with catch it becomes `undefined`.
1613 */
1614 homepage: z.ZodCatch<z.ZodOptional<z.ZodString>>;
1615 /**
1616 Deprecation status/message.
1617
1618 @remarks
1619 In some packages (like `react@16.14.0`) the `deprecated` property is a boolean
1620 instead of a deprecation message.
1621 */
1622 deprecated: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
1623}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
1624 name: z.ZodString;
1625 version: z.ZodString;
1626 description: z.ZodOptional<z.ZodString>; /**
1627 `Dist` describes the distribution metadata generated by the registry.
1628 @see {@link https://github.com/npm/registry/blob/master/docs/responses/package-metadata.md#dist}
1629 */
1630 keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1631 homepage: z.ZodOptional<z.ZodString>;
1632 bugs: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
1633 url: z.ZodOptional<z.ZodString>;
1634 email: z.ZodOptional<z.ZodString>;
1635 }, "strip", z.ZodTypeAny, {
1636 url?: string | undefined;
1637 email?: string | undefined;
1638 }, {
1639 url?: string | undefined;
1640 email?: string | undefined;
1641 }>]>>;
1642 license: z.ZodOptional<z.ZodString>;
1643 author: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
1644 name: z.ZodString;
1645 email: z.ZodOptional<z.ZodString>;
1646 url: z.ZodOptional<z.ZodString>;
1647 }, "strip", z.ZodTypeAny, {
1648 name: string;
1649 url?: string | undefined;
1650 email?: string | undefined;
1651 }, {
1652 name: string;
1653 url?: string | undefined;
1654 email?: string | undefined;
1655 }>]>>;
1656 contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1657 name: z.ZodString;
1658 email: z.ZodOptional<z.ZodString>; /** Name of the README file. */
1659 url: z.ZodOptional<z.ZodString>;
1660 }, "strip", z.ZodTypeAny, {
1661 /** Commit corresponding to the published package version. */
1662 name: string;
1663 url?: string | undefined;
1664 email?: string | undefined;
1665 }, {
1666 name: string;
1667 url?: string | undefined;
1668 email?: string | undefined;
1669 }>]>, "many">>;
1670 maintainers: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1671 name: z.ZodString;
1672 email: z.ZodOptional<z.ZodString>;
1673 url: z.ZodOptional<z.ZodString>;
1674 }, "strip", z.ZodTypeAny, {
1675 name: string;
1676 url?: string | undefined;
1677 email?: string | undefined;
1678 }, {
1679 name: string;
1680 url?: string | undefined;
1681 email?: string | undefined;
1682 }>]>, "many">>;
1683 funding: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
1684 url: z.ZodString;
1685 type: z.ZodOptional<z.ZodString>;
1686 }, "strip", z.ZodTypeAny, {
1687 url: string;
1688 type?: string | undefined;
1689 }, {
1690 url: string;
1691 type?: string | undefined;
1692 }>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1693 url: z.ZodString;
1694 type: z.ZodOptional<z.ZodString>;
1695 }, "strip", z.ZodTypeAny, {
1696 url: string;
1697 type?: string | undefined;
1698 }, {
1699 url: string;
1700 type?: string | undefined;
1701 }>]>, "many">]>>;
1702 files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1703 main: z.ZodOptional<z.ZodString>;
1704 browser: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>]>>;
1705 bin: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1706 man: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1707 directories: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1708 repository: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
1709 type: z.ZodString;
1710 url: z.ZodString;
1711 directory: z.ZodOptional<z.ZodString>;
1712 }, "strip", z.ZodTypeAny, {
1713 type: string;
1714 url: string;
1715 directory?: string | undefined;
1716 }, {
1717 type: string;
1718 url: string;
1719 directory?: string | undefined;
1720 }>]>>;
1721 scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1722 config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1723 dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1724 devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1725 peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1726 peerDependenciesMeta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1727 optional: z.ZodBoolean;
1728 }, "strip", z.ZodTypeAny, {
1729 optional: boolean;
1730 }, {
1731 optional: boolean;
1732 }>>>;
1733 bundleDependencies: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1734 bundledDependencies: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1735 optionalDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1736 overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1737 engines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1738 os: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1739 cpu: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1740 private: z.ZodOptional<z.ZodBoolean>;
1741 publishConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1742 workspaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1743 deprecated: z.ZodOptional<z.ZodString>;
1744 module: z.ZodOptional<z.ZodString>;
1745 type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"module">, z.ZodLiteral<"commonjs">]>>;
1746 types: z.ZodOptional<z.ZodString>;
1747 typings: z.ZodOptional<z.ZodString>;
1748 typesVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
1749 packageManager: z.ZodOptional<z.ZodString>;
1750 sideEffects: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1751 imports: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1752 exports: z.ZodOptional<z.ZodUnion<[z.ZodNull, z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
1753}, {
1754 /** Package version ID in the format `<name>@<version>` (e.g., `foo@1.0.0`). */
1755 _id: z.ZodString;
1756 /** Distribution metadata generated by the registry. */
1757 dist: z.ZodObject<{
1758 /** Tarball URL. */
1759 tarball: z.ZodString;
1760 /** SHA1 sum of the tarball. */
1761 shasum: z.ZodString;
1762 /** String in the format `<hashAlgorithm>-<base64-hash>`. */
1763 integrity: z.ZodOptional<z.ZodString>;
1764 /** Number of files in the tarball. */
1765 fileCount: z.ZodOptional<z.ZodNumber>;
1766 /** Total unpacked size in bytes of the files in the tarball. */
1767 unpackedSize: z.ZodOptional<z.ZodNumber>;
1768 /**
1769 PGP signature in the format `<package>@<version>:<integrity>`.
1770 @deprecated {@link https://docs.npmjs.com/about-registry-signatures#migrating-from-pgp-to-ecdsa-signatures}
1771 */
1772 "npm-signature": z.ZodOptional<z.ZodString>;
1773 /**
1774 ECDSA registry signatures.
1775 @see {@link https://docs.npmjs.com/about-registry-signatures}
1776 */
1777 signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
1778 keyid: z.ZodString;
1779 sig: z.ZodString;
1780 }, "strip", z.ZodTypeAny, {
1781 keyid: string;
1782 sig: string;
1783 }, {
1784 keyid: string;
1785 sig: string;
1786 }>, "many">>;
1787 }, "strip", z.ZodTypeAny, {
1788 tarball: string;
1789 shasum: string;
1790 integrity?: string | undefined;
1791 fileCount?: number | undefined;
1792 unpackedSize?: number | undefined;
1793 "npm-signature"?: string | undefined;
1794 signatures?: {
1795 keyid: string;
1796 sig: string;
1797 }[] | undefined;
1798 }, {
1799 tarball: string;
1800 shasum: string;
1801 integrity?: string | undefined;
1802 fileCount?: number | undefined;
1803 unpackedSize?: number | undefined;
1804 "npm-signature"?: string | undefined;
1805 signatures?: {
1806 keyid: string;
1807 sig: string;
1808 }[] | undefined;
1809 }>;
1810 /** Text extracted from the README file. */
1811 readme: z.ZodOptional<z.ZodString>;
1812 /** Name of the README file. */
1813 readmeFilename: z.ZodOptional<z.ZodString>;
1814 /** Commit corresponding to the published package version. */
1815 gitHead: z.ZodOptional<z.ZodString>;
1816 /** True if the package contains a shrinkwrap file. */
1817 _hasShrinkwrap: z.ZodOptional<z.ZodBoolean>;
1818 /** Node.js version used to publish the package. */
1819 _nodeVersion: z.ZodOptional<z.ZodString>;
1820 /** npm CLI version used to publish the package. */
1821 _npmVersion: z.ZodOptional<z.ZodString>;
1822 /** npm user who published the specific version of the package. */
1823 _npmUser: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
1824 name: z.ZodString;
1825 email: z.ZodOptional<z.ZodString>;
1826 url: z.ZodOptional<z.ZodString>;
1827 }, "strip", z.ZodTypeAny, {
1828 name: string;
1829 url?: string | undefined;
1830 email?: string | undefined;
1831 }, {
1832 name: string;
1833 url?: string | undefined;
1834 email?: string | undefined;
1835 }>]>>>;
1836 /** Internal npm registry data. */
1837 _npmOperationalInternal: z.ZodOptional<z.ZodObject<{
1838 host: z.ZodOptional<z.ZodString>;
1839 tmp: z.ZodOptional<z.ZodString>;
1840 }, "strip", z.ZodTypeAny, {
1841 host?: string | undefined;
1842 tmp?: string | undefined;
1843 }, {
1844 host?: string | undefined;
1845 tmp?: string | undefined;
1846 }>>;
1847 /**
1848 Runtime systems supported by the package.
1849
1850 @remarks
1851 In some old packages (like `lodash@0.1.0`) the `engines` property is an array of strings
1852 instead of an object and with catch it becomes `undefined`.
1853 */
1854 engines: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
1855 /**
1856 SPDX license expression or a custom license.
1857
1858 @remarks
1859 In some old packages (like `eslint@0.0.6`) the `license` property is an object
1860 and with catch `license` becomes `undefined`.
1861 */
1862 license: z.ZodCatch<z.ZodOptional<z.ZodString>>;
1863 /**
1864 URL of the package's homepage.
1865
1866 @remarks
1867 In some old packages (like `fs-extra@0.0.1`) the `homepage` property is an array
1868 of strings and with catch it becomes `undefined`.
1869 */
1870 homepage: z.ZodCatch<z.ZodOptional<z.ZodString>>;
1871 /**
1872 Deprecation status/message.
1873
1874 @remarks
1875 In some packages (like `react@16.14.0`) the `deprecated` property is a boolean
1876 instead of a deprecation message.
1877 */
1878 deprecated: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
1879}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
1880 name: z.ZodString;
1881 version: z.ZodString;
1882 description: z.ZodOptional<z.ZodString>; /**
1883 `Dist` describes the distribution metadata generated by the registry.
1884 @see {@link https://github.com/npm/registry/blob/master/docs/responses/package-metadata.md#dist}
1885 */
1886 keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1887 homepage: z.ZodOptional<z.ZodString>;
1888 bugs: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
1889 url: z.ZodOptional<z.ZodString>;
1890 email: z.ZodOptional<z.ZodString>;
1891 }, "strip", z.ZodTypeAny, {
1892 url?: string | undefined;
1893 email?: string | undefined;
1894 }, {
1895 url?: string | undefined;
1896 email?: string | undefined;
1897 }>]>>;
1898 license: z.ZodOptional<z.ZodString>;
1899 author: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
1900 name: z.ZodString;
1901 email: z.ZodOptional<z.ZodString>;
1902 url: z.ZodOptional<z.ZodString>;
1903 }, "strip", z.ZodTypeAny, {
1904 name: string;
1905 url?: string | undefined;
1906 email?: string | undefined;
1907 }, {
1908 name: string;
1909 url?: string | undefined;
1910 email?: string | undefined;
1911 }>]>>;
1912 contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1913 name: z.ZodString;
1914 email: z.ZodOptional<z.ZodString>; /** Name of the README file. */
1915 url: z.ZodOptional<z.ZodString>;
1916 }, "strip", z.ZodTypeAny, {
1917 /** Commit corresponding to the published package version. */
1918 name: string;
1919 url?: string | undefined;
1920 email?: string | undefined;
1921 }, {
1922 name: string;
1923 url?: string | undefined;
1924 email?: string | undefined;
1925 }>]>, "many">>;
1926 maintainers: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1927 name: z.ZodString;
1928 email: z.ZodOptional<z.ZodString>;
1929 url: z.ZodOptional<z.ZodString>;
1930 }, "strip", z.ZodTypeAny, {
1931 name: string;
1932 url?: string | undefined;
1933 email?: string | undefined;
1934 }, {
1935 name: string;
1936 url?: string | undefined;
1937 email?: string | undefined;
1938 }>]>, "many">>;
1939 funding: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
1940 url: z.ZodString;
1941 type: z.ZodOptional<z.ZodString>;
1942 }, "strip", z.ZodTypeAny, {
1943 url: string;
1944 type?: string | undefined;
1945 }, {
1946 url: string;
1947 type?: string | undefined;
1948 }>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1949 url: z.ZodString;
1950 type: z.ZodOptional<z.ZodString>;
1951 }, "strip", z.ZodTypeAny, {
1952 url: string;
1953 type?: string | undefined;
1954 }, {
1955 url: string;
1956 type?: string | undefined;
1957 }>]>, "many">]>>;
1958 files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1959 main: z.ZodOptional<z.ZodString>;
1960 browser: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>]>>;
1961 bin: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1962 man: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1963 directories: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1964 repository: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
1965 type: z.ZodString;
1966 url: z.ZodString;
1967 directory: z.ZodOptional<z.ZodString>;
1968 }, "strip", z.ZodTypeAny, {
1969 type: string;
1970 url: string;
1971 directory?: string | undefined;
1972 }, {
1973 type: string;
1974 url: string;
1975 directory?: string | undefined;
1976 }>]>>;
1977 scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1978 config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1979 dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1980 devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1981 peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1982 peerDependenciesMeta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1983 optional: z.ZodBoolean;
1984 }, "strip", z.ZodTypeAny, {
1985 optional: boolean;
1986 }, {
1987 optional: boolean;
1988 }>>>;
1989 bundleDependencies: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1990 bundledDependencies: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1991 optionalDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1992 overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1993 engines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1994 os: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1995 cpu: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1996 private: z.ZodOptional<z.ZodBoolean>;
1997 publishConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1998 workspaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1999 deprecated: z.ZodOptional<z.ZodString>;
2000 module: z.ZodOptional<z.ZodString>;
2001 type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"module">, z.ZodLiteral<"commonjs">]>>;
2002 types: z.ZodOptional<z.ZodString>;
2003 typings: z.ZodOptional<z.ZodString>;
2004 typesVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
2005 packageManager: z.ZodOptional<z.ZodString>;
2006 sideEffects: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
2007 imports: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2008 exports: z.ZodOptional<z.ZodUnion<[z.ZodNull, z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
2009}, {
2010 /** Package version ID in the format `<name>@<version>` (e.g., `foo@1.0.0`). */
2011 _id: z.ZodString;
2012 /** Distribution metadata generated by the registry. */
2013 dist: z.ZodObject<{
2014 /** Tarball URL. */
2015 tarball: z.ZodString;
2016 /** SHA1 sum of the tarball. */
2017 shasum: z.ZodString;
2018 /** String in the format `<hashAlgorithm>-<base64-hash>`. */
2019 integrity: z.ZodOptional<z.ZodString>;
2020 /** Number of files in the tarball. */
2021 fileCount: z.ZodOptional<z.ZodNumber>;
2022 /** Total unpacked size in bytes of the files in the tarball. */
2023 unpackedSize: z.ZodOptional<z.ZodNumber>;
2024 /**
2025 PGP signature in the format `<package>@<version>:<integrity>`.
2026 @deprecated {@link https://docs.npmjs.com/about-registry-signatures#migrating-from-pgp-to-ecdsa-signatures}
2027 */
2028 "npm-signature": z.ZodOptional<z.ZodString>;
2029 /**
2030 ECDSA registry signatures.
2031 @see {@link https://docs.npmjs.com/about-registry-signatures}
2032 */
2033 signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
2034 keyid: z.ZodString;
2035 sig: z.ZodString;
2036 }, "strip", z.ZodTypeAny, {
2037 keyid: string;
2038 sig: string;
2039 }, {
2040 keyid: string;
2041 sig: string;
2042 }>, "many">>;
2043 }, "strip", z.ZodTypeAny, {
2044 tarball: string;
2045 shasum: string;
2046 integrity?: string | undefined;
2047 fileCount?: number | undefined;
2048 unpackedSize?: number | undefined;
2049 "npm-signature"?: string | undefined;
2050 signatures?: {
2051 keyid: string;
2052 sig: string;
2053 }[] | undefined;
2054 }, {
2055 tarball: string;
2056 shasum: string;
2057 integrity?: string | undefined;
2058 fileCount?: number | undefined;
2059 unpackedSize?: number | undefined;
2060 "npm-signature"?: string | undefined;
2061 signatures?: {
2062 keyid: string;
2063 sig: string;
2064 }[] | undefined;
2065 }>;
2066 /** Text extracted from the README file. */
2067 readme: z.ZodOptional<z.ZodString>;
2068 /** Name of the README file. */
2069 readmeFilename: z.ZodOptional<z.ZodString>;
2070 /** Commit corresponding to the published package version. */
2071 gitHead: z.ZodOptional<z.ZodString>;
2072 /** True if the package contains a shrinkwrap file. */
2073 _hasShrinkwrap: z.ZodOptional<z.ZodBoolean>;
2074 /** Node.js version used to publish the package. */
2075 _nodeVersion: z.ZodOptional<z.ZodString>;
2076 /** npm CLI version used to publish the package. */
2077 _npmVersion: z.ZodOptional<z.ZodString>;
2078 /** npm user who published the specific version of the package. */
2079 _npmUser: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2080 name: z.ZodString;
2081 email: z.ZodOptional<z.ZodString>;
2082 url: z.ZodOptional<z.ZodString>;
2083 }, "strip", z.ZodTypeAny, {
2084 name: string;
2085 url?: string | undefined;
2086 email?: string | undefined;
2087 }, {
2088 name: string;
2089 url?: string | undefined;
2090 email?: string | undefined;
2091 }>]>>>;
2092 /** Internal npm registry data. */
2093 _npmOperationalInternal: z.ZodOptional<z.ZodObject<{
2094 host: z.ZodOptional<z.ZodString>;
2095 tmp: z.ZodOptional<z.ZodString>;
2096 }, "strip", z.ZodTypeAny, {
2097 host?: string | undefined;
2098 tmp?: string | undefined;
2099 }, {
2100 host?: string | undefined;
2101 tmp?: string | undefined;
2102 }>>;
2103 /**
2104 Runtime systems supported by the package.
2105
2106 @remarks
2107 In some old packages (like `lodash@0.1.0`) the `engines` property is an array of strings
2108 instead of an object and with catch it becomes `undefined`.
2109 */
2110 engines: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
2111 /**
2112 SPDX license expression or a custom license.
2113
2114 @remarks
2115 In some old packages (like `eslint@0.0.6`) the `license` property is an object
2116 and with catch `license` becomes `undefined`.
2117 */
2118 license: z.ZodCatch<z.ZodOptional<z.ZodString>>;
2119 /**
2120 URL of the package's homepage.
2121
2122 @remarks
2123 In some old packages (like `fs-extra@0.0.1`) the `homepage` property is an array
2124 of strings and with catch it becomes `undefined`.
2125 */
2126 homepage: z.ZodCatch<z.ZodOptional<z.ZodString>>;
2127 /**
2128 Deprecation status/message.
2129
2130 @remarks
2131 In some packages (like `react@16.14.0`) the `deprecated` property is a boolean
2132 instead of a deprecation message.
2133 */
2134 deprecated: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
2135}>, z.ZodTypeAny, "passthrough">>;
2136/**
2137`PackageManifest` describes the manifest for a specific version of a package (e.g., `foo@1.0.0`).
2138
2139@remarks
2140The manifest contains data extracted from `package.json` as well as data generated by the registry.
2141
2142@see {@link https://docs.npmjs.com/cli/v10/configuring-npm/package-json}
2143@see {@link https://github.com/npm/registry/blob/master/docs/REGISTRY-API.md#getpackageversion}
2144@see {@link https://github.com/npm/registry/blob/master/docs/responses/package-metadata.md#abbreviated-version-object}
2145@see {@link https://github.com/npm/registry/blob/master/docs/responses/package-metadata.md#full-metadata-format}
2146@see {@link https://github.com/npm/registry/blob/master/docs/REGISTRY-API.md#version}
2147*/
2148type PackageManifest = z.infer<typeof PackageManifest>;
2149/**
2150`getPackageManifest` returns the manifest describing a specific version of a package (e.g., `foo@1.0.0`).
2151
2152@param name - package name
2153@param versionOrTag - semver version number (e.g., `1.0.0`) or distribution tag (e.g., `latest`) (default: `latest`)
2154@param registry - URL of the registry (default: npm registry)
2155
2156@see {@link PackageManifest}
2157*/
2158declare const getPackageManifest: (name: string, versionOrTag?: string, registry?: string) => Promise<PackageManifest>;
2159
2160declare const PackageVersionsDownloads: z.ZodObject<{
2161 /** Package name. */
2162 package: z.ZodString;
2163 /** Mapping of semver version numbers to total number of downloads. */
2164 downloads: z.ZodRecord<z.ZodString, z.ZodNumber>;
2165}, "strip", z.ZodTypeAny, {
2166 downloads: Record<string, number>;
2167 package: string;
2168}, {
2169 downloads: Record<string, number>;
2170 package: string;
2171}>;
2172/**
2173`PackageVersionsDownloads` describes the total number of downloads
2174for each version of a package in the previous 7 days.
2175@see {@link https://github.com/npm/registry/blob/master/docs/download-counts.md#per-version-download-counts}
2176*/
2177type PackageVersionsDownloads = z.infer<typeof PackageVersionsDownloads>;
2178/**
2179`getPackageVersionsDownloads` returns the total number of downloads
2180for each version of a package in the previous 7 days.
2181
2182@param name - package name
2183@param registry - URL of the registry downloads API (default: npm registry downloads API)
2184
2185@see {@link PackageVersionsDownloads}
2186*/
2187declare const getPackageVersionsDownloads: (name: string, registry?: string) => Promise<PackageVersionsDownloads>;
2188
2189declare const Packument: z.ZodObject<z.objectUtil.extendShape<Pick<{
2190 name: z.ZodString;
2191 version: z.ZodString;
2192 description: z.ZodOptional<z.ZodString>;
2193 keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2194 homepage: z.ZodOptional<z.ZodString>;
2195 bugs: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2196 url: z.ZodOptional<z.ZodString>;
2197 email: z.ZodOptional<z.ZodString>;
2198 }, "strip", z.ZodTypeAny, {
2199 url?: string | undefined;
2200 email?: string | undefined;
2201 }, {
2202 url?: string | undefined;
2203 email?: string | undefined;
2204 }>]>>;
2205 license: z.ZodOptional<z.ZodString>;
2206 author: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2207 name: z.ZodString;
2208 email: z.ZodOptional<z.ZodString>;
2209 url: z.ZodOptional<z.ZodString>;
2210 }, "strip", z.ZodTypeAny, {
2211 name: string;
2212 url?: string | undefined;
2213 email?: string | undefined;
2214 }, {
2215 name: string;
2216 url?: string | undefined;
2217 email?: string | undefined;
2218 }>]>>;
2219 contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
2220 name: z.ZodString;
2221 email: z.ZodOptional<z.ZodString>;
2222 url: z.ZodOptional<z.ZodString>;
2223 }, "strip", z.ZodTypeAny, {
2224 name: string;
2225 url?: string | undefined;
2226 email?: string | undefined;
2227 }, {
2228 name: string;
2229 url?: string | undefined;
2230 email?: string | undefined;
2231 }>]>, "many">>;
2232 maintainers: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
2233 name: z.ZodString;
2234 email: z.ZodOptional<z.ZodString>;
2235 url: z.ZodOptional<z.ZodString>;
2236 }, "strip", z.ZodTypeAny, {
2237 name: string;
2238 url?: string | undefined;
2239 email?: string | undefined;
2240 }, {
2241 name: string;
2242 url?: string | undefined;
2243 email?: string | undefined;
2244 }>]>, "many">>;
2245 funding: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2246 url: z.ZodString;
2247 type: z.ZodOptional<z.ZodString>;
2248 }, "strip", z.ZodTypeAny, {
2249 url: string;
2250 type?: string | undefined;
2251 }, {
2252 url: string;
2253 type?: string | undefined;
2254 }>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
2255 url: z.ZodString;
2256 type: z.ZodOptional<z.ZodString>;
2257 }, "strip", z.ZodTypeAny, {
2258 url: string;
2259 type?: string | undefined;
2260 }, {
2261 url: string;
2262 type?: string | undefined;
2263 }>]>, "many">]>>;
2264 files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2265 main: z.ZodOptional<z.ZodString>;
2266 browser: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>]>>;
2267 bin: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
2268 man: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2269 directories: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2270 repository: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2271 type: z.ZodString;
2272 url: z.ZodString;
2273 directory: z.ZodOptional<z.ZodString>;
2274 }, "strip", z.ZodTypeAny, {
2275 type: string;
2276 url: string;
2277 directory?: string | undefined;
2278 }, {
2279 type: string;
2280 url: string;
2281 directory?: string | undefined;
2282 }>]>>;
2283 scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2284 config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2285 dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2286 devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2287 peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2288 peerDependenciesMeta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2289 optional: z.ZodBoolean;
2290 }, "strip", z.ZodTypeAny, {
2291 optional: boolean;
2292 }, {
2293 optional: boolean;
2294 }>>>;
2295 bundleDependencies: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
2296 bundledDependencies: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
2297 optionalDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2298 overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2299 engines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2300 os: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2301 cpu: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2302 private: z.ZodOptional<z.ZodBoolean>;
2303 publishConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2304 workspaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2305 deprecated: z.ZodOptional<z.ZodString>;
2306 module: z.ZodOptional<z.ZodString>;
2307 type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"module">, z.ZodLiteral<"commonjs">]>>;
2308 types: z.ZodOptional<z.ZodString>;
2309 typings: z.ZodOptional<z.ZodString>;
2310 typesVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
2311 packageManager: z.ZodOptional<z.ZodString>;
2312 sideEffects: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
2313 imports: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2314 exports: z.ZodOptional<z.ZodUnion<[z.ZodNull, z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
2315}, "description" | "keywords" | "homepage" | "bugs" | "license" | "author" | "contributors" | "maintainers" | "repository">, {
2316 /** Package name used as the ID in CouchDB. */
2317 _id: z.ZodString;
2318 /** Package name. */
2319 name: z.ZodString;
2320 /** Mapping of distribution tags to semver version numbers e.g., `{ "latest": "1.0.0" }`). */
2321 "dist-tags": z.ZodObject<{
2322 latest: z.ZodString;
2323 next: z.ZodOptional<z.ZodString>;
2324 alpha: z.ZodOptional<z.ZodString>;
2325 beta: z.ZodOptional<z.ZodString>;
2326 rc: z.ZodOptional<z.ZodString>;
2327 canary: z.ZodOptional<z.ZodString>;
2328 dev: z.ZodOptional<z.ZodString>;
2329 }, "strip", z.ZodString, z.objectOutputType<{
2330 latest: z.ZodString;
2331 next: z.ZodOptional<z.ZodString>;
2332 alpha: z.ZodOptional<z.ZodString>;
2333 beta: z.ZodOptional<z.ZodString>;
2334 rc: z.ZodOptional<z.ZodString>;
2335 canary: z.ZodOptional<z.ZodString>;
2336 dev: z.ZodOptional<z.ZodString>;
2337 }, z.ZodString, "strip">, z.objectInputType<{
2338 latest: z.ZodString;
2339 next: z.ZodOptional<z.ZodString>;
2340 alpha: z.ZodOptional<z.ZodString>;
2341 beta: z.ZodOptional<z.ZodString>;
2342 rc: z.ZodOptional<z.ZodString>;
2343 canary: z.ZodOptional<z.ZodString>;
2344 dev: z.ZodOptional<z.ZodString>;
2345 }, z.ZodString, "strip">>;
2346 /**
2347 Mapping of semver version numbers to timestamps in ISO 8601 format representing
2348 the publishing time (e.g., `{ "1.0.0": "2021-11-23T19:12:24.006Z" }`).
2349 Also includes the timestamps of when the package was `created` and last `modified`.
2350 */
2351 time: z.ZodObject<{
2352 /** Timestamp of when the package was created in ISO 8601 format (e.g., `2021-11-23T19:12:24.006Z`). */
2353 created: z.ZodString;
2354 /** Timestamp of when the package was last modified in ISO 8601 format (e.g., `2021-11-23T19:12:24.006Z`). */
2355 modified: z.ZodString;
2356 }, "strip", z.ZodString, z.objectOutputType<{
2357 /** Timestamp of when the package was created in ISO 8601 format (e.g., `2021-11-23T19:12:24.006Z`). */
2358 created: z.ZodString;
2359 /** Timestamp of when the package was last modified in ISO 8601 format (e.g., `2021-11-23T19:12:24.006Z`). */
2360 modified: z.ZodString;
2361 }, z.ZodString, "strip">, z.objectInputType<{
2362 /** Timestamp of when the package was created in ISO 8601 format (e.g., `2021-11-23T19:12:24.006Z`). */
2363 created: z.ZodString;
2364 /** Timestamp of when the package was last modified in ISO 8601 format (e.g., `2021-11-23T19:12:24.006Z`). */
2365 modified: z.ZodString;
2366 }, z.ZodString, "strip">>;
2367 /**
2368 Mapping of semver version numbers to package manifests.
2369 @see {@link PackageManifest}
2370 */
2371 versions: z.ZodRecord<z.ZodString, z.ZodObject<z.objectUtil.extendShape<{
2372 name: z.ZodString;
2373 version: z.ZodString;
2374 description: z.ZodOptional<z.ZodString>;
2375 keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2376 homepage: z.ZodOptional<z.ZodString>;
2377 bugs: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2378 url: z.ZodOptional<z.ZodString>;
2379 email: z.ZodOptional<z.ZodString>;
2380 }, "strip", z.ZodTypeAny, {
2381 url?: string | undefined;
2382 email?: string | undefined;
2383 }, {
2384 url?: string | undefined;
2385 email?: string | undefined;
2386 }>]>>;
2387 license: z.ZodOptional<z.ZodString>;
2388 author: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2389 name: z.ZodString;
2390 email: z.ZodOptional<z.ZodString>;
2391 url: z.ZodOptional<z.ZodString>;
2392 }, "strip", z.ZodTypeAny, {
2393 name: string;
2394 url?: string | undefined;
2395 email?: string | undefined;
2396 }, {
2397 name: string;
2398 url?: string | undefined;
2399 email?: string | undefined;
2400 }>]>>;
2401 contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
2402 name: z.ZodString;
2403 email: z.ZodOptional<z.ZodString>;
2404 url: z.ZodOptional<z.ZodString>;
2405 }, "strip", z.ZodTypeAny, {
2406 name: string;
2407 url?: string | undefined;
2408 email?: string | undefined;
2409 }, {
2410 name: string;
2411 url?: string | undefined;
2412 email?: string | undefined;
2413 }>]>, "many">>;
2414 maintainers: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
2415 name: z.ZodString;
2416 email: z.ZodOptional<z.ZodString>;
2417 url: z.ZodOptional<z.ZodString>;
2418 }, "strip", z.ZodTypeAny, {
2419 name: string;
2420 url?: string | undefined;
2421 email?: string | undefined;
2422 }, {
2423 name: string;
2424 url?: string | undefined;
2425 email?: string | undefined;
2426 }>]>, "many">>;
2427 funding: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2428 url: z.ZodString;
2429 type: z.ZodOptional<z.ZodString>;
2430 }, "strip", z.ZodTypeAny, {
2431 url: string;
2432 type?: string | undefined;
2433 }, {
2434 url: string;
2435 type?: string | undefined;
2436 }>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
2437 url: z.ZodString;
2438 type: z.ZodOptional<z.ZodString>;
2439 }, "strip", z.ZodTypeAny, {
2440 url: string;
2441 type?: string | undefined;
2442 }, {
2443 url: string;
2444 type?: string | undefined;
2445 }>]>, "many">]>>;
2446 files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2447 main: z.ZodOptional<z.ZodString>;
2448 browser: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>]>>;
2449 bin: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
2450 man: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2451 directories: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2452 repository: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2453 type: z.ZodString;
2454 url: z.ZodString;
2455 directory: z.ZodOptional<z.ZodString>;
2456 }, "strip", z.ZodTypeAny, {
2457 type: string;
2458 url: string;
2459 directory?: string | undefined;
2460 }, {
2461 type: string;
2462 url: string;
2463 directory?: string | undefined;
2464 }>]>>;
2465 scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2466 config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2467 dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2468 devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2469 peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2470 peerDependenciesMeta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2471 optional: z.ZodBoolean;
2472 }, "strip", z.ZodTypeAny, {
2473 optional: boolean;
2474 }, {
2475 optional: boolean;
2476 }>>>;
2477 bundleDependencies: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
2478 bundledDependencies: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
2479 optionalDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2480 overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2481 engines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2482 os: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2483 cpu: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2484 private: z.ZodOptional<z.ZodBoolean>;
2485 publishConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2486 workspaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2487 deprecated: z.ZodOptional<z.ZodString>;
2488 module: z.ZodOptional<z.ZodString>;
2489 type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"module">, z.ZodLiteral<"commonjs">]>>;
2490 types: z.ZodOptional<z.ZodString>;
2491 typings: z.ZodOptional<z.ZodString>;
2492 typesVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
2493 packageManager: z.ZodOptional<z.ZodString>;
2494 sideEffects: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
2495 imports: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2496 exports: z.ZodOptional<z.ZodUnion<[z.ZodNull, z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
2497 }, {
2498 _id: z.ZodString;
2499 dist: z.ZodObject<{
2500 tarball: z.ZodString;
2501 shasum: z.ZodString;
2502 integrity: z.ZodOptional<z.ZodString>;
2503 fileCount: z.ZodOptional<z.ZodNumber>;
2504 unpackedSize: z.ZodOptional<z.ZodNumber>;
2505 "npm-signature": z.ZodOptional<z.ZodString>;
2506 signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
2507 keyid: z.ZodString;
2508 sig: z.ZodString;
2509 }, "strip", z.ZodTypeAny, {
2510 keyid: string;
2511 sig: string;
2512 }, {
2513 keyid: string;
2514 sig: string;
2515 }>, "many">>;
2516 }, "strip", z.ZodTypeAny, {
2517 tarball: string;
2518 shasum: string;
2519 integrity?: string | undefined;
2520 fileCount?: number | undefined;
2521 unpackedSize?: number | undefined;
2522 "npm-signature"?: string | undefined;
2523 signatures?: {
2524 keyid: string;
2525 sig: string;
2526 }[] | undefined;
2527 }, {
2528 tarball: string;
2529 shasum: string;
2530 integrity?: string | undefined;
2531 fileCount?: number | undefined;
2532 unpackedSize?: number | undefined;
2533 "npm-signature"?: string | undefined;
2534 signatures?: {
2535 keyid: string;
2536 sig: string;
2537 }[] | undefined;
2538 }>;
2539 readme: z.ZodOptional<z.ZodString>;
2540 readmeFilename: z.ZodOptional<z.ZodString>;
2541 gitHead: z.ZodOptional<z.ZodString>;
2542 _hasShrinkwrap: z.ZodOptional<z.ZodBoolean>;
2543 _nodeVersion: z.ZodOptional<z.ZodString>;
2544 _npmVersion: z.ZodOptional<z.ZodString>;
2545 _npmUser: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2546 name: z.ZodString;
2547 email: z.ZodOptional<z.ZodString>;
2548 url: z.ZodOptional<z.ZodString>;
2549 }, "strip", z.ZodTypeAny, {
2550 name: string;
2551 url?: string | undefined;
2552 email?: string | undefined;
2553 }, {
2554 name: string;
2555 url?: string | undefined;
2556 email?: string | undefined;
2557 }>]>>>;
2558 _npmOperationalInternal: z.ZodOptional<z.ZodObject<{
2559 host: z.ZodOptional<z.ZodString>;
2560 tmp: z.ZodOptional<z.ZodString>;
2561 }, "strip", z.ZodTypeAny, {
2562 host?: string | undefined;
2563 tmp?: string | undefined;
2564 }, {
2565 host?: string | undefined;
2566 tmp?: string | undefined;
2567 }>>;
2568 engines: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
2569 license: z.ZodCatch<z.ZodOptional<z.ZodString>>;
2570 homepage: z.ZodCatch<z.ZodOptional<z.ZodString>>;
2571 deprecated: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
2572 }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
2573 name: z.ZodString;
2574 version: z.ZodString;
2575 description: z.ZodOptional<z.ZodString>;
2576 keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2577 homepage: z.ZodOptional<z.ZodString>;
2578 bugs: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2579 url: z.ZodOptional<z.ZodString>;
2580 email: z.ZodOptional<z.ZodString>;
2581 }, "strip", z.ZodTypeAny, {
2582 url?: string | undefined;
2583 email?: string | undefined;
2584 }, {
2585 url?: string | undefined;
2586 email?: string | undefined;
2587 }>]>>;
2588 license: z.ZodOptional<z.ZodString>;
2589 author: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2590 name: z.ZodString;
2591 email: z.ZodOptional<z.ZodString>;
2592 url: z.ZodOptional<z.ZodString>;
2593 }, "strip", z.ZodTypeAny, {
2594 name: string;
2595 url?: string | undefined;
2596 email?: string | undefined;
2597 }, {
2598 name: string;
2599 url?: string | undefined;
2600 email?: string | undefined;
2601 }>]>>;
2602 contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
2603 name: z.ZodString;
2604 email: z.ZodOptional<z.ZodString>;
2605 url: z.ZodOptional<z.ZodString>;
2606 }, "strip", z.ZodTypeAny, {
2607 name: string;
2608 url?: string | undefined;
2609 email?: string | undefined;
2610 }, {
2611 name: string;
2612 url?: string | undefined;
2613 email?: string | undefined;
2614 }>]>, "many">>;
2615 maintainers: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
2616 name: z.ZodString;
2617 email: z.ZodOptional<z.ZodString>;
2618 url: z.ZodOptional<z.ZodString>;
2619 }, "strip", z.ZodTypeAny, {
2620 name: string;
2621 url?: string | undefined;
2622 email?: string | undefined;
2623 }, {
2624 name: string;
2625 url?: string | undefined;
2626 email?: string | undefined;
2627 }>]>, "many">>;
2628 funding: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2629 url: z.ZodString;
2630 type: z.ZodOptional<z.ZodString>;
2631 }, "strip", z.ZodTypeAny, {
2632 url: string;
2633 type?: string | undefined;
2634 }, {
2635 url: string;
2636 type?: string | undefined;
2637 }>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
2638 url: z.ZodString;
2639 type: z.ZodOptional<z.ZodString>;
2640 }, "strip", z.ZodTypeAny, {
2641 url: string;
2642 type?: string | undefined;
2643 }, {
2644 url: string;
2645 type?: string | undefined;
2646 }>]>, "many">]>>;
2647 files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2648 main: z.ZodOptional<z.ZodString>;
2649 browser: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>]>>;
2650 bin: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
2651 man: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2652 directories: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2653 repository: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2654 type: z.ZodString;
2655 url: z.ZodString;
2656 directory: z.ZodOptional<z.ZodString>;
2657 }, "strip", z.ZodTypeAny, {
2658 type: string;
2659 url: string;
2660 directory?: string | undefined;
2661 }, {
2662 type: string;
2663 url: string;
2664 directory?: string | undefined;
2665 }>]>>;
2666 scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2667 config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2668 dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2669 devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2670 peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2671 peerDependenciesMeta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2672 optional: z.ZodBoolean;
2673 }, "strip", z.ZodTypeAny, {
2674 optional: boolean;
2675 }, {
2676 optional: boolean;
2677 }>>>;
2678 bundleDependencies: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
2679 bundledDependencies: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
2680 optionalDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2681 overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2682 engines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2683 os: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2684 cpu: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2685 private: z.ZodOptional<z.ZodBoolean>;
2686 publishConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2687 workspaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2688 deprecated: z.ZodOptional<z.ZodString>;
2689 module: z.ZodOptional<z.ZodString>;
2690 type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"module">, z.ZodLiteral<"commonjs">]>>;
2691 types: z.ZodOptional<z.ZodString>;
2692 typings: z.ZodOptional<z.ZodString>;
2693 typesVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
2694 packageManager: z.ZodOptional<z.ZodString>;
2695 sideEffects: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
2696 imports: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2697 exports: z.ZodOptional<z.ZodUnion<[z.ZodNull, z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
2698 }, {
2699 _id: z.ZodString;
2700 dist: z.ZodObject<{
2701 tarball: z.ZodString;
2702 shasum: z.ZodString;
2703 integrity: z.ZodOptional<z.ZodString>;
2704 fileCount: z.ZodOptional<z.ZodNumber>;
2705 unpackedSize: z.ZodOptional<z.ZodNumber>;
2706 "npm-signature": z.ZodOptional<z.ZodString>;
2707 signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
2708 keyid: z.ZodString;
2709 sig: z.ZodString;
2710 }, "strip", z.ZodTypeAny, {
2711 keyid: string;
2712 sig: string;
2713 }, {
2714 keyid: string;
2715 sig: string;
2716 }>, "many">>;
2717 }, "strip", z.ZodTypeAny, {
2718 tarball: string;
2719 shasum: string;
2720 integrity?: string | undefined;
2721 fileCount?: number | undefined;
2722 unpackedSize?: number | undefined;
2723 "npm-signature"?: string | undefined;
2724 signatures?: {
2725 keyid: string;
2726 sig: string;
2727 }[] | undefined;
2728 }, {
2729 tarball: string;
2730 shasum: string;
2731 integrity?: string | undefined;
2732 fileCount?: number | undefined;
2733 unpackedSize?: number | undefined;
2734 "npm-signature"?: string | undefined;
2735 signatures?: {
2736 keyid: string;
2737 sig: string;
2738 }[] | undefined;
2739 }>;
2740 readme: z.ZodOptional<z.ZodString>;
2741 readmeFilename: z.ZodOptional<z.ZodString>;
2742 gitHead: z.ZodOptional<z.ZodString>;
2743 _hasShrinkwrap: z.ZodOptional<z.ZodBoolean>;
2744 _nodeVersion: z.ZodOptional<z.ZodString>;
2745 _npmVersion: z.ZodOptional<z.ZodString>;
2746 _npmUser: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2747 name: z.ZodString;
2748 email: z.ZodOptional<z.ZodString>;
2749 url: z.ZodOptional<z.ZodString>;
2750 }, "strip", z.ZodTypeAny, {
2751 name: string;
2752 url?: string | undefined;
2753 email?: string | undefined;
2754 }, {
2755 name: string;
2756 url?: string | undefined;
2757 email?: string | undefined;
2758 }>]>>>;
2759 _npmOperationalInternal: z.ZodOptional<z.ZodObject<{
2760 host: z.ZodOptional<z.ZodString>;
2761 tmp: z.ZodOptional<z.ZodString>;
2762 }, "strip", z.ZodTypeAny, {
2763 host?: string | undefined;
2764 tmp?: string | undefined;
2765 }, {
2766 host?: string | undefined;
2767 tmp?: string | undefined;
2768 }>>;
2769 engines: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
2770 license: z.ZodCatch<z.ZodOptional<z.ZodString>>;
2771 homepage: z.ZodCatch<z.ZodOptional<z.ZodString>>;
2772 deprecated: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
2773 }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
2774 name: z.ZodString;
2775 version: z.ZodString;
2776 description: z.ZodOptional<z.ZodString>;
2777 keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2778 homepage: z.ZodOptional<z.ZodString>;
2779 bugs: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2780 url: z.ZodOptional<z.ZodString>;
2781 email: z.ZodOptional<z.ZodString>;
2782 }, "strip", z.ZodTypeAny, {
2783 url?: string | undefined;
2784 email?: string | undefined;
2785 }, {
2786 url?: string | undefined;
2787 email?: string | undefined;
2788 }>]>>;
2789 license: z.ZodOptional<z.ZodString>;
2790 author: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2791 name: z.ZodString;
2792 email: z.ZodOptional<z.ZodString>;
2793 url: z.ZodOptional<z.ZodString>;
2794 }, "strip", z.ZodTypeAny, {
2795 name: string;
2796 url?: string | undefined;
2797 email?: string | undefined;
2798 }, {
2799 name: string;
2800 url?: string | undefined;
2801 email?: string | undefined;
2802 }>]>>;
2803 contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
2804 name: z.ZodString;
2805 email: z.ZodOptional<z.ZodString>;
2806 url: z.ZodOptional<z.ZodString>;
2807 }, "strip", z.ZodTypeAny, {
2808 name: string;
2809 url?: string | undefined;
2810 email?: string | undefined;
2811 }, {
2812 name: string;
2813 url?: string | undefined;
2814 email?: string | undefined;
2815 }>]>, "many">>;
2816 maintainers: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
2817 name: z.ZodString;
2818 email: z.ZodOptional<z.ZodString>;
2819 url: z.ZodOptional<z.ZodString>;
2820 }, "strip", z.ZodTypeAny, {
2821 name: string;
2822 url?: string | undefined;
2823 email?: string | undefined;
2824 }, {
2825 name: string;
2826 url?: string | undefined;
2827 email?: string | undefined;
2828 }>]>, "many">>;
2829 funding: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2830 url: z.ZodString;
2831 type: z.ZodOptional<z.ZodString>;
2832 }, "strip", z.ZodTypeAny, {
2833 url: string;
2834 type?: string | undefined;
2835 }, {
2836 url: string;
2837 type?: string | undefined;
2838 }>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
2839 url: z.ZodString;
2840 type: z.ZodOptional<z.ZodString>;
2841 }, "strip", z.ZodTypeAny, {
2842 url: string;
2843 type?: string | undefined;
2844 }, {
2845 url: string;
2846 type?: string | undefined;
2847 }>]>, "many">]>>;
2848 files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2849 main: z.ZodOptional<z.ZodString>;
2850 browser: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>]>>;
2851 bin: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
2852 man: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2853 directories: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2854 repository: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2855 type: z.ZodString;
2856 url: z.ZodString;
2857 directory: z.ZodOptional<z.ZodString>;
2858 }, "strip", z.ZodTypeAny, {
2859 type: string;
2860 url: string;
2861 directory?: string | undefined;
2862 }, {
2863 type: string;
2864 url: string;
2865 directory?: string | undefined;
2866 }>]>>;
2867 scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2868 config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2869 dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2870 devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2871 peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2872 peerDependenciesMeta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2873 optional: z.ZodBoolean;
2874 }, "strip", z.ZodTypeAny, {
2875 optional: boolean;
2876 }, {
2877 optional: boolean;
2878 }>>>;
2879 bundleDependencies: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
2880 bundledDependencies: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
2881 optionalDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2882 overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2883 engines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2884 os: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2885 cpu: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2886 private: z.ZodOptional<z.ZodBoolean>;
2887 publishConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2888 workspaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2889 deprecated: z.ZodOptional<z.ZodString>;
2890 module: z.ZodOptional<z.ZodString>;
2891 type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"module">, z.ZodLiteral<"commonjs">]>>;
2892 types: z.ZodOptional<z.ZodString>;
2893 typings: z.ZodOptional<z.ZodString>;
2894 typesVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
2895 packageManager: z.ZodOptional<z.ZodString>;
2896 sideEffects: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
2897 imports: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2898 exports: z.ZodOptional<z.ZodUnion<[z.ZodNull, z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
2899 }, {
2900 _id: z.ZodString;
2901 dist: z.ZodObject<{
2902 tarball: z.ZodString;
2903 shasum: z.ZodString;
2904 integrity: z.ZodOptional<z.ZodString>;
2905 fileCount: z.ZodOptional<z.ZodNumber>;
2906 unpackedSize: z.ZodOptional<z.ZodNumber>;
2907 "npm-signature": z.ZodOptional<z.ZodString>;
2908 signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
2909 keyid: z.ZodString;
2910 sig: z.ZodString;
2911 }, "strip", z.ZodTypeAny, {
2912 keyid: string;
2913 sig: string;
2914 }, {
2915 keyid: string;
2916 sig: string;
2917 }>, "many">>;
2918 }, "strip", z.ZodTypeAny, {
2919 tarball: string;
2920 shasum: string;
2921 integrity?: string | undefined;
2922 fileCount?: number | undefined;
2923 unpackedSize?: number | undefined;
2924 "npm-signature"?: string | undefined;
2925 signatures?: {
2926 keyid: string;
2927 sig: string;
2928 }[] | undefined;
2929 }, {
2930 tarball: string;
2931 shasum: string;
2932 integrity?: string | undefined;
2933 fileCount?: number | undefined;
2934 unpackedSize?: number | undefined;
2935 "npm-signature"?: string | undefined;
2936 signatures?: {
2937 keyid: string;
2938 sig: string;
2939 }[] | undefined;
2940 }>;
2941 readme: z.ZodOptional<z.ZodString>;
2942 readmeFilename: z.ZodOptional<z.ZodString>;
2943 gitHead: z.ZodOptional<z.ZodString>;
2944 _hasShrinkwrap: z.ZodOptional<z.ZodBoolean>;
2945 _nodeVersion: z.ZodOptional<z.ZodString>;
2946 _npmVersion: z.ZodOptional<z.ZodString>;
2947 _npmUser: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2948 name: z.ZodString;
2949 email: z.ZodOptional<z.ZodString>;
2950 url: z.ZodOptional<z.ZodString>;
2951 }, "strip", z.ZodTypeAny, {
2952 name: string;
2953 url?: string | undefined;
2954 email?: string | undefined;
2955 }, {
2956 name: string;
2957 url?: string | undefined;
2958 email?: string | undefined;
2959 }>]>>>;
2960 _npmOperationalInternal: z.ZodOptional<z.ZodObject<{
2961 host: z.ZodOptional<z.ZodString>;
2962 tmp: z.ZodOptional<z.ZodString>;
2963 }, "strip", z.ZodTypeAny, {
2964 host?: string | undefined;
2965 tmp?: string | undefined;
2966 }, {
2967 host?: string | undefined;
2968 tmp?: string | undefined;
2969 }>>;
2970 engines: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
2971 license: z.ZodCatch<z.ZodOptional<z.ZodString>>;
2972 homepage: z.ZodCatch<z.ZodOptional<z.ZodString>>;
2973 deprecated: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
2974 }>, z.ZodTypeAny, "passthrough">>>;
2975 /** Revision ID of the document in CouchDB. */
2976 _rev: z.ZodOptional<z.ZodString>;
2977 /** Mapping of npm usernames of users who starred the package to `true`. */
2978 users: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
2979 /** Text extracted from the README file. */
2980 readme: z.ZodOptional<z.ZodString>;
2981 /** Name of the README file. */
2982 readmeFilename: z.ZodOptional<z.ZodString>;
2983}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<Pick<{
2984 name: z.ZodString;
2985 version: z.ZodString;
2986 description: z.ZodOptional<z.ZodString>;
2987 keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2988 homepage: z.ZodOptional<z.ZodString>;
2989 bugs: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
2990 url: z.ZodOptional<z.ZodString>;
2991 email: z.ZodOptional<z.ZodString>;
2992 }, "strip", z.ZodTypeAny, {
2993 url?: string | undefined;
2994 email?: string | undefined;
2995 }, {
2996 url?: string | undefined;
2997 email?: string | undefined;
2998 }>]>>;
2999 license: z.ZodOptional<z.ZodString>;
3000 author: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
3001 name: z.ZodString;
3002 email: z.ZodOptional<z.ZodString>;
3003 url: z.ZodOptional<z.ZodString>;
3004 }, "strip", z.ZodTypeAny, {
3005 name: string;
3006 url?: string | undefined;
3007 email?: string | undefined;
3008 }, {
3009 name: string;
3010 url?: string | undefined;
3011 email?: string | undefined;
3012 }>]>>;
3013 contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
3014 name: z.ZodString;
3015 email: z.ZodOptional<z.ZodString>;
3016 url: z.ZodOptional<z.ZodString>;
3017 }, "strip", z.ZodTypeAny, {
3018 name: string;
3019 url?: string | undefined;
3020 email?: string | undefined;
3021 }, {
3022 name: string;
3023 url?: string | undefined;
3024 email?: string | undefined;
3025 }>]>, "many">>;
3026 maintainers: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
3027 name: z.ZodString;
3028 email: z.ZodOptional<z.ZodString>;
3029 url: z.ZodOptional<z.ZodString>;
3030 }, "strip", z.ZodTypeAny, {
3031 name: string;
3032 url?: string | undefined;
3033 email?: string | undefined;
3034 }, {
3035 name: string;
3036 url?: string | undefined;
3037 email?: string | undefined;
3038 }>]>, "many">>;
3039 funding: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
3040 url: z.ZodString;
3041 type: z.ZodOptional<z.ZodString>;
3042 }, "strip", z.ZodTypeAny, {
3043 url: string;
3044 type?: string | undefined;
3045 }, {
3046 url: string;
3047 type?: string | undefined;
3048 }>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
3049 url: z.ZodString;
3050 type: z.ZodOptional<z.ZodString>;
3051 }, "strip", z.ZodTypeAny, {
3052 url: