storybook 10.1.0-alpha.8 → 10.1.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/dist/_browser-chunks/Color-FTG7SQDA.js +1097 -0
  2. package/dist/_browser-chunks/WithTooltip-LMROHDUP.js +1651 -0
  3. package/dist/_browser-chunks/chunk-2FRVAXCZ.js +7 -0
  4. package/dist/_browser-chunks/{chunk-FDWKXLBI.js → chunk-2XZMBGTA.js} +44 -109
  5. package/dist/_browser-chunks/chunk-3IAH5M2U.js +171 -0
  6. package/dist/_browser-chunks/chunk-3OXGAGBE.js +779 -0
  7. package/dist/_browser-chunks/{chunk-TMDZCWME.js → chunk-3PJE6VLG.js} +1 -3
  8. package/dist/_browser-chunks/{chunk-VAMFPZY3.js → chunk-45UGUKRX.js} +2 -7
  9. package/dist/_browser-chunks/chunk-6XWLIJQL.js +11 -0
  10. package/dist/_browser-chunks/{chunk-MM7DTO55.js → chunk-A242L54C.js} +10 -16
  11. package/dist/_browser-chunks/chunk-AIOS4NGK.js +252 -0
  12. package/dist/_browser-chunks/chunk-AS2HQEYC.js +14 -0
  13. package/dist/_browser-chunks/chunk-AXG2BOBL.js +836 -0
  14. package/dist/_browser-chunks/{chunk-MH6AXFXB.js → chunk-CHUV5WSW.js} +0 -5
  15. package/dist/_browser-chunks/chunk-EUVGDK4H.js +93 -0
  16. package/dist/_browser-chunks/chunk-EZSQOHRI.js +18 -0
  17. package/dist/_browser-chunks/{chunk-CADGRH3P.js → chunk-FNXWN6IK.js} +3 -8
  18. package/dist/_browser-chunks/chunk-FQ7SLVLR.js +66 -0
  19. package/dist/_browser-chunks/chunk-GFLS4VP3.js +64 -0
  20. package/dist/_browser-chunks/chunk-GFY5R5EY.js +47 -0
  21. package/dist/_browser-chunks/{chunk-L2D73C6Z.js → chunk-H6XK3RSC.js} +13 -21
  22. package/dist/_browser-chunks/chunk-IPA5A322.js +71 -0
  23. package/dist/_browser-chunks/chunk-JP7NCOJX.js +37 -0
  24. package/dist/_browser-chunks/chunk-KJHJLCBK.js +11 -0
  25. package/dist/_browser-chunks/{chunk-OWPZQM2D.js → chunk-L4RMQ7D7.js} +60 -110
  26. package/dist/_browser-chunks/chunk-P4F4UVXX.js +951 -0
  27. package/dist/_browser-chunks/{chunk-AB7OOPUX.js → chunk-QKODTO7K.js} +0 -5
  28. package/dist/_browser-chunks/chunk-RP5RXKFU.js +2491 -0
  29. package/dist/_browser-chunks/chunk-SL75JR6Y.js +9 -0
  30. package/dist/_browser-chunks/chunk-SS2NHR7W.js +2969 -0
  31. package/dist/_browser-chunks/chunk-UD6FQLAF.js +1481 -0
  32. package/dist/_browser-chunks/chunk-VYJQ7RU5.js +2853 -0
  33. package/dist/_browser-chunks/chunk-WJYERY3R.js +136 -0
  34. package/dist/_browser-chunks/chunk-XJNX76GA.js +85 -0
  35. package/dist/_browser-chunks/{chunk-F4Q6SGTB.js → chunk-YKE5S47A.js} +177 -399
  36. package/dist/_browser-chunks/{chunk-SN4J4IQ3.js → chunk-ZUWEVLDX.js} +1 -7
  37. package/dist/_browser-chunks/{formatter-OMEEQ6HG.js → formatter-QJ4M4OGQ.js} +4 -9
  38. package/dist/_browser-chunks/{syntaxhighlighter-CAVLW7PM.js → syntaxhighlighter-IQDEPFLK.js} +704 -1848
  39. package/dist/_node-chunks/{builder-manager-57OYTFQ5.js → builder-manager-BDAQHXFI.js} +510 -1019
  40. package/dist/_node-chunks/camelcase-3C7DZZPX.js +37 -0
  41. package/dist/_node-chunks/chunk-2IIQTGNE.js +6024 -0
  42. package/dist/_node-chunks/chunk-56U5LEMP.js +3043 -0
  43. package/dist/_node-chunks/chunk-7LIRCAQE.js +20 -0
  44. package/dist/_node-chunks/chunk-7RN6TXKP.js +603 -0
  45. package/dist/_node-chunks/chunk-7SJ7PZNL.js +4523 -0
  46. package/dist/_node-chunks/{chunk-2GK7NW46.js → chunk-BG4RDXG7.js} +8 -10
  47. package/dist/_node-chunks/chunk-CBQKMXLQ.js +18 -0
  48. package/dist/_node-chunks/chunk-CN2IW2KQ.js +1564 -0
  49. package/dist/_node-chunks/chunk-CQMAU6UQ.js +943 -0
  50. package/dist/_node-chunks/{chunk-RG4Z25PY.js → chunk-D6ND3TVY.js} +116 -276
  51. package/dist/_node-chunks/chunk-DC355CYB.js +61 -0
  52. package/dist/_node-chunks/{chunk-EBYCXVVR.js → chunk-EVK2SBW5.js} +292 -688
  53. package/dist/_node-chunks/chunk-IXWEUXJ2.js +119 -0
  54. package/dist/_node-chunks/{chunk-6F6CCOXH.js → chunk-KVRF22SH.js} +469 -983
  55. package/dist/_node-chunks/chunk-LEDP4QQW.js +919 -0
  56. package/dist/_node-chunks/{chunk-C4KEDJ6O.js → chunk-MMVV6DGG.js} +8133 -8887
  57. package/dist/_node-chunks/chunk-O5CGEVRI.js +29 -0
  58. package/dist/_node-chunks/chunk-OZZO56XN.js +299 -0
  59. package/dist/_node-chunks/chunk-POT2EVGD.js +78 -0
  60. package/dist/_node-chunks/chunk-R5YGFSTV.js +3781 -0
  61. package/dist/_node-chunks/chunk-SQCTM2OS.js +23 -0
  62. package/dist/_node-chunks/chunk-UFOFO5H7.js +54 -0
  63. package/dist/_node-chunks/chunk-VBF7ALJF.js +72 -0
  64. package/dist/_node-chunks/chunk-W6MAMTUF.js +70 -0
  65. package/dist/_node-chunks/chunk-WURL4XOT.js +46662 -0
  66. package/dist/_node-chunks/chunk-XGK6MVKR.js +61 -0
  67. package/dist/_node-chunks/chunk-YV3GDSDT.js +765 -0
  68. package/dist/_node-chunks/{chunk-RSHLCHYY.js → chunk-YWV55YW3.js} +15 -24
  69. package/dist/_node-chunks/dist-KEP4IFRN.js +121 -0
  70. package/dist/_node-chunks/globby-4WUBTDCN.js +3452 -0
  71. package/dist/_node-chunks/lib-JVOEKTYM.js +366 -0
  72. package/dist/_node-chunks/mdx-N42X6CFJ-C5WFYYXR.js +14329 -0
  73. package/dist/_node-chunks/p-limit-LDY632RS.js +116 -0
  74. package/dist/actions/decorator.js +21 -42
  75. package/dist/actions/index.js +3 -3
  76. package/dist/babel/index.d.ts +671 -335
  77. package/dist/babel/index.js +10 -11
  78. package/dist/bin/core.js +601 -1548
  79. package/dist/bin/dispatcher.js +36 -36
  80. package/dist/bin/loader.js +24 -38
  81. package/dist/channels/index.js +98 -234
  82. package/dist/cli/index.d.ts +1479 -133
  83. package/dist/cli/index.js +30 -8540
  84. package/dist/client-logger/index.js +31 -61
  85. package/dist/common/index.d.ts +139 -62
  86. package/dist/common/index.js +66 -51
  87. package/dist/components/index.d.ts +575 -273
  88. package/dist/components/index.js +14863 -4313
  89. package/dist/core-events/index.js +2 -66
  90. package/dist/core-server/index.d.ts +3 -2
  91. package/dist/core-server/index.js +2910 -8519
  92. package/dist/core-server/presets/common-manager.css +2 -2
  93. package/dist/core-server/presets/common-manager.js +2521 -5233
  94. package/dist/core-server/presets/common-override-preset.js +31 -60
  95. package/dist/core-server/presets/common-preset.js +663 -962
  96. package/dist/csf/index.js +534 -1179
  97. package/dist/csf-tools/index.js +9 -9
  98. package/dist/docs-tools/index.js +6 -6
  99. package/dist/highlight/index.js +2 -2
  100. package/dist/instrumenter/index.js +199 -415
  101. package/dist/manager/globals-runtime.js +59044 -67141
  102. package/dist/manager/globals.js +2 -3
  103. package/dist/manager/manager-stores.d.ts +1 -0
  104. package/dist/manager/manager-stores.js +23 -0
  105. package/dist/manager/runtime.js +11511 -10953
  106. package/dist/manager-api/index.d.ts +1811 -2
  107. package/dist/manager-api/index.js +1348 -2401
  108. package/dist/manager-errors.d.ts +9 -0
  109. package/dist/manager-errors.js +3 -3
  110. package/dist/mocking-utils/index.d.ts +1126 -0
  111. package/dist/mocking-utils/index.js +1181 -0
  112. package/dist/node-logger/index.d.ts +192 -24
  113. package/dist/node-logger/index.js +23 -4471
  114. package/dist/preview/globals.js +2 -3
  115. package/dist/preview/runtime.js +10799 -22393
  116. package/dist/preview-api/index.d.ts +1 -1
  117. package/dist/preview-api/index.js +13 -13
  118. package/dist/preview-errors.d.ts +9 -0
  119. package/dist/preview-errors.js +4 -4
  120. package/dist/router/index.js +347 -899
  121. package/dist/server-errors.d.ts +34 -1
  122. package/dist/server-errors.js +17 -10
  123. package/dist/telemetry/index.d.ts +24 -3
  124. package/dist/telemetry/index.js +25 -24
  125. package/dist/test/index.js +6131 -11916
  126. package/dist/theming/create.d.ts +1 -0
  127. package/dist/theming/create.js +4 -4
  128. package/dist/theming/index.d.ts +3366 -2599
  129. package/dist/theming/index.js +501 -1091
  130. package/dist/types/index.d.ts +72 -8
  131. package/dist/types/index.js +27 -12
  132. package/dist/viewport/index.js +3 -3
  133. package/package.json +26 -17
  134. package/dist/_browser-chunks/Color-7ZNS6F6B.js +0 -1676
  135. package/dist/_browser-chunks/WithTooltip-SK46ZJ2J.js +0 -13
  136. package/dist/_browser-chunks/chunk-6A7OIVEL.js +0 -66
  137. package/dist/_browser-chunks/chunk-B4A3ADP3.js +0 -3816
  138. package/dist/_browser-chunks/chunk-BOOOPFZF.js +0 -2335
  139. package/dist/_browser-chunks/chunk-FSBVR7H5.js +0 -106
  140. package/dist/_browser-chunks/chunk-FUOHXXZT.js +0 -23
  141. package/dist/_browser-chunks/chunk-GTKOCWCT.js +0 -17
  142. package/dist/_browser-chunks/chunk-HHW4FUMO.js +0 -12
  143. package/dist/_browser-chunks/chunk-JVSKG4YS.js +0 -4052
  144. package/dist/_browser-chunks/chunk-LASUB7TL.js +0 -76
  145. package/dist/_browser-chunks/chunk-LYCSRYYR.js +0 -101
  146. package/dist/_browser-chunks/chunk-NVV6MIOE.js +0 -243
  147. package/dist/_browser-chunks/chunk-OBXWFEPB.js +0 -852
  148. package/dist/_browser-chunks/chunk-OPCDBBL3.js +0 -48
  149. package/dist/_browser-chunks/chunk-PB6FZ3WE.js +0 -130
  150. package/dist/_browser-chunks/chunk-RNE2IUTB.js +0 -1300
  151. package/dist/_browser-chunks/chunk-RW5PKMWM.js +0 -4182
  152. package/dist/_browser-chunks/chunk-SYS437NN.js +0 -122
  153. package/dist/_browser-chunks/chunk-U46RQHA4.js +0 -12
  154. package/dist/_browser-chunks/chunk-UTNZYD2N.js +0 -311
  155. package/dist/_browser-chunks/chunk-VUAFL5XK.js +0 -20
  156. package/dist/_browser-chunks/chunk-XDGMHOV7.js +0 -2197
  157. package/dist/_browser-chunks/chunk-XW6KSYKF.js +0 -16
  158. package/dist/_browser-chunks/chunk-Y3M7TW6K.js +0 -1041
  159. package/dist/_browser-chunks/chunk-ZNRFDIVA.js +0 -233
  160. package/dist/_node-chunks/camelcase-2KEDZHZ2.js +0 -18
  161. package/dist/_node-chunks/chunk-34NNXTBR.js +0 -28
  162. package/dist/_node-chunks/chunk-3N2A3KZX.js +0 -420
  163. package/dist/_node-chunks/chunk-5P7P5KDN.js +0 -90
  164. package/dist/_node-chunks/chunk-5WBRBDXI.js +0 -79
  165. package/dist/_node-chunks/chunk-7PWTU7T2.js +0 -697
  166. package/dist/_node-chunks/chunk-CHRHQ7AZ.js +0 -4272
  167. package/dist/_node-chunks/chunk-D4EGQLJI.js +0 -64656
  168. package/dist/_node-chunks/chunk-EKCURTKU.js +0 -1544
  169. package/dist/_node-chunks/chunk-GBVPPW4H.js +0 -1657
  170. package/dist/_node-chunks/chunk-J6VOKT2F.js +0 -220
  171. package/dist/_node-chunks/chunk-JLBYSGXS.js +0 -69
  172. package/dist/_node-chunks/chunk-LLCELSUL.js +0 -1198
  173. package/dist/_node-chunks/chunk-NS4OCQ4F.js +0 -61
  174. package/dist/_node-chunks/chunk-NXVLFYDR.js +0 -1518
  175. package/dist/_node-chunks/chunk-NZPWAJOZ.js +0 -304
  176. package/dist/_node-chunks/chunk-OYFSIV3I.js +0 -6712
  177. package/dist/_node-chunks/chunk-OZ43LMDF.js +0 -5029
  178. package/dist/_node-chunks/chunk-Q5HJHFF2.js +0 -61
  179. package/dist/_node-chunks/chunk-QHER4CEN.js +0 -34
  180. package/dist/_node-chunks/chunk-RF2PJM54.js +0 -1531
  181. package/dist/_node-chunks/chunk-S3OHGEE3.js +0 -101
  182. package/dist/_node-chunks/chunk-S5XOMVSV.js +0 -2256
  183. package/dist/_node-chunks/chunk-SGXQZ47H.js +0 -1586
  184. package/dist/_node-chunks/chunk-TDU6OVUH.js +0 -111
  185. package/dist/_node-chunks/chunk-TYQQFNQX.js +0 -1250
  186. package/dist/_node-chunks/chunk-WNGLARN2.js +0 -4741
  187. package/dist/_node-chunks/chunk-YUOVDCXL.js +0 -18
  188. package/dist/_node-chunks/dist-O5FB7YUW.js +0 -175
  189. package/dist/_node-chunks/globby-3NMV7WHX.js +0 -5222
  190. package/dist/_node-chunks/lib-VZD7BRSA.js +0 -518
  191. package/dist/_node-chunks/mdx-N42X6CFJ-3RP7RKKU.js +0 -22017
  192. package/dist/_node-chunks/p-limit-LIKBTXEJ.js +0 -168
  193. package/dist/_node-chunks/plugin-2NYZBK4A.js +0 -129
  194. package/dist/_node-chunks/plugin-6QGMO7J7.js +0 -159
  195. package/dist/_node-chunks/webpack-inject-mocker-runtime-plugin-Z2JI6J2H.js +0 -69102
  196. package/dist/_node-chunks/webpack-mock-plugin-D4BE2SSI.js +0 -124
  197. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +0 -36
  198. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +0 -33
@@ -391,7 +391,6 @@ interface SubState$5 {
391
391
  settings: API_Settings;
392
392
  }
393
393
 
394
- declare const isMacLike: () => boolean;
395
394
  declare const controlOrMetaSymbol: () => "⌘" | "ctrl";
396
395
  declare const controlOrMetaKey: () => "meta" | "control";
397
396
  declare const optionOrAltSymbol: () => "⌥" | "alt";
@@ -400,8 +399,15 @@ type KeyboardEventLike = Pick<KeyboardEvent, 'altKey' | 'ctrlKey' | 'metaKey' |
400
399
  declare const eventToShortcut: (e: KeyboardEventLike) => (string | string[])[] | null;
401
400
  declare const shortcutMatchesShortcut: (inputShortcut: (string | string[])[], shortcut: API_KeyCollection) => boolean;
402
401
  declare const eventMatchesShortcut: (e: KeyboardEventLike, shortcut: API_KeyCollection) => boolean;
402
+ /**
403
+ * Returns a human-readable symbol for a keyboard key.
404
+ *
405
+ * @param key The key to convert to a symbol.
406
+ * @returns A string that a human could understand as that keyboard key.
407
+ */
403
408
  declare const keyToSymbol: (key: string) => string;
404
409
  declare const shortcutToHumanString: (shortcut: API_KeyCollection) => string;
410
+ declare const shortcutToAriaKeyshortcuts: (shortcut: API_KeyCollection) => string;
405
411
 
406
412
  interface SubState$4 {
407
413
  shortcuts: API_Shortcuts;
@@ -556,6 +562,13 @@ interface SubAPI$3 {
556
562
  * @returns {API_LeafEntry} The current story's data.
557
563
  */
558
564
  getCurrentStoryData: () => API_LeafEntry;
565
+ /**
566
+ * Returns the current story index.
567
+ *
568
+ * @returns {API_PreparedStoryIndex | undefined} The current story index, or undefined if not yet
569
+ * loaded.
570
+ */
571
+ getIndex: () => API_PreparedStoryIndex | undefined;
559
572
  /**
560
573
  * Sets the prepared story index to the given value.
561
574
  *
@@ -798,9 +811,15 @@ interface SubAPI$1 {
798
811
  /**
799
812
  * Returns the URL of the Storybook documentation for the current version.
800
813
  *
814
+ * @param options - The options for the documentation URL.
815
+ * @param options.asset - Links to the docs-assets directory instead of docs.
816
+ * @param options.subpath - The subpath of the documentation URL.
817
+ * @param options.versioned - Whether to include the versioned path.
818
+ * @param options.renderer - Whether to include the renderer path.
801
819
  * @returns {string} The URL of the Storybook Manager documentation.
802
820
  */
803
821
  getDocsUrl: (options: {
822
+ asset?: boolean;
804
823
  subpath?: string;
805
824
  versioned?: boolean;
806
825
  renderer?: boolean;
@@ -828,6 +847,8 @@ declare class RequestResponseError<Payload extends Record<string, any> | void> e
828
847
  }
829
848
  declare const experimental_requestResponse: <RequestPayload, ResponsePayload = void, CreateNewStoryErrorPayload extends Record<string, any> | void = void>(channel: Channel, requestEvent: string, responseEvent: string, payload: RequestPayload, timeout?: number) => Promise<ResponsePayload>;
830
849
 
850
+ declare const isMacLike: () => boolean;
851
+
831
852
  declare const _default: <TObj = any>(a: TObj, ...b: Partial<TObj>[]) => TObj;
832
853
 
833
854
  declare const ActiveTabs: {
@@ -2026,4 +2047,1792 @@ declare const getTestProviderStoreById: (testProviderId: TestProviderId) => Test
2026
2047
  declare const useTestProviderStore: UseTestProviderStore;
2027
2048
  declare const universalTestProviderStore: UniversalStore<TestProviderStateByProviderId, TestProviderStoreEvent>;
2028
2049
 
2029
- export { type API, type API_EventMap, ActiveTabs, AddonStore, type Combo, ManagerConsumer as Consumer, type KeyboardEventLike, ManagerContext, type ManagerProviderProps, ManagerProvider as Provider, RequestResponseError, type State, type Options as StoreOptions, addons, combineParameters, controlOrMetaKey, controlOrMetaSymbol, eventMatchesShortcut, eventToShortcut, MockUniversalStore as experimental_MockUniversalStore, UniversalStore as experimental_UniversalStore, getStatusStoreByTypeId as experimental_getStatusStore, getTestProviderStoreById as experimental_getTestProviderStore, experimental_requestResponse, useStatusStore as experimental_useStatusStore, useTestProviderStore as experimental_useTestProviderStore, useUniversalStore as experimental_useUniversalStore, fullStatusStore as internal_fullStatusStore, fullTestProviderStore as internal_fullTestProviderStore, universalStatusStore as internal_universalStatusStore, universalTestProviderStore as internal_universalTestProviderStore, isMacLike, isShortcutTaken, keyToSymbol, _default as merge, mockChannel, optionOrAltSymbol, shortcutMatchesShortcut, shortcutToHumanString, typesX as types, useAddonState, useArgTypes, useArgs, useChannel, useGlobalTypes, useGlobals, useParameter, useSharedState, useStoryPrepared, useStorybookApi, useStorybookState };
2050
+ type Primitive = string | number | symbol | bigint | boolean | null | undefined;
2051
+
2052
+ declare namespace util {
2053
+ type AssertEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends <V>() => V extends U ? 1 : 2 ? true : false;
2054
+ export type isAny<T> = 0 extends 1 & T ? true : false;
2055
+ export const assertEqual: <A, B>(_: AssertEqual<A, B>) => void;
2056
+ export function assertIs<T>(_arg: T): void;
2057
+ export function assertNever(_x: never): never;
2058
+ export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
2059
+ export type OmitKeys<T, K extends string> = Pick<T, Exclude<keyof T, K>>;
2060
+ export type MakePartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
2061
+ export type Exactly<T, X> = T & Record<Exclude<keyof X, keyof T>, never>;
2062
+ export type InexactPartial<T> = {
2063
+ [k in keyof T]?: T[k] | undefined;
2064
+ };
2065
+ export const arrayToEnum: <T extends string, U extends [T, ...T[]]>(items: U) => { [k in U[number]]: k; };
2066
+ export const getValidEnumValues: (obj: any) => any[];
2067
+ export const objectValues: (obj: any) => any[];
2068
+ export const objectKeys: ObjectConstructor["keys"];
2069
+ export const find: <T>(arr: T[], checker: (arg: T) => any) => T | undefined;
2070
+ export type identity<T> = objectUtil.identity<T>;
2071
+ export type flatten<T> = objectUtil.flatten<T>;
2072
+ export type noUndefined<T> = T extends undefined ? never : T;
2073
+ export const isInteger: NumberConstructor["isInteger"];
2074
+ export function joinValues<T extends any[]>(array: T, separator?: string): string;
2075
+ export const jsonStringifyReplacer: (_: string, value: any) => any;
2076
+ export { };
2077
+ }
2078
+ declare namespace objectUtil {
2079
+ export type MergeShapes<U, V> = keyof U & keyof V extends never ? U & V : {
2080
+ [k in Exclude<keyof U, keyof V>]: U[k];
2081
+ } & V;
2082
+ type optionalKeys<T extends object> = {
2083
+ [k in keyof T]: undefined extends T[k] ? k : never;
2084
+ }[keyof T];
2085
+ type requiredKeys<T extends object> = {
2086
+ [k in keyof T]: undefined extends T[k] ? never : k;
2087
+ }[keyof T];
2088
+ export type addQuestionMarks<T extends object, _O = any> = {
2089
+ [K in requiredKeys<T>]: T[K];
2090
+ } & {
2091
+ [K in optionalKeys<T>]?: T[K];
2092
+ } & {
2093
+ [k in keyof T]?: unknown;
2094
+ };
2095
+ export type identity<T> = T;
2096
+ export type flatten<T> = identity<{
2097
+ [k in keyof T]: T[k];
2098
+ }>;
2099
+ export type noNeverKeys<T> = {
2100
+ [k in keyof T]: [T[k]] extends [never] ? never : k;
2101
+ }[keyof T];
2102
+ export type noNever<T> = identity<{
2103
+ [k in noNeverKeys<T>]: k extends keyof T ? T[k] : never;
2104
+ }>;
2105
+ export const mergeShapes: <U, T>(first: U, second: T) => T & U;
2106
+ export type extendShape<A extends object, B extends object> = keyof A & keyof B extends never ? A & B : {
2107
+ [K in keyof A as K extends keyof B ? never : K]: A[K];
2108
+ } & {
2109
+ [K in keyof B]: B[K];
2110
+ };
2111
+ export { };
2112
+ }
2113
+ declare const ZodParsedType: {
2114
+ string: "string";
2115
+ nan: "nan";
2116
+ number: "number";
2117
+ integer: "integer";
2118
+ float: "float";
2119
+ boolean: "boolean";
2120
+ date: "date";
2121
+ bigint: "bigint";
2122
+ symbol: "symbol";
2123
+ function: "function";
2124
+ undefined: "undefined";
2125
+ null: "null";
2126
+ array: "array";
2127
+ object: "object";
2128
+ unknown: "unknown";
2129
+ promise: "promise";
2130
+ void: "void";
2131
+ never: "never";
2132
+ map: "map";
2133
+ set: "set";
2134
+ };
2135
+ type ZodParsedType = keyof typeof ZodParsedType;
2136
+
2137
+ type allKeys<T> = T extends any ? keyof T : never;
2138
+ type typeToFlattenedError<T, U = string> = {
2139
+ formErrors: U[];
2140
+ fieldErrors: {
2141
+ [P in allKeys<T>]?: U[];
2142
+ };
2143
+ };
2144
+ declare const ZodIssueCode: {
2145
+ invalid_type: "invalid_type";
2146
+ invalid_literal: "invalid_literal";
2147
+ custom: "custom";
2148
+ invalid_union: "invalid_union";
2149
+ invalid_union_discriminator: "invalid_union_discriminator";
2150
+ invalid_enum_value: "invalid_enum_value";
2151
+ unrecognized_keys: "unrecognized_keys";
2152
+ invalid_arguments: "invalid_arguments";
2153
+ invalid_return_type: "invalid_return_type";
2154
+ invalid_date: "invalid_date";
2155
+ invalid_string: "invalid_string";
2156
+ too_small: "too_small";
2157
+ too_big: "too_big";
2158
+ invalid_intersection_types: "invalid_intersection_types";
2159
+ not_multiple_of: "not_multiple_of";
2160
+ not_finite: "not_finite";
2161
+ };
2162
+ type ZodIssueCode = keyof typeof ZodIssueCode;
2163
+ type ZodIssueBase = {
2164
+ path: (string | number)[];
2165
+ message?: string | undefined;
2166
+ };
2167
+ interface ZodInvalidTypeIssue extends ZodIssueBase {
2168
+ code: typeof ZodIssueCode.invalid_type;
2169
+ expected: ZodParsedType;
2170
+ received: ZodParsedType;
2171
+ }
2172
+ interface ZodInvalidLiteralIssue extends ZodIssueBase {
2173
+ code: typeof ZodIssueCode.invalid_literal;
2174
+ expected: unknown;
2175
+ received: unknown;
2176
+ }
2177
+ interface ZodUnrecognizedKeysIssue extends ZodIssueBase {
2178
+ code: typeof ZodIssueCode.unrecognized_keys;
2179
+ keys: string[];
2180
+ }
2181
+ interface ZodInvalidUnionIssue extends ZodIssueBase {
2182
+ code: typeof ZodIssueCode.invalid_union;
2183
+ unionErrors: ZodError[];
2184
+ }
2185
+ interface ZodInvalidUnionDiscriminatorIssue extends ZodIssueBase {
2186
+ code: typeof ZodIssueCode.invalid_union_discriminator;
2187
+ options: Primitive[];
2188
+ }
2189
+ interface ZodInvalidEnumValueIssue extends ZodIssueBase {
2190
+ received: string | number;
2191
+ code: typeof ZodIssueCode.invalid_enum_value;
2192
+ options: (string | number)[];
2193
+ }
2194
+ interface ZodInvalidArgumentsIssue extends ZodIssueBase {
2195
+ code: typeof ZodIssueCode.invalid_arguments;
2196
+ argumentsError: ZodError;
2197
+ }
2198
+ interface ZodInvalidReturnTypeIssue extends ZodIssueBase {
2199
+ code: typeof ZodIssueCode.invalid_return_type;
2200
+ returnTypeError: ZodError;
2201
+ }
2202
+ interface ZodInvalidDateIssue extends ZodIssueBase {
2203
+ code: typeof ZodIssueCode.invalid_date;
2204
+ }
2205
+ type StringValidation = "email" | "url" | "emoji" | "uuid" | "nanoid" | "regex" | "cuid" | "cuid2" | "ulid" | "datetime" | "date" | "time" | "duration" | "ip" | "cidr" | "base64" | "jwt" | "base64url" | {
2206
+ includes: string;
2207
+ position?: number | undefined;
2208
+ } | {
2209
+ startsWith: string;
2210
+ } | {
2211
+ endsWith: string;
2212
+ };
2213
+ interface ZodInvalidStringIssue extends ZodIssueBase {
2214
+ code: typeof ZodIssueCode.invalid_string;
2215
+ validation: StringValidation;
2216
+ }
2217
+ interface ZodTooSmallIssue extends ZodIssueBase {
2218
+ code: typeof ZodIssueCode.too_small;
2219
+ minimum: number | bigint;
2220
+ inclusive: boolean;
2221
+ exact?: boolean;
2222
+ type: "array" | "string" | "number" | "set" | "date" | "bigint";
2223
+ }
2224
+ interface ZodTooBigIssue extends ZodIssueBase {
2225
+ code: typeof ZodIssueCode.too_big;
2226
+ maximum: number | bigint;
2227
+ inclusive: boolean;
2228
+ exact?: boolean;
2229
+ type: "array" | "string" | "number" | "set" | "date" | "bigint";
2230
+ }
2231
+ interface ZodInvalidIntersectionTypesIssue extends ZodIssueBase {
2232
+ code: typeof ZodIssueCode.invalid_intersection_types;
2233
+ }
2234
+ interface ZodNotMultipleOfIssue extends ZodIssueBase {
2235
+ code: typeof ZodIssueCode.not_multiple_of;
2236
+ multipleOf: number | bigint;
2237
+ }
2238
+ interface ZodNotFiniteIssue extends ZodIssueBase {
2239
+ code: typeof ZodIssueCode.not_finite;
2240
+ }
2241
+ interface ZodCustomIssue extends ZodIssueBase {
2242
+ code: typeof ZodIssueCode.custom;
2243
+ params?: {
2244
+ [k: string]: any;
2245
+ };
2246
+ }
2247
+ type ZodIssueOptionalMessage = ZodInvalidTypeIssue | ZodInvalidLiteralIssue | ZodUnrecognizedKeysIssue | ZodInvalidUnionIssue | ZodInvalidUnionDiscriminatorIssue | ZodInvalidEnumValueIssue | ZodInvalidArgumentsIssue | ZodInvalidReturnTypeIssue | ZodInvalidDateIssue | ZodInvalidStringIssue | ZodTooSmallIssue | ZodTooBigIssue | ZodInvalidIntersectionTypesIssue | ZodNotMultipleOfIssue | ZodNotFiniteIssue | ZodCustomIssue;
2248
+ type ZodIssue = ZodIssueOptionalMessage & {
2249
+ fatal?: boolean | undefined;
2250
+ message: string;
2251
+ };
2252
+ type recursiveZodFormattedError<T> = T extends [any, ...any[]] ? {
2253
+ [K in keyof T]?: ZodFormattedError<T[K]>;
2254
+ } : T extends any[] ? {
2255
+ [k: number]: ZodFormattedError<T[number]>;
2256
+ } : T extends object ? {
2257
+ [K in keyof T]?: ZodFormattedError<T[K]>;
2258
+ } : unknown;
2259
+ type ZodFormattedError<T, U = string> = {
2260
+ _errors: U[];
2261
+ } & recursiveZodFormattedError<NonNullable<T>>;
2262
+ declare class ZodError<T = any> extends Error {
2263
+ issues: ZodIssue[];
2264
+ get errors(): ZodIssue[];
2265
+ constructor(issues: ZodIssue[]);
2266
+ format(): ZodFormattedError<T>;
2267
+ format<U>(mapper: (issue: ZodIssue) => U): ZodFormattedError<T, U>;
2268
+ static create: (issues: ZodIssue[]) => ZodError<any>;
2269
+ static assert(value: unknown): asserts value is ZodError;
2270
+ toString(): string;
2271
+ get message(): string;
2272
+ get isEmpty(): boolean;
2273
+ addIssue: (sub: ZodIssue) => void;
2274
+ addIssues: (subs?: ZodIssue[]) => void;
2275
+ flatten(): typeToFlattenedError<T>;
2276
+ flatten<U>(mapper?: (issue: ZodIssue) => U): typeToFlattenedError<T, U>;
2277
+ get formErrors(): typeToFlattenedError<T, string>;
2278
+ }
2279
+ type stripPath<T extends object> = T extends any ? util.OmitKeys<T, "path"> : never;
2280
+ type IssueData = stripPath<ZodIssueOptionalMessage> & {
2281
+ path?: (string | number)[];
2282
+ fatal?: boolean | undefined;
2283
+ };
2284
+ type ErrorMapCtx = {
2285
+ defaultError: string;
2286
+ data: any;
2287
+ };
2288
+ type ZodErrorMap = (issue: ZodIssueOptionalMessage, _ctx: ErrorMapCtx) => {
2289
+ message: string;
2290
+ };
2291
+
2292
+ type ParseParams = {
2293
+ path: (string | number)[];
2294
+ errorMap: ZodErrorMap;
2295
+ async: boolean;
2296
+ };
2297
+ type ParsePathComponent = string | number;
2298
+ type ParsePath = ParsePathComponent[];
2299
+ interface ParseContext {
2300
+ readonly common: {
2301
+ readonly issues: ZodIssue[];
2302
+ readonly contextualErrorMap?: ZodErrorMap | undefined;
2303
+ readonly async: boolean;
2304
+ };
2305
+ readonly path: ParsePath;
2306
+ readonly schemaErrorMap?: ZodErrorMap | undefined;
2307
+ readonly parent: ParseContext | null;
2308
+ readonly data: any;
2309
+ readonly parsedType: ZodParsedType;
2310
+ }
2311
+ type ParseInput = {
2312
+ data: any;
2313
+ path: (string | number)[];
2314
+ parent: ParseContext;
2315
+ };
2316
+ declare class ParseStatus {
2317
+ value: "aborted" | "dirty" | "valid";
2318
+ dirty(): void;
2319
+ abort(): void;
2320
+ static mergeArray(status: ParseStatus, results: SyncParseReturnType<any>[]): SyncParseReturnType;
2321
+ static mergeObjectAsync(status: ParseStatus, pairs: {
2322
+ key: ParseReturnType<any>;
2323
+ value: ParseReturnType<any>;
2324
+ }[]): Promise<SyncParseReturnType<any>>;
2325
+ static mergeObjectSync(status: ParseStatus, pairs: {
2326
+ key: SyncParseReturnType<any>;
2327
+ value: SyncParseReturnType<any>;
2328
+ alwaysSet?: boolean;
2329
+ }[]): SyncParseReturnType;
2330
+ }
2331
+ type INVALID = {
2332
+ status: "aborted";
2333
+ };
2334
+ declare const INVALID: INVALID;
2335
+ type DIRTY<T> = {
2336
+ status: "dirty";
2337
+ value: T;
2338
+ };
2339
+ declare const DIRTY: <T>(value: T) => DIRTY<T>;
2340
+ type OK<T> = {
2341
+ status: "valid";
2342
+ value: T;
2343
+ };
2344
+ declare const OK: <T>(value: T) => OK<T>;
2345
+ type SyncParseReturnType<T = any> = OK<T> | DIRTY<T> | INVALID;
2346
+ type AsyncParseReturnType<T> = Promise<SyncParseReturnType<T>>;
2347
+ type ParseReturnType<T> = SyncParseReturnType<T> | AsyncParseReturnType<T>;
2348
+
2349
+ declare namespace enumUtil {
2350
+ type UnionToIntersectionFn<T> = (T extends unknown ? (k: () => T) => void : never) extends (k: infer Intersection) => void ? Intersection : never;
2351
+ type GetUnionLast<T> = UnionToIntersectionFn<T> extends () => infer Last ? Last : never;
2352
+ type UnionToTuple<T, Tuple extends unknown[] = []> = [T] extends [never] ? Tuple : UnionToTuple<Exclude<T, GetUnionLast<T>>, [GetUnionLast<T>, ...Tuple]>;
2353
+ type CastToStringTuple<T> = T extends [string, ...string[]] ? T : never;
2354
+ export type UnionToTupleString<T> = CastToStringTuple<UnionToTuple<T>>;
2355
+ export { };
2356
+ }
2357
+
2358
+ declare namespace errorUtil {
2359
+ type ErrMessage = string | {
2360
+ message?: string | undefined;
2361
+ };
2362
+ const errToObj: (message?: ErrMessage) => {
2363
+ message?: string | undefined;
2364
+ };
2365
+ const toString: (message?: ErrMessage) => string | undefined;
2366
+ }
2367
+
2368
+ declare namespace partialUtil {
2369
+ type DeepPartial<T extends ZodTypeAny> = T extends ZodObject<ZodRawShape> ? ZodObject<{
2370
+ [k in keyof T["shape"]]: ZodOptional<DeepPartial<T["shape"][k]>>;
2371
+ }, T["_def"]["unknownKeys"], T["_def"]["catchall"]> : T extends ZodArray<infer Type, infer Card> ? ZodArray<DeepPartial<Type>, Card> : T extends ZodOptional<infer Type> ? ZodOptional<DeepPartial<Type>> : T extends ZodNullable<infer Type> ? ZodNullable<DeepPartial<Type>> : T extends ZodTuple<infer Items> ? {
2372
+ [k in keyof Items]: Items[k] extends ZodTypeAny ? DeepPartial<Items[k]> : never;
2373
+ } extends infer PI ? PI extends ZodTupleItems ? ZodTuple<PI> : never : never : T;
2374
+ }
2375
+
2376
+ /**
2377
+ * The Standard Schema interface.
2378
+ */
2379
+ type StandardSchemaV1<Input = unknown, Output = Input> = {
2380
+ /**
2381
+ * The Standard Schema properties.
2382
+ */
2383
+ readonly "~standard": StandardSchemaV1.Props<Input, Output>;
2384
+ };
2385
+ declare namespace StandardSchemaV1 {
2386
+ /**
2387
+ * The Standard Schema properties interface.
2388
+ */
2389
+ export interface Props<Input = unknown, Output = Input> {
2390
+ /**
2391
+ * The version number of the standard.
2392
+ */
2393
+ readonly version: 1;
2394
+ /**
2395
+ * The vendor name of the schema library.
2396
+ */
2397
+ readonly vendor: string;
2398
+ /**
2399
+ * Validates unknown input values.
2400
+ */
2401
+ readonly validate: (value: unknown) => Result<Output> | Promise<Result<Output>>;
2402
+ /**
2403
+ * Inferred types associated with the schema.
2404
+ */
2405
+ readonly types?: Types<Input, Output> | undefined;
2406
+ }
2407
+ /**
2408
+ * The result interface of the validate function.
2409
+ */
2410
+ export type Result<Output> = SuccessResult<Output> | FailureResult;
2411
+ /**
2412
+ * The result interface if validation succeeds.
2413
+ */
2414
+ export interface SuccessResult<Output> {
2415
+ /**
2416
+ * The typed output value.
2417
+ */
2418
+ readonly value: Output;
2419
+ /**
2420
+ * The non-existent issues.
2421
+ */
2422
+ readonly issues?: undefined;
2423
+ }
2424
+ /**
2425
+ * The result interface if validation fails.
2426
+ */
2427
+ export interface FailureResult {
2428
+ /**
2429
+ * The issues of failed validation.
2430
+ */
2431
+ readonly issues: ReadonlyArray<Issue>;
2432
+ }
2433
+ /**
2434
+ * The issue interface of the failure output.
2435
+ */
2436
+ export interface Issue {
2437
+ /**
2438
+ * The error message of the issue.
2439
+ */
2440
+ readonly message: string;
2441
+ /**
2442
+ * The path of the issue, if any.
2443
+ */
2444
+ readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
2445
+ }
2446
+ /**
2447
+ * The path segment interface of the issue.
2448
+ */
2449
+ export interface PathSegment {
2450
+ /**
2451
+ * The key representing a path segment.
2452
+ */
2453
+ readonly key: PropertyKey;
2454
+ }
2455
+ /**
2456
+ * The Standard Schema types interface.
2457
+ */
2458
+ export interface Types<Input = unknown, Output = Input> {
2459
+ /**
2460
+ * The input type of the schema.
2461
+ */
2462
+ readonly input: Input;
2463
+ /**
2464
+ * The output type of the schema.
2465
+ */
2466
+ readonly output: Output;
2467
+ }
2468
+ /**
2469
+ * Infers the input type of a Standard Schema.
2470
+ */
2471
+ export type InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["input"];
2472
+ /**
2473
+ * Infers the output type of a Standard Schema.
2474
+ */
2475
+ export type InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
2476
+ export { };
2477
+ }
2478
+
2479
+ interface RefinementCtx {
2480
+ addIssue: (arg: IssueData) => void;
2481
+ path: (string | number)[];
2482
+ }
2483
+ type ZodRawShape = {
2484
+ [k: string]: ZodTypeAny;
2485
+ };
2486
+ type ZodTypeAny = ZodType<any, any, any>;
2487
+ type TypeOf<T extends ZodType<any, any, any>> = T["_output"];
2488
+ type input<T extends ZodType<any, any, any>> = T["_input"];
2489
+ type output<T extends ZodType<any, any, any>> = T["_output"];
2490
+
2491
+ type CustomErrorParams = Partial<util.Omit<ZodCustomIssue, "code">>;
2492
+ interface ZodTypeDef {
2493
+ errorMap?: ZodErrorMap | undefined;
2494
+ description?: string | undefined;
2495
+ }
2496
+ type RawCreateParams = {
2497
+ errorMap?: ZodErrorMap | undefined;
2498
+ invalid_type_error?: string | undefined;
2499
+ required_error?: string | undefined;
2500
+ message?: string | undefined;
2501
+ description?: string | undefined;
2502
+ } | undefined;
2503
+ type SafeParseSuccess<Output> = {
2504
+ success: true;
2505
+ data: Output;
2506
+ error?: never;
2507
+ };
2508
+ type SafeParseError<Input> = {
2509
+ success: false;
2510
+ error: ZodError<Input>;
2511
+ data?: never;
2512
+ };
2513
+ type SafeParseReturnType<Input, Output> = SafeParseSuccess<Output> | SafeParseError<Input>;
2514
+ declare abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input = Output> {
2515
+ readonly _type: Output;
2516
+ readonly _output: Output;
2517
+ readonly _input: Input;
2518
+ readonly _def: Def;
2519
+ get description(): string | undefined;
2520
+ "~standard": StandardSchemaV1.Props<Input, Output>;
2521
+ abstract _parse(input: ParseInput): ParseReturnType<Output>;
2522
+ _getType(input: ParseInput): string;
2523
+ _getOrReturnCtx(input: ParseInput, ctx?: ParseContext | undefined): ParseContext;
2524
+ _processInputParams(input: ParseInput): {
2525
+ status: ParseStatus;
2526
+ ctx: ParseContext;
2527
+ };
2528
+ _parseSync(input: ParseInput): SyncParseReturnType<Output>;
2529
+ _parseAsync(input: ParseInput): AsyncParseReturnType<Output>;
2530
+ parse(data: unknown, params?: util.InexactPartial<ParseParams>): Output;
2531
+ safeParse(data: unknown, params?: util.InexactPartial<ParseParams>): SafeParseReturnType<Input, Output>;
2532
+ "~validate"(data: unknown): StandardSchemaV1.Result<Output> | Promise<StandardSchemaV1.Result<Output>>;
2533
+ parseAsync(data: unknown, params?: util.InexactPartial<ParseParams>): Promise<Output>;
2534
+ safeParseAsync(data: unknown, params?: util.InexactPartial<ParseParams>): Promise<SafeParseReturnType<Input, Output>>;
2535
+ /** Alias of safeParseAsync */
2536
+ spa: (data: unknown, params?: util.InexactPartial<ParseParams>) => Promise<SafeParseReturnType<Input, Output>>;
2537
+ refine<RefinedOutput extends Output>(check: (arg: Output) => arg is RefinedOutput, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, RefinedOutput, Input>;
2538
+ refine(check: (arg: Output) => unknown | Promise<unknown>, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, Output, Input>;
2539
+ refinement<RefinedOutput extends Output>(check: (arg: Output) => arg is RefinedOutput, refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData)): ZodEffects<this, RefinedOutput, Input>;
2540
+ refinement(check: (arg: Output) => boolean, refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData)): ZodEffects<this, Output, Input>;
2541
+ _refinement(refinement: RefinementEffect<Output>["refinement"]): ZodEffects<this, Output, Input>;
2542
+ superRefine<RefinedOutput extends Output>(refinement: (arg: Output, ctx: RefinementCtx) => arg is RefinedOutput): ZodEffects<this, RefinedOutput, Input>;
2543
+ superRefine(refinement: (arg: Output, ctx: RefinementCtx) => void): ZodEffects<this, Output, Input>;
2544
+ superRefine(refinement: (arg: Output, ctx: RefinementCtx) => Promise<void>): ZodEffects<this, Output, Input>;
2545
+ constructor(def: Def);
2546
+ optional(): ZodOptional<this>;
2547
+ nullable(): ZodNullable<this>;
2548
+ nullish(): ZodOptional<ZodNullable<this>>;
2549
+ array(): ZodArray<this>;
2550
+ promise(): ZodPromise<this>;
2551
+ or<T extends ZodTypeAny>(option: T): ZodUnion<[this, T]>;
2552
+ and<T extends ZodTypeAny>(incoming: T): ZodIntersection<this, T>;
2553
+ transform<NewOut>(transform: (arg: Output, ctx: RefinementCtx) => NewOut | Promise<NewOut>): ZodEffects<this, NewOut>;
2554
+ default(def: util.noUndefined<Input>): ZodDefault<this>;
2555
+ default(def: () => util.noUndefined<Input>): ZodDefault<this>;
2556
+ brand<B extends string | number | symbol>(brand?: B): ZodBranded<this, B>;
2557
+ catch(def: Output): ZodCatch<this>;
2558
+ catch(def: (ctx: {
2559
+ error: ZodError;
2560
+ input: Input;
2561
+ }) => Output): ZodCatch<this>;
2562
+ describe(description: string): this;
2563
+ pipe<T extends ZodTypeAny>(target: T): ZodPipeline<this, T>;
2564
+ readonly(): ZodReadonly<this>;
2565
+ isOptional(): boolean;
2566
+ isNullable(): boolean;
2567
+ }
2568
+ type ZodNumberCheck = {
2569
+ kind: "min";
2570
+ value: number;
2571
+ inclusive: boolean;
2572
+ message?: string | undefined;
2573
+ } | {
2574
+ kind: "max";
2575
+ value: number;
2576
+ inclusive: boolean;
2577
+ message?: string | undefined;
2578
+ } | {
2579
+ kind: "int";
2580
+ message?: string | undefined;
2581
+ } | {
2582
+ kind: "multipleOf";
2583
+ value: number;
2584
+ message?: string | undefined;
2585
+ } | {
2586
+ kind: "finite";
2587
+ message?: string | undefined;
2588
+ };
2589
+ interface ZodNumberDef extends ZodTypeDef {
2590
+ checks: ZodNumberCheck[];
2591
+ typeName: ZodFirstPartyTypeKind.ZodNumber;
2592
+ coerce: boolean;
2593
+ }
2594
+ declare class ZodNumber extends ZodType<number, ZodNumberDef, number> {
2595
+ _parse(input: ParseInput): ParseReturnType<number>;
2596
+ static create: (params?: RawCreateParams & {
2597
+ coerce?: boolean;
2598
+ }) => ZodNumber;
2599
+ gte(value: number, message?: errorUtil.ErrMessage): ZodNumber;
2600
+ min: (value: number, message?: errorUtil.ErrMessage) => ZodNumber;
2601
+ gt(value: number, message?: errorUtil.ErrMessage): ZodNumber;
2602
+ lte(value: number, message?: errorUtil.ErrMessage): ZodNumber;
2603
+ max: (value: number, message?: errorUtil.ErrMessage) => ZodNumber;
2604
+ lt(value: number, message?: errorUtil.ErrMessage): ZodNumber;
2605
+ protected setLimit(kind: "min" | "max", value: number, inclusive: boolean, message?: string): ZodNumber;
2606
+ _addCheck(check: ZodNumberCheck): ZodNumber;
2607
+ int(message?: errorUtil.ErrMessage): ZodNumber;
2608
+ positive(message?: errorUtil.ErrMessage): ZodNumber;
2609
+ negative(message?: errorUtil.ErrMessage): ZodNumber;
2610
+ nonpositive(message?: errorUtil.ErrMessage): ZodNumber;
2611
+ nonnegative(message?: errorUtil.ErrMessage): ZodNumber;
2612
+ multipleOf(value: number, message?: errorUtil.ErrMessage): ZodNumber;
2613
+ step: (value: number, message?: errorUtil.ErrMessage) => ZodNumber;
2614
+ finite(message?: errorUtil.ErrMessage): ZodNumber;
2615
+ safe(message?: errorUtil.ErrMessage): ZodNumber;
2616
+ get minValue(): number | null;
2617
+ get maxValue(): number | null;
2618
+ get isInt(): boolean;
2619
+ get isFinite(): boolean;
2620
+ }
2621
+ interface ZodBooleanDef extends ZodTypeDef {
2622
+ typeName: ZodFirstPartyTypeKind.ZodBoolean;
2623
+ coerce: boolean;
2624
+ }
2625
+ declare class ZodBoolean extends ZodType<boolean, ZodBooleanDef, boolean> {
2626
+ _parse(input: ParseInput): ParseReturnType<boolean>;
2627
+ static create: (params?: RawCreateParams & {
2628
+ coerce?: boolean;
2629
+ }) => ZodBoolean;
2630
+ }
2631
+ interface ZodArrayDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
2632
+ type: T;
2633
+ typeName: ZodFirstPartyTypeKind.ZodArray;
2634
+ exactLength: {
2635
+ value: number;
2636
+ message?: string | undefined;
2637
+ } | null;
2638
+ minLength: {
2639
+ value: number;
2640
+ message?: string | undefined;
2641
+ } | null;
2642
+ maxLength: {
2643
+ value: number;
2644
+ message?: string | undefined;
2645
+ } | null;
2646
+ }
2647
+ type ArrayCardinality = "many" | "atleastone";
2648
+ type arrayOutputType<T extends ZodTypeAny, Cardinality extends ArrayCardinality = "many"> = Cardinality extends "atleastone" ? [T["_output"], ...T["_output"][]] : T["_output"][];
2649
+ declare class ZodArray<T extends ZodTypeAny, Cardinality extends ArrayCardinality = "many"> extends ZodType<arrayOutputType<T, Cardinality>, ZodArrayDef<T>, Cardinality extends "atleastone" ? [T["_input"], ...T["_input"][]] : T["_input"][]> {
2650
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
2651
+ get element(): T;
2652
+ min(minLength: number, message?: errorUtil.ErrMessage): this;
2653
+ max(maxLength: number, message?: errorUtil.ErrMessage): this;
2654
+ length(len: number, message?: errorUtil.ErrMessage): this;
2655
+ nonempty(message?: errorUtil.ErrMessage): ZodArray<T, "atleastone">;
2656
+ static create: <El extends ZodTypeAny>(schema: El, params?: RawCreateParams) => ZodArray<El>;
2657
+ }
2658
+ type UnknownKeysParam = "passthrough" | "strict" | "strip";
2659
+ interface ZodObjectDef<T extends ZodRawShape = ZodRawShape, UnknownKeys extends UnknownKeysParam = UnknownKeysParam, Catchall extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
2660
+ typeName: ZodFirstPartyTypeKind.ZodObject;
2661
+ shape: () => T;
2662
+ catchall: Catchall;
2663
+ unknownKeys: UnknownKeys;
2664
+ }
2665
+ type objectOutputType<Shape extends ZodRawShape, Catchall extends ZodTypeAny, UnknownKeys extends UnknownKeysParam = UnknownKeysParam> = objectUtil.flatten<objectUtil.addQuestionMarks<baseObjectOutputType<Shape>>> & CatchallOutput<Catchall> & PassthroughType<UnknownKeys>;
2666
+ type baseObjectOutputType<Shape extends ZodRawShape> = {
2667
+ [k in keyof Shape]: Shape[k]["_output"];
2668
+ };
2669
+ type objectInputType<Shape extends ZodRawShape, Catchall extends ZodTypeAny, UnknownKeys extends UnknownKeysParam = UnknownKeysParam> = objectUtil.flatten<baseObjectInputType<Shape>> & CatchallInput<Catchall> & PassthroughType<UnknownKeys>;
2670
+ type baseObjectInputType<Shape extends ZodRawShape> = objectUtil.addQuestionMarks<{
2671
+ [k in keyof Shape]: Shape[k]["_input"];
2672
+ }>;
2673
+ type CatchallOutput<T extends ZodType> = ZodType extends T ? unknown : {
2674
+ [k: string]: T["_output"];
2675
+ };
2676
+ type CatchallInput<T extends ZodType> = ZodType extends T ? unknown : {
2677
+ [k: string]: T["_input"];
2678
+ };
2679
+ type PassthroughType<T extends UnknownKeysParam> = T extends "passthrough" ? {
2680
+ [k: string]: unknown;
2681
+ } : unknown;
2682
+ type deoptional<T extends ZodTypeAny> = T extends ZodOptional<infer U> ? deoptional<U> : T extends ZodNullable<infer U> ? ZodNullable<deoptional<U>> : T;
2683
+ declare class ZodObject<T extends ZodRawShape, UnknownKeys extends UnknownKeysParam = UnknownKeysParam, Catchall extends ZodTypeAny = ZodTypeAny, Output = objectOutputType<T, Catchall, UnknownKeys>, Input = objectInputType<T, Catchall, UnknownKeys>> extends ZodType<Output, ZodObjectDef<T, UnknownKeys, Catchall>, Input> {
2684
+ private _cached;
2685
+ _getCached(): {
2686
+ shape: T;
2687
+ keys: string[];
2688
+ };
2689
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
2690
+ get shape(): T;
2691
+ strict(message?: errorUtil.ErrMessage): ZodObject<T, "strict", Catchall>;
2692
+ strip(): ZodObject<T, "strip", Catchall>;
2693
+ passthrough(): ZodObject<T, "passthrough", Catchall>;
2694
+ /**
2695
+ * @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.
2696
+ * If you want to pass through unknown properties, use `.passthrough()` instead.
2697
+ */
2698
+ nonstrict: () => ZodObject<T, "passthrough", Catchall>;
2699
+ extend<Augmentation extends ZodRawShape>(augmentation: Augmentation): ZodObject<objectUtil.extendShape<T, Augmentation>, UnknownKeys, Catchall>;
2700
+ /**
2701
+ * @deprecated Use `.extend` instead
2702
+ * */
2703
+ augment: <Augmentation extends ZodRawShape>(augmentation: Augmentation) => ZodObject<objectUtil.extendShape<T, Augmentation>, UnknownKeys, Catchall>;
2704
+ /**
2705
+ * Prior to zod@1.0.12 there was a bug in the
2706
+ * inferred type of merged objects. Please
2707
+ * upgrade if you are experiencing issues.
2708
+ */
2709
+ merge<Incoming extends AnyZodObject, Augmentation extends Incoming["shape"]>(merging: Incoming): ZodObject<objectUtil.extendShape<T, Augmentation>, Incoming["_def"]["unknownKeys"], Incoming["_def"]["catchall"]>;
2710
+ setKey<Key extends string, Schema extends ZodTypeAny>(key: Key, schema: Schema): ZodObject<T & {
2711
+ [k in Key]: Schema;
2712
+ }, UnknownKeys, Catchall>;
2713
+ catchall<Index extends ZodTypeAny>(index: Index): ZodObject<T, UnknownKeys, Index>;
2714
+ pick<Mask extends util.Exactly<{
2715
+ [k in keyof T]?: true;
2716
+ }, Mask>>(mask: Mask): ZodObject<Pick<T, Extract<keyof T, keyof Mask>>, UnknownKeys, Catchall>;
2717
+ omit<Mask extends util.Exactly<{
2718
+ [k in keyof T]?: true;
2719
+ }, Mask>>(mask: Mask): ZodObject<Omit<T, keyof Mask>, UnknownKeys, Catchall>;
2720
+ /**
2721
+ * @deprecated
2722
+ */
2723
+ deepPartial(): partialUtil.DeepPartial<this>;
2724
+ partial(): ZodObject<{
2725
+ [k in keyof T]: ZodOptional<T[k]>;
2726
+ }, UnknownKeys, Catchall>;
2727
+ partial<Mask extends util.Exactly<{
2728
+ [k in keyof T]?: true;
2729
+ }, Mask>>(mask: Mask): ZodObject<objectUtil.noNever<{
2730
+ [k in keyof T]: k extends keyof Mask ? ZodOptional<T[k]> : T[k];
2731
+ }>, UnknownKeys, Catchall>;
2732
+ required(): ZodObject<{
2733
+ [k in keyof T]: deoptional<T[k]>;
2734
+ }, UnknownKeys, Catchall>;
2735
+ required<Mask extends util.Exactly<{
2736
+ [k in keyof T]?: true;
2737
+ }, Mask>>(mask: Mask): ZodObject<objectUtil.noNever<{
2738
+ [k in keyof T]: k extends keyof Mask ? deoptional<T[k]> : T[k];
2739
+ }>, UnknownKeys, Catchall>;
2740
+ keyof(): ZodEnum<enumUtil.UnionToTupleString<keyof T>>;
2741
+ static create: <Shape extends ZodRawShape>(shape: Shape, params?: RawCreateParams) => ZodObject<Shape, "strip", ZodTypeAny, objectOutputType<Shape, ZodTypeAny, "strip">, objectInputType<Shape, ZodTypeAny, "strip">>;
2742
+ static strictCreate: <Shape extends ZodRawShape>(shape: Shape, params?: RawCreateParams) => ZodObject<Shape, "strict">;
2743
+ static lazycreate: <Shape extends ZodRawShape>(shape: () => Shape, params?: RawCreateParams) => ZodObject<Shape, "strip">;
2744
+ }
2745
+ type AnyZodObject = ZodObject<any, any, any>;
2746
+ type ZodUnionOptions = Readonly<[ZodTypeAny, ...ZodTypeAny[]]>;
2747
+ interface ZodUnionDef<T extends ZodUnionOptions = Readonly<[ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>> extends ZodTypeDef {
2748
+ options: T;
2749
+ typeName: ZodFirstPartyTypeKind.ZodUnion;
2750
+ }
2751
+ declare class ZodUnion<T extends ZodUnionOptions> extends ZodType<T[number]["_output"], ZodUnionDef<T>, T[number]["_input"]> {
2752
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
2753
+ get options(): T;
2754
+ static create: <Options extends Readonly<[ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>>(types: Options, params?: RawCreateParams) => ZodUnion<Options>;
2755
+ }
2756
+ interface ZodIntersectionDef<T extends ZodTypeAny = ZodTypeAny, U extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
2757
+ left: T;
2758
+ right: U;
2759
+ typeName: ZodFirstPartyTypeKind.ZodIntersection;
2760
+ }
2761
+ declare class ZodIntersection<T extends ZodTypeAny, U extends ZodTypeAny> extends ZodType<T["_output"] & U["_output"], ZodIntersectionDef<T, U>, T["_input"] & U["_input"]> {
2762
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
2763
+ static create: <TSchema extends ZodTypeAny, USchema extends ZodTypeAny>(left: TSchema, right: USchema, params?: RawCreateParams) => ZodIntersection<TSchema, USchema>;
2764
+ }
2765
+ type ZodTupleItems = [ZodTypeAny, ...ZodTypeAny[]];
2766
+ type AssertArray<T> = T extends any[] ? T : never;
2767
+ type OutputTypeOfTuple<T extends ZodTupleItems | []> = AssertArray<{
2768
+ [k in keyof T]: T[k] extends ZodType<any, any, any> ? T[k]["_output"] : never;
2769
+ }>;
2770
+ type OutputTypeOfTupleWithRest<T extends ZodTupleItems | [], Rest extends ZodTypeAny | null = null> = Rest extends ZodTypeAny ? [...OutputTypeOfTuple<T>, ...Rest["_output"][]] : OutputTypeOfTuple<T>;
2771
+ type InputTypeOfTuple<T extends ZodTupleItems | []> = AssertArray<{
2772
+ [k in keyof T]: T[k] extends ZodType<any, any, any> ? T[k]["_input"] : never;
2773
+ }>;
2774
+ type InputTypeOfTupleWithRest<T extends ZodTupleItems | [], Rest extends ZodTypeAny | null = null> = Rest extends ZodTypeAny ? [...InputTypeOfTuple<T>, ...Rest["_input"][]] : InputTypeOfTuple<T>;
2775
+ interface ZodTupleDef<T extends ZodTupleItems | [] = ZodTupleItems, Rest extends ZodTypeAny | null = null> extends ZodTypeDef {
2776
+ items: T;
2777
+ rest: Rest;
2778
+ typeName: ZodFirstPartyTypeKind.ZodTuple;
2779
+ }
2780
+ declare class ZodTuple<T extends ZodTupleItems | [] = ZodTupleItems, Rest extends ZodTypeAny | null = null> extends ZodType<OutputTypeOfTupleWithRest<T, Rest>, ZodTupleDef<T, Rest>, InputTypeOfTupleWithRest<T, Rest>> {
2781
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
2782
+ get items(): T;
2783
+ rest<RestSchema extends ZodTypeAny>(rest: RestSchema): ZodTuple<T, RestSchema>;
2784
+ static create: <Items extends [ZodTypeAny, ...ZodTypeAny[]] | []>(schemas: Items, params?: RawCreateParams) => ZodTuple<Items, null>;
2785
+ }
2786
+ type EnumValues<T extends string = string> = readonly [T, ...T[]];
2787
+ type Values<T extends EnumValues> = {
2788
+ [k in T[number]]: k;
2789
+ };
2790
+ interface ZodEnumDef<T extends EnumValues = EnumValues> extends ZodTypeDef {
2791
+ values: T;
2792
+ typeName: ZodFirstPartyTypeKind.ZodEnum;
2793
+ }
2794
+ type Writeable<T> = {
2795
+ -readonly [P in keyof T]: T[P];
2796
+ };
2797
+ type FilterEnum<Values, ToExclude> = Values extends [] ? [] : Values extends [infer Head, ...infer Rest] ? Head extends ToExclude ? FilterEnum<Rest, ToExclude> : [Head, ...FilterEnum<Rest, ToExclude>] : never;
2798
+ type typecast<A, T> = A extends T ? A : never;
2799
+ declare function createZodEnum<U extends string, T extends Readonly<[U, ...U[]]>>(values: T, params?: RawCreateParams): ZodEnum<Writeable<T>>;
2800
+ declare function createZodEnum<U extends string, T extends [U, ...U[]]>(values: T, params?: RawCreateParams): ZodEnum<T>;
2801
+ declare class ZodEnum<T extends [string, ...string[]]> extends ZodType<T[number], ZodEnumDef<T>, T[number]> {
2802
+ _cache: Set<T[number]> | undefined;
2803
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
2804
+ get options(): T;
2805
+ get enum(): Values<T>;
2806
+ get Values(): Values<T>;
2807
+ get Enum(): Values<T>;
2808
+ extract<ToExtract extends readonly [T[number], ...T[number][]]>(values: ToExtract, newDef?: RawCreateParams): ZodEnum<Writeable<ToExtract>>;
2809
+ exclude<ToExclude extends readonly [T[number], ...T[number][]]>(values: ToExclude, newDef?: RawCreateParams): ZodEnum<typecast<Writeable<FilterEnum<T, ToExclude[number]>>, [string, ...string[]]>>;
2810
+ static create: typeof createZodEnum;
2811
+ }
2812
+ interface ZodPromiseDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
2813
+ type: T;
2814
+ typeName: ZodFirstPartyTypeKind.ZodPromise;
2815
+ }
2816
+ declare class ZodPromise<T extends ZodTypeAny> extends ZodType<Promise<T["_output"]>, ZodPromiseDef<T>, Promise<T["_input"]>> {
2817
+ unwrap(): T;
2818
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
2819
+ static create: <Inner extends ZodTypeAny>(schema: Inner, params?: RawCreateParams) => ZodPromise<Inner>;
2820
+ }
2821
+ type RefinementEffect<T> = {
2822
+ type: "refinement";
2823
+ refinement: (arg: T, ctx: RefinementCtx) => any;
2824
+ };
2825
+ type TransformEffect<T> = {
2826
+ type: "transform";
2827
+ transform: (arg: T, ctx: RefinementCtx) => any;
2828
+ };
2829
+ type PreprocessEffect<T> = {
2830
+ type: "preprocess";
2831
+ transform: (arg: T, ctx: RefinementCtx) => any;
2832
+ };
2833
+ type Effect<T> = RefinementEffect<T> | TransformEffect<T> | PreprocessEffect<T>;
2834
+ interface ZodEffectsDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
2835
+ schema: T;
2836
+ typeName: ZodFirstPartyTypeKind.ZodEffects;
2837
+ effect: Effect<any>;
2838
+ }
2839
+ declare class ZodEffects<T extends ZodTypeAny, Output = output<T>, Input = input<T>> extends ZodType<Output, ZodEffectsDef<T>, Input> {
2840
+ innerType(): T;
2841
+ sourceType(): T;
2842
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
2843
+ static create: <I extends ZodTypeAny>(schema: I, effect: Effect<I["_output"]>, params?: RawCreateParams) => ZodEffects<I, I["_output"]>;
2844
+ static createWithPreprocess: <I extends ZodTypeAny>(preprocess: (arg: unknown, ctx: RefinementCtx) => unknown, schema: I, params?: RawCreateParams) => ZodEffects<I, I["_output"], unknown>;
2845
+ }
2846
+
2847
+ interface ZodOptionalDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
2848
+ innerType: T;
2849
+ typeName: ZodFirstPartyTypeKind.ZodOptional;
2850
+ }
2851
+ declare class ZodOptional<T extends ZodTypeAny> extends ZodType<T["_output"] | undefined, ZodOptionalDef<T>, T["_input"] | undefined> {
2852
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
2853
+ unwrap(): T;
2854
+ static create: <Inner extends ZodTypeAny>(type: Inner, params?: RawCreateParams) => ZodOptional<Inner>;
2855
+ }
2856
+ interface ZodNullableDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
2857
+ innerType: T;
2858
+ typeName: ZodFirstPartyTypeKind.ZodNullable;
2859
+ }
2860
+ declare class ZodNullable<T extends ZodTypeAny> extends ZodType<T["_output"] | null, ZodNullableDef<T>, T["_input"] | null> {
2861
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
2862
+ unwrap(): T;
2863
+ static create: <Inner extends ZodTypeAny>(type: Inner, params?: RawCreateParams) => ZodNullable<Inner>;
2864
+ }
2865
+ interface ZodDefaultDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
2866
+ innerType: T;
2867
+ defaultValue: () => util.noUndefined<T["_input"]>;
2868
+ typeName: ZodFirstPartyTypeKind.ZodDefault;
2869
+ }
2870
+ declare class ZodDefault<T extends ZodTypeAny> extends ZodType<util.noUndefined<T["_output"]>, ZodDefaultDef<T>, T["_input"] | undefined> {
2871
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
2872
+ removeDefault(): T;
2873
+ static create: <Inner extends ZodTypeAny>(type: Inner, params: RawCreateParams & {
2874
+ default: Inner["_input"] | (() => util.noUndefined<Inner["_input"]>);
2875
+ }) => ZodDefault<Inner>;
2876
+ }
2877
+ interface ZodCatchDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
2878
+ innerType: T;
2879
+ catchValue: (ctx: {
2880
+ error: ZodError;
2881
+ input: unknown;
2882
+ }) => T["_input"];
2883
+ typeName: ZodFirstPartyTypeKind.ZodCatch;
2884
+ }
2885
+ declare class ZodCatch<T extends ZodTypeAny> extends ZodType<T["_output"], ZodCatchDef<T>, unknown> {
2886
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
2887
+ removeCatch(): T;
2888
+ static create: <Inner extends ZodTypeAny>(type: Inner, params: RawCreateParams & {
2889
+ catch: Inner["_output"] | (() => Inner["_output"]);
2890
+ }) => ZodCatch<Inner>;
2891
+ }
2892
+ interface ZodBrandedDef<T extends ZodTypeAny> extends ZodTypeDef {
2893
+ type: T;
2894
+ typeName: ZodFirstPartyTypeKind.ZodBranded;
2895
+ }
2896
+ declare const BRAND: unique symbol;
2897
+ type BRAND<T extends string | number | symbol> = {
2898
+ [BRAND]: {
2899
+ [k in T]: true;
2900
+ };
2901
+ };
2902
+ declare class ZodBranded<T extends ZodTypeAny, B extends string | number | symbol> extends ZodType<T["_output"] & BRAND<B>, ZodBrandedDef<T>, T["_input"]> {
2903
+ _parse(input: ParseInput): ParseReturnType<any>;
2904
+ unwrap(): T;
2905
+ }
2906
+ interface ZodPipelineDef<A extends ZodTypeAny, B extends ZodTypeAny> extends ZodTypeDef {
2907
+ in: A;
2908
+ out: B;
2909
+ typeName: ZodFirstPartyTypeKind.ZodPipeline;
2910
+ }
2911
+ declare class ZodPipeline<A extends ZodTypeAny, B extends ZodTypeAny> extends ZodType<B["_output"], ZodPipelineDef<A, B>, A["_input"]> {
2912
+ _parse(input: ParseInput): ParseReturnType<any>;
2913
+ static create<ASchema extends ZodTypeAny, BSchema extends ZodTypeAny>(a: ASchema, b: BSchema): ZodPipeline<ASchema, BSchema>;
2914
+ }
2915
+ type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | {
2916
+ readonly [Symbol.toStringTag]: string;
2917
+ } | Date | Error | Generator | Promise<unknown> | RegExp;
2918
+ type MakeReadonly<T> = T extends Map<infer K, infer V> ? ReadonlyMap<K, V> : T extends Set<infer V> ? ReadonlySet<V> : T extends [infer Head, ...infer Tail] ? readonly [Head, ...Tail] : T extends Array<infer V> ? ReadonlyArray<V> : T extends BuiltIn ? T : Readonly<T>;
2919
+ interface ZodReadonlyDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
2920
+ innerType: T;
2921
+ typeName: ZodFirstPartyTypeKind.ZodReadonly;
2922
+ }
2923
+ declare class ZodReadonly<T extends ZodTypeAny> extends ZodType<MakeReadonly<T["_output"]>, ZodReadonlyDef<T>, MakeReadonly<T["_input"]>> {
2924
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
2925
+ static create: <Inner extends ZodTypeAny>(type: Inner, params?: RawCreateParams) => ZodReadonly<Inner>;
2926
+ unwrap(): T;
2927
+ }
2928
+ declare enum ZodFirstPartyTypeKind {
2929
+ ZodString = "ZodString",
2930
+ ZodNumber = "ZodNumber",
2931
+ ZodNaN = "ZodNaN",
2932
+ ZodBigInt = "ZodBigInt",
2933
+ ZodBoolean = "ZodBoolean",
2934
+ ZodDate = "ZodDate",
2935
+ ZodSymbol = "ZodSymbol",
2936
+ ZodUndefined = "ZodUndefined",
2937
+ ZodNull = "ZodNull",
2938
+ ZodAny = "ZodAny",
2939
+ ZodUnknown = "ZodUnknown",
2940
+ ZodNever = "ZodNever",
2941
+ ZodVoid = "ZodVoid",
2942
+ ZodArray = "ZodArray",
2943
+ ZodObject = "ZodObject",
2944
+ ZodUnion = "ZodUnion",
2945
+ ZodDiscriminatedUnion = "ZodDiscriminatedUnion",
2946
+ ZodIntersection = "ZodIntersection",
2947
+ ZodTuple = "ZodTuple",
2948
+ ZodRecord = "ZodRecord",
2949
+ ZodMap = "ZodMap",
2950
+ ZodSet = "ZodSet",
2951
+ ZodFunction = "ZodFunction",
2952
+ ZodLazy = "ZodLazy",
2953
+ ZodLiteral = "ZodLiteral",
2954
+ ZodEnum = "ZodEnum",
2955
+ ZodEffects = "ZodEffects",
2956
+ ZodNativeEnum = "ZodNativeEnum",
2957
+ ZodOptional = "ZodOptional",
2958
+ ZodNullable = "ZodNullable",
2959
+ ZodDefault = "ZodDefault",
2960
+ ZodCatch = "ZodCatch",
2961
+ ZodPromise = "ZodPromise",
2962
+ ZodBranded = "ZodBranded",
2963
+ ZodPipeline = "ZodPipeline",
2964
+ ZodReadonly = "ZodReadonly"
2965
+ }
2966
+
2967
+ declare const userSettingSchema: ZodObject<{
2968
+ version: ZodNumber;
2969
+ userSince: ZodOptional<ZodNumber>;
2970
+ init: ZodOptional<ZodObject<{
2971
+ skipOnboarding: ZodOptional<ZodBoolean>;
2972
+ }, "strip", ZodTypeAny, {
2973
+ skipOnboarding?: boolean | undefined;
2974
+ }, {
2975
+ skipOnboarding?: boolean | undefined;
2976
+ }>>;
2977
+ checklist: ZodOptional<ZodObject<{
2978
+ items: ZodOptional<ZodObject<{
2979
+ accessibilityTests: ZodOptional<ZodObject<{
2980
+ status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
2981
+ mutedAt: ZodOptional<ZodNumber>;
2982
+ }, "strict", ZodTypeAny, {
2983
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
2984
+ mutedAt?: number | undefined;
2985
+ }, {
2986
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
2987
+ mutedAt?: number | undefined;
2988
+ }>>;
2989
+ autodocs: ZodOptional<ZodObject<{
2990
+ status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
2991
+ mutedAt: ZodOptional<ZodNumber>;
2992
+ }, "strict", ZodTypeAny, {
2993
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
2994
+ mutedAt?: number | undefined;
2995
+ }, {
2996
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
2997
+ mutedAt?: number | undefined;
2998
+ }>>;
2999
+ ciTests: ZodOptional<ZodObject<{
3000
+ status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
3001
+ mutedAt: ZodOptional<ZodNumber>;
3002
+ }, "strict", ZodTypeAny, {
3003
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3004
+ mutedAt?: number | undefined;
3005
+ }, {
3006
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3007
+ mutedAt?: number | undefined;
3008
+ }>>;
3009
+ controls: ZodOptional<ZodObject<{
3010
+ status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
3011
+ mutedAt: ZodOptional<ZodNumber>;
3012
+ }, "strict", ZodTypeAny, {
3013
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3014
+ mutedAt?: number | undefined;
3015
+ }, {
3016
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3017
+ mutedAt?: number | undefined;
3018
+ }>>;
3019
+ coverage: ZodOptional<ZodObject<{
3020
+ status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
3021
+ mutedAt: ZodOptional<ZodNumber>;
3022
+ }, "strict", ZodTypeAny, {
3023
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3024
+ mutedAt?: number | undefined;
3025
+ }, {
3026
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3027
+ mutedAt?: number | undefined;
3028
+ }>>;
3029
+ guidedTour: ZodOptional<ZodObject<{
3030
+ status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
3031
+ mutedAt: ZodOptional<ZodNumber>;
3032
+ }, "strict", ZodTypeAny, {
3033
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3034
+ mutedAt?: number | undefined;
3035
+ }, {
3036
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3037
+ mutedAt?: number | undefined;
3038
+ }>>;
3039
+ installA11y: ZodOptional<ZodObject<{
3040
+ status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
3041
+ mutedAt: ZodOptional<ZodNumber>;
3042
+ }, "strict", ZodTypeAny, {
3043
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3044
+ mutedAt?: number | undefined;
3045
+ }, {
3046
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3047
+ mutedAt?: number | undefined;
3048
+ }>>;
3049
+ installChromatic: ZodOptional<ZodObject<{
3050
+ status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
3051
+ mutedAt: ZodOptional<ZodNumber>;
3052
+ }, "strict", ZodTypeAny, {
3053
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3054
+ mutedAt?: number | undefined;
3055
+ }, {
3056
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3057
+ mutedAt?: number | undefined;
3058
+ }>>;
3059
+ installDocs: ZodOptional<ZodObject<{
3060
+ status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
3061
+ mutedAt: ZodOptional<ZodNumber>;
3062
+ }, "strict", ZodTypeAny, {
3063
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3064
+ mutedAt?: number | undefined;
3065
+ }, {
3066
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3067
+ mutedAt?: number | undefined;
3068
+ }>>;
3069
+ installVitest: ZodOptional<ZodObject<{
3070
+ status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
3071
+ mutedAt: ZodOptional<ZodNumber>;
3072
+ }, "strict", ZodTypeAny, {
3073
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3074
+ mutedAt?: number | undefined;
3075
+ }, {
3076
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3077
+ mutedAt?: number | undefined;
3078
+ }>>;
3079
+ mdxDocs: ZodOptional<ZodObject<{
3080
+ status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
3081
+ mutedAt: ZodOptional<ZodNumber>;
3082
+ }, "strict", ZodTypeAny, {
3083
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3084
+ mutedAt?: number | undefined;
3085
+ }, {
3086
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3087
+ mutedAt?: number | undefined;
3088
+ }>>;
3089
+ moreComponents: ZodOptional<ZodObject<{
3090
+ status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
3091
+ mutedAt: ZodOptional<ZodNumber>;
3092
+ }, "strict", ZodTypeAny, {
3093
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3094
+ mutedAt?: number | undefined;
3095
+ }, {
3096
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3097
+ mutedAt?: number | undefined;
3098
+ }>>;
3099
+ moreStories: ZodOptional<ZodObject<{
3100
+ status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
3101
+ mutedAt: ZodOptional<ZodNumber>;
3102
+ }, "strict", ZodTypeAny, {
3103
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3104
+ mutedAt?: number | undefined;
3105
+ }, {
3106
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3107
+ mutedAt?: number | undefined;
3108
+ }>>;
3109
+ onboardingSurvey: ZodOptional<ZodObject<{
3110
+ status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
3111
+ mutedAt: ZodOptional<ZodNumber>;
3112
+ }, "strict", ZodTypeAny, {
3113
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3114
+ mutedAt?: number | undefined;
3115
+ }, {
3116
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3117
+ mutedAt?: number | undefined;
3118
+ }>>;
3119
+ organizeStories: ZodOptional<ZodObject<{
3120
+ status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
3121
+ mutedAt: ZodOptional<ZodNumber>;
3122
+ }, "strict", ZodTypeAny, {
3123
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3124
+ mutedAt?: number | undefined;
3125
+ }, {
3126
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3127
+ mutedAt?: number | undefined;
3128
+ }>>;
3129
+ publishStorybook: ZodOptional<ZodObject<{
3130
+ status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
3131
+ mutedAt: ZodOptional<ZodNumber>;
3132
+ }, "strict", ZodTypeAny, {
3133
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3134
+ mutedAt?: number | undefined;
3135
+ }, {
3136
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3137
+ mutedAt?: number | undefined;
3138
+ }>>;
3139
+ renderComponent: ZodOptional<ZodObject<{
3140
+ status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
3141
+ mutedAt: ZodOptional<ZodNumber>;
3142
+ }, "strict", ZodTypeAny, {
3143
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3144
+ mutedAt?: number | undefined;
3145
+ }, {
3146
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3147
+ mutedAt?: number | undefined;
3148
+ }>>;
3149
+ runTests: ZodOptional<ZodObject<{
3150
+ status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
3151
+ mutedAt: ZodOptional<ZodNumber>;
3152
+ }, "strict", ZodTypeAny, {
3153
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3154
+ mutedAt?: number | undefined;
3155
+ }, {
3156
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3157
+ mutedAt?: number | undefined;
3158
+ }>>;
3159
+ viewports: ZodOptional<ZodObject<{
3160
+ status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
3161
+ mutedAt: ZodOptional<ZodNumber>;
3162
+ }, "strict", ZodTypeAny, {
3163
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3164
+ mutedAt?: number | undefined;
3165
+ }, {
3166
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3167
+ mutedAt?: number | undefined;
3168
+ }>>;
3169
+ visualTests: ZodOptional<ZodObject<{
3170
+ status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
3171
+ mutedAt: ZodOptional<ZodNumber>;
3172
+ }, "strict", ZodTypeAny, {
3173
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3174
+ mutedAt?: number | undefined;
3175
+ }, {
3176
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3177
+ mutedAt?: number | undefined;
3178
+ }>>;
3179
+ whatsNewStorybook10: ZodOptional<ZodObject<{
3180
+ status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
3181
+ mutedAt: ZodOptional<ZodNumber>;
3182
+ }, "strict", ZodTypeAny, {
3183
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3184
+ mutedAt?: number | undefined;
3185
+ }, {
3186
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3187
+ mutedAt?: number | undefined;
3188
+ }>>;
3189
+ writeInteractions: ZodOptional<ZodObject<{
3190
+ status: ZodOptional<ZodEnum<["open", "accepted", "done", "skipped"]>>;
3191
+ mutedAt: ZodOptional<ZodNumber>;
3192
+ }, "strict", ZodTypeAny, {
3193
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3194
+ mutedAt?: number | undefined;
3195
+ }, {
3196
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3197
+ mutedAt?: number | undefined;
3198
+ }>>;
3199
+ }, "strip", ZodTypeAny, {
3200
+ controls?: {
3201
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3202
+ mutedAt?: number | undefined;
3203
+ } | undefined;
3204
+ autodocs?: {
3205
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3206
+ mutedAt?: number | undefined;
3207
+ } | undefined;
3208
+ accessibilityTests?: {
3209
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3210
+ mutedAt?: number | undefined;
3211
+ } | undefined;
3212
+ ciTests?: {
3213
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3214
+ mutedAt?: number | undefined;
3215
+ } | undefined;
3216
+ coverage?: {
3217
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3218
+ mutedAt?: number | undefined;
3219
+ } | undefined;
3220
+ guidedTour?: {
3221
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3222
+ mutedAt?: number | undefined;
3223
+ } | undefined;
3224
+ installA11y?: {
3225
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3226
+ mutedAt?: number | undefined;
3227
+ } | undefined;
3228
+ installChromatic?: {
3229
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3230
+ mutedAt?: number | undefined;
3231
+ } | undefined;
3232
+ installDocs?: {
3233
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3234
+ mutedAt?: number | undefined;
3235
+ } | undefined;
3236
+ installVitest?: {
3237
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3238
+ mutedAt?: number | undefined;
3239
+ } | undefined;
3240
+ mdxDocs?: {
3241
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3242
+ mutedAt?: number | undefined;
3243
+ } | undefined;
3244
+ moreComponents?: {
3245
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3246
+ mutedAt?: number | undefined;
3247
+ } | undefined;
3248
+ moreStories?: {
3249
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3250
+ mutedAt?: number | undefined;
3251
+ } | undefined;
3252
+ onboardingSurvey?: {
3253
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3254
+ mutedAt?: number | undefined;
3255
+ } | undefined;
3256
+ organizeStories?: {
3257
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3258
+ mutedAt?: number | undefined;
3259
+ } | undefined;
3260
+ publishStorybook?: {
3261
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3262
+ mutedAt?: number | undefined;
3263
+ } | undefined;
3264
+ renderComponent?: {
3265
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3266
+ mutedAt?: number | undefined;
3267
+ } | undefined;
3268
+ runTests?: {
3269
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3270
+ mutedAt?: number | undefined;
3271
+ } | undefined;
3272
+ viewports?: {
3273
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3274
+ mutedAt?: number | undefined;
3275
+ } | undefined;
3276
+ visualTests?: {
3277
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3278
+ mutedAt?: number | undefined;
3279
+ } | undefined;
3280
+ whatsNewStorybook10?: {
3281
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3282
+ mutedAt?: number | undefined;
3283
+ } | undefined;
3284
+ writeInteractions?: {
3285
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3286
+ mutedAt?: number | undefined;
3287
+ } | undefined;
3288
+ }, {
3289
+ controls?: {
3290
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3291
+ mutedAt?: number | undefined;
3292
+ } | undefined;
3293
+ autodocs?: {
3294
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3295
+ mutedAt?: number | undefined;
3296
+ } | undefined;
3297
+ accessibilityTests?: {
3298
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3299
+ mutedAt?: number | undefined;
3300
+ } | undefined;
3301
+ ciTests?: {
3302
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3303
+ mutedAt?: number | undefined;
3304
+ } | undefined;
3305
+ coverage?: {
3306
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3307
+ mutedAt?: number | undefined;
3308
+ } | undefined;
3309
+ guidedTour?: {
3310
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3311
+ mutedAt?: number | undefined;
3312
+ } | undefined;
3313
+ installA11y?: {
3314
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3315
+ mutedAt?: number | undefined;
3316
+ } | undefined;
3317
+ installChromatic?: {
3318
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3319
+ mutedAt?: number | undefined;
3320
+ } | undefined;
3321
+ installDocs?: {
3322
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3323
+ mutedAt?: number | undefined;
3324
+ } | undefined;
3325
+ installVitest?: {
3326
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3327
+ mutedAt?: number | undefined;
3328
+ } | undefined;
3329
+ mdxDocs?: {
3330
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3331
+ mutedAt?: number | undefined;
3332
+ } | undefined;
3333
+ moreComponents?: {
3334
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3335
+ mutedAt?: number | undefined;
3336
+ } | undefined;
3337
+ moreStories?: {
3338
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3339
+ mutedAt?: number | undefined;
3340
+ } | undefined;
3341
+ onboardingSurvey?: {
3342
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3343
+ mutedAt?: number | undefined;
3344
+ } | undefined;
3345
+ organizeStories?: {
3346
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3347
+ mutedAt?: number | undefined;
3348
+ } | undefined;
3349
+ publishStorybook?: {
3350
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3351
+ mutedAt?: number | undefined;
3352
+ } | undefined;
3353
+ renderComponent?: {
3354
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3355
+ mutedAt?: number | undefined;
3356
+ } | undefined;
3357
+ runTests?: {
3358
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3359
+ mutedAt?: number | undefined;
3360
+ } | undefined;
3361
+ viewports?: {
3362
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3363
+ mutedAt?: number | undefined;
3364
+ } | undefined;
3365
+ visualTests?: {
3366
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3367
+ mutedAt?: number | undefined;
3368
+ } | undefined;
3369
+ whatsNewStorybook10?: {
3370
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3371
+ mutedAt?: number | undefined;
3372
+ } | undefined;
3373
+ writeInteractions?: {
3374
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3375
+ mutedAt?: number | undefined;
3376
+ } | undefined;
3377
+ }>>;
3378
+ widget: ZodOptional<ZodObject<{
3379
+ disable: ZodOptional<ZodBoolean>;
3380
+ }, "strip", ZodTypeAny, {
3381
+ disable?: boolean | undefined;
3382
+ }, {
3383
+ disable?: boolean | undefined;
3384
+ }>>;
3385
+ }, "strip", ZodTypeAny, {
3386
+ items?: {
3387
+ controls?: {
3388
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3389
+ mutedAt?: number | undefined;
3390
+ } | undefined;
3391
+ autodocs?: {
3392
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3393
+ mutedAt?: number | undefined;
3394
+ } | undefined;
3395
+ accessibilityTests?: {
3396
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3397
+ mutedAt?: number | undefined;
3398
+ } | undefined;
3399
+ ciTests?: {
3400
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3401
+ mutedAt?: number | undefined;
3402
+ } | undefined;
3403
+ coverage?: {
3404
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3405
+ mutedAt?: number | undefined;
3406
+ } | undefined;
3407
+ guidedTour?: {
3408
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3409
+ mutedAt?: number | undefined;
3410
+ } | undefined;
3411
+ installA11y?: {
3412
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3413
+ mutedAt?: number | undefined;
3414
+ } | undefined;
3415
+ installChromatic?: {
3416
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3417
+ mutedAt?: number | undefined;
3418
+ } | undefined;
3419
+ installDocs?: {
3420
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3421
+ mutedAt?: number | undefined;
3422
+ } | undefined;
3423
+ installVitest?: {
3424
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3425
+ mutedAt?: number | undefined;
3426
+ } | undefined;
3427
+ mdxDocs?: {
3428
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3429
+ mutedAt?: number | undefined;
3430
+ } | undefined;
3431
+ moreComponents?: {
3432
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3433
+ mutedAt?: number | undefined;
3434
+ } | undefined;
3435
+ moreStories?: {
3436
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3437
+ mutedAt?: number | undefined;
3438
+ } | undefined;
3439
+ onboardingSurvey?: {
3440
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3441
+ mutedAt?: number | undefined;
3442
+ } | undefined;
3443
+ organizeStories?: {
3444
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3445
+ mutedAt?: number | undefined;
3446
+ } | undefined;
3447
+ publishStorybook?: {
3448
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3449
+ mutedAt?: number | undefined;
3450
+ } | undefined;
3451
+ renderComponent?: {
3452
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3453
+ mutedAt?: number | undefined;
3454
+ } | undefined;
3455
+ runTests?: {
3456
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3457
+ mutedAt?: number | undefined;
3458
+ } | undefined;
3459
+ viewports?: {
3460
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3461
+ mutedAt?: number | undefined;
3462
+ } | undefined;
3463
+ visualTests?: {
3464
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3465
+ mutedAt?: number | undefined;
3466
+ } | undefined;
3467
+ whatsNewStorybook10?: {
3468
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3469
+ mutedAt?: number | undefined;
3470
+ } | undefined;
3471
+ writeInteractions?: {
3472
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3473
+ mutedAt?: number | undefined;
3474
+ } | undefined;
3475
+ } | undefined;
3476
+ widget?: {
3477
+ disable?: boolean | undefined;
3478
+ } | undefined;
3479
+ }, {
3480
+ items?: {
3481
+ controls?: {
3482
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3483
+ mutedAt?: number | undefined;
3484
+ } | undefined;
3485
+ autodocs?: {
3486
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3487
+ mutedAt?: number | undefined;
3488
+ } | undefined;
3489
+ accessibilityTests?: {
3490
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3491
+ mutedAt?: number | undefined;
3492
+ } | undefined;
3493
+ ciTests?: {
3494
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3495
+ mutedAt?: number | undefined;
3496
+ } | undefined;
3497
+ coverage?: {
3498
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3499
+ mutedAt?: number | undefined;
3500
+ } | undefined;
3501
+ guidedTour?: {
3502
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3503
+ mutedAt?: number | undefined;
3504
+ } | undefined;
3505
+ installA11y?: {
3506
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3507
+ mutedAt?: number | undefined;
3508
+ } | undefined;
3509
+ installChromatic?: {
3510
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3511
+ mutedAt?: number | undefined;
3512
+ } | undefined;
3513
+ installDocs?: {
3514
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3515
+ mutedAt?: number | undefined;
3516
+ } | undefined;
3517
+ installVitest?: {
3518
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3519
+ mutedAt?: number | undefined;
3520
+ } | undefined;
3521
+ mdxDocs?: {
3522
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3523
+ mutedAt?: number | undefined;
3524
+ } | undefined;
3525
+ moreComponents?: {
3526
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3527
+ mutedAt?: number | undefined;
3528
+ } | undefined;
3529
+ moreStories?: {
3530
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3531
+ mutedAt?: number | undefined;
3532
+ } | undefined;
3533
+ onboardingSurvey?: {
3534
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3535
+ mutedAt?: number | undefined;
3536
+ } | undefined;
3537
+ organizeStories?: {
3538
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3539
+ mutedAt?: number | undefined;
3540
+ } | undefined;
3541
+ publishStorybook?: {
3542
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3543
+ mutedAt?: number | undefined;
3544
+ } | undefined;
3545
+ renderComponent?: {
3546
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3547
+ mutedAt?: number | undefined;
3548
+ } | undefined;
3549
+ runTests?: {
3550
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3551
+ mutedAt?: number | undefined;
3552
+ } | undefined;
3553
+ viewports?: {
3554
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3555
+ mutedAt?: number | undefined;
3556
+ } | undefined;
3557
+ visualTests?: {
3558
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3559
+ mutedAt?: number | undefined;
3560
+ } | undefined;
3561
+ whatsNewStorybook10?: {
3562
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3563
+ mutedAt?: number | undefined;
3564
+ } | undefined;
3565
+ writeInteractions?: {
3566
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3567
+ mutedAt?: number | undefined;
3568
+ } | undefined;
3569
+ } | undefined;
3570
+ widget?: {
3571
+ disable?: boolean | undefined;
3572
+ } | undefined;
3573
+ }>>;
3574
+ }, "strip", ZodTypeAny, {
3575
+ version: number;
3576
+ init?: {
3577
+ skipOnboarding?: boolean | undefined;
3578
+ } | undefined;
3579
+ userSince?: number | undefined;
3580
+ checklist?: {
3581
+ items?: {
3582
+ controls?: {
3583
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3584
+ mutedAt?: number | undefined;
3585
+ } | undefined;
3586
+ autodocs?: {
3587
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3588
+ mutedAt?: number | undefined;
3589
+ } | undefined;
3590
+ accessibilityTests?: {
3591
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3592
+ mutedAt?: number | undefined;
3593
+ } | undefined;
3594
+ ciTests?: {
3595
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3596
+ mutedAt?: number | undefined;
3597
+ } | undefined;
3598
+ coverage?: {
3599
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3600
+ mutedAt?: number | undefined;
3601
+ } | undefined;
3602
+ guidedTour?: {
3603
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3604
+ mutedAt?: number | undefined;
3605
+ } | undefined;
3606
+ installA11y?: {
3607
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3608
+ mutedAt?: number | undefined;
3609
+ } | undefined;
3610
+ installChromatic?: {
3611
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3612
+ mutedAt?: number | undefined;
3613
+ } | undefined;
3614
+ installDocs?: {
3615
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3616
+ mutedAt?: number | undefined;
3617
+ } | undefined;
3618
+ installVitest?: {
3619
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3620
+ mutedAt?: number | undefined;
3621
+ } | undefined;
3622
+ mdxDocs?: {
3623
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3624
+ mutedAt?: number | undefined;
3625
+ } | undefined;
3626
+ moreComponents?: {
3627
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3628
+ mutedAt?: number | undefined;
3629
+ } | undefined;
3630
+ moreStories?: {
3631
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3632
+ mutedAt?: number | undefined;
3633
+ } | undefined;
3634
+ onboardingSurvey?: {
3635
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3636
+ mutedAt?: number | undefined;
3637
+ } | undefined;
3638
+ organizeStories?: {
3639
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3640
+ mutedAt?: number | undefined;
3641
+ } | undefined;
3642
+ publishStorybook?: {
3643
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3644
+ mutedAt?: number | undefined;
3645
+ } | undefined;
3646
+ renderComponent?: {
3647
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3648
+ mutedAt?: number | undefined;
3649
+ } | undefined;
3650
+ runTests?: {
3651
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3652
+ mutedAt?: number | undefined;
3653
+ } | undefined;
3654
+ viewports?: {
3655
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3656
+ mutedAt?: number | undefined;
3657
+ } | undefined;
3658
+ visualTests?: {
3659
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3660
+ mutedAt?: number | undefined;
3661
+ } | undefined;
3662
+ whatsNewStorybook10?: {
3663
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3664
+ mutedAt?: number | undefined;
3665
+ } | undefined;
3666
+ writeInteractions?: {
3667
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3668
+ mutedAt?: number | undefined;
3669
+ } | undefined;
3670
+ } | undefined;
3671
+ widget?: {
3672
+ disable?: boolean | undefined;
3673
+ } | undefined;
3674
+ } | undefined;
3675
+ }, {
3676
+ version: number;
3677
+ init?: {
3678
+ skipOnboarding?: boolean | undefined;
3679
+ } | undefined;
3680
+ userSince?: number | undefined;
3681
+ checklist?: {
3682
+ items?: {
3683
+ controls?: {
3684
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3685
+ mutedAt?: number | undefined;
3686
+ } | undefined;
3687
+ autodocs?: {
3688
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3689
+ mutedAt?: number | undefined;
3690
+ } | undefined;
3691
+ accessibilityTests?: {
3692
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3693
+ mutedAt?: number | undefined;
3694
+ } | undefined;
3695
+ ciTests?: {
3696
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3697
+ mutedAt?: number | undefined;
3698
+ } | undefined;
3699
+ coverage?: {
3700
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3701
+ mutedAt?: number | undefined;
3702
+ } | undefined;
3703
+ guidedTour?: {
3704
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3705
+ mutedAt?: number | undefined;
3706
+ } | undefined;
3707
+ installA11y?: {
3708
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3709
+ mutedAt?: number | undefined;
3710
+ } | undefined;
3711
+ installChromatic?: {
3712
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3713
+ mutedAt?: number | undefined;
3714
+ } | undefined;
3715
+ installDocs?: {
3716
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3717
+ mutedAt?: number | undefined;
3718
+ } | undefined;
3719
+ installVitest?: {
3720
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3721
+ mutedAt?: number | undefined;
3722
+ } | undefined;
3723
+ mdxDocs?: {
3724
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3725
+ mutedAt?: number | undefined;
3726
+ } | undefined;
3727
+ moreComponents?: {
3728
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3729
+ mutedAt?: number | undefined;
3730
+ } | undefined;
3731
+ moreStories?: {
3732
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3733
+ mutedAt?: number | undefined;
3734
+ } | undefined;
3735
+ onboardingSurvey?: {
3736
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3737
+ mutedAt?: number | undefined;
3738
+ } | undefined;
3739
+ organizeStories?: {
3740
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3741
+ mutedAt?: number | undefined;
3742
+ } | undefined;
3743
+ publishStorybook?: {
3744
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3745
+ mutedAt?: number | undefined;
3746
+ } | undefined;
3747
+ renderComponent?: {
3748
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3749
+ mutedAt?: number | undefined;
3750
+ } | undefined;
3751
+ runTests?: {
3752
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3753
+ mutedAt?: number | undefined;
3754
+ } | undefined;
3755
+ viewports?: {
3756
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3757
+ mutedAt?: number | undefined;
3758
+ } | undefined;
3759
+ visualTests?: {
3760
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3761
+ mutedAt?: number | undefined;
3762
+ } | undefined;
3763
+ whatsNewStorybook10?: {
3764
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3765
+ mutedAt?: number | undefined;
3766
+ } | undefined;
3767
+ writeInteractions?: {
3768
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3769
+ mutedAt?: number | undefined;
3770
+ } | undefined;
3771
+ } | undefined;
3772
+ widget?: {
3773
+ disable?: boolean | undefined;
3774
+ } | undefined;
3775
+ } | undefined;
3776
+ }>;
3777
+ declare function globalSettings(filePath?: string): Promise<Settings>;
3778
+ /**
3779
+ * A class for reading and writing settings from a JSON file. Supports nested settings with dot
3780
+ * notation.
3781
+ */
3782
+ declare class Settings {
3783
+ private filePath;
3784
+ value: TypeOf<typeof userSettingSchema>;
3785
+ /**
3786
+ * Create a new Settings instance
3787
+ *
3788
+ * @param filePath Path to the JSON settings file
3789
+ * @param value Loaded value of settings
3790
+ */
3791
+ constructor(filePath: string, value: TypeOf<typeof userSettingSchema>);
3792
+ /** Save settings to the file */
3793
+ save(): Promise<void>;
3794
+ }
3795
+
3796
+ /** ChecklistState is the persisted state, which may be incomplete */
3797
+ type ChecklistState = NonNullable<Awaited<ReturnType<typeof globalSettings>>['value']['checklist']>;
3798
+ /** Store uses initialState to ensure all items are present */
3799
+ type StoreState = Required<Omit<ChecklistState, 'items'>> & {
3800
+ items: NonNullable<Required<ChecklistState['items']>>;
3801
+ loaded?: boolean;
3802
+ };
3803
+ type ItemId = keyof StoreState['items'];
3804
+ type StoreEvent = {
3805
+ type: 'accept';
3806
+ payload: ItemId;
3807
+ } | {
3808
+ type: 'done';
3809
+ payload: ItemId;
3810
+ } | {
3811
+ type: 'skip';
3812
+ payload: ItemId;
3813
+ } | {
3814
+ type: 'reset';
3815
+ payload: ItemId;
3816
+ } | {
3817
+ type: 'mute';
3818
+ payload: Array<ItemId>;
3819
+ } | {
3820
+ type: 'disable';
3821
+ payload: boolean;
3822
+ };
3823
+
3824
+ declare const universalChecklistStore: UniversalStore<StoreState, StoreEvent>;
3825
+ declare const checklistStore: {
3826
+ getValue: (id: ItemId) => {
3827
+ status?: "done" | "open" | "accepted" | "skipped" | undefined;
3828
+ mutedAt?: number | undefined;
3829
+ };
3830
+ accept: (id: ItemId) => void;
3831
+ done: (id: ItemId) => void;
3832
+ skip: (id: ItemId) => void;
3833
+ reset: (id: ItemId) => void;
3834
+ mute: (itemIds: Array<ItemId>) => void;
3835
+ disable: (value: boolean) => void;
3836
+ };
3837
+
3838
+ export { type API, type API_EventMap, type API_KeyCollection, ActiveTabs, AddonStore, type Combo, ManagerConsumer as Consumer, type KeyboardEventLike, ManagerContext, type ManagerProviderProps, ManagerProvider as Provider, RequestResponseError, type State, type Options as StoreOptions, addons, combineParameters, controlOrMetaKey, controlOrMetaSymbol, eventMatchesShortcut, eventToShortcut, MockUniversalStore as experimental_MockUniversalStore, UniversalStore as experimental_UniversalStore, getStatusStoreByTypeId as experimental_getStatusStore, getTestProviderStoreById as experimental_getTestProviderStore, experimental_requestResponse, useStatusStore as experimental_useStatusStore, useTestProviderStore as experimental_useTestProviderStore, useUniversalStore as experimental_useUniversalStore, checklistStore as internal_checklistStore, fullStatusStore as internal_fullStatusStore, fullTestProviderStore as internal_fullTestProviderStore, universalChecklistStore as internal_universalChecklistStore, universalStatusStore as internal_universalStatusStore, universalTestProviderStore as internal_universalTestProviderStore, isMacLike, isShortcutTaken, keyToSymbol, _default as merge, mockChannel, optionOrAltSymbol, shortcutMatchesShortcut, shortcutToAriaKeyshortcuts, shortcutToHumanString, typesX as types, useAddonState, useArgTypes, useArgs, useChannel, useGlobalTypes, useGlobals, useParameter, useSharedState, useStoryPrepared, useStorybookApi, useStorybookState };