@allyhub/sdk 0.8.0 → 0.10.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 (497) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/NOTICE +46 -49
  3. package/dist/dom.d.ts +1 -209
  4. package/dist/dom.js +1 -1
  5. package/dist/image.d.ts +2 -0
  6. package/dist/image.js +2 -0
  7. package/dist/index.d.ts +1 -21
  8. package/dist/index.js +1 -1
  9. package/dist/media.d.ts +1 -5
  10. package/dist/media.js +1 -1
  11. package/dist/node_modules/@allyhub/audio/dist/levels.d.ts +4 -5
  12. package/dist/node_modules/@allyhub/audio/dist/levels.js +1 -1
  13. package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.d.ts +1 -6
  14. package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.js +1 -1
  15. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  16. package/dist/node_modules/@allyhub/chart/dist/chart-file.js +1 -1
  17. package/dist/node_modules/@allyhub/chart/dist/chart-xml.d.ts +4 -1
  18. package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
  19. package/dist/node_modules/@allyhub/chart/dist/chart.d.ts +22 -0
  20. package/dist/node_modules/@allyhub/chart/dist/chart.js +1 -1
  21. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  22. package/dist/node_modules/@allyhub/diagnostics/LICENSE +241 -0
  23. package/dist/node_modules/@allyhub/diagnostics/dist/fact.d.ts +37 -0
  24. package/dist/node_modules/@allyhub/diagnostics/dist/fact.js +2 -0
  25. package/dist/node_modules/@allyhub/diagnostics/dist/index.d.ts +4 -0
  26. package/dist/node_modules/@allyhub/diagnostics/dist/index.js +2 -0
  27. package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +43 -0
  28. package/dist/node_modules/@allyhub/diagnostics/dist/problem.js +2 -0
  29. package/dist/node_modules/@allyhub/diagnostics/dist/rules.d.ts +30 -0
  30. package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +2 -0
  31. package/dist/node_modules/@allyhub/diagnostics/package.json +14 -0
  32. package/dist/node_modules/@allyhub/formats/dist/contributed.d.ts +126 -0
  33. package/dist/node_modules/@allyhub/formats/dist/contributed.js +2 -0
  34. package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
  35. package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +7 -12
  36. package/dist/node_modules/@allyhub/formats/dist/data/reference.js +1 -1
  37. package/dist/node_modules/@allyhub/formats/dist/data/script.d.ts +9 -4
  38. package/dist/node_modules/@allyhub/formats/dist/data/script.js +1 -1
  39. package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +107 -83
  40. package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
  41. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +185 -8
  42. package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
  43. package/dist/node_modules/@allyhub/formats/dist/data/website.d.ts +2 -1
  44. package/dist/node_modules/@allyhub/formats/dist/data/website.js +1 -1
  45. package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
  46. package/dist/node_modules/@allyhub/formats/dist/data/work.js +2 -0
  47. package/dist/node_modules/@allyhub/formats/dist/extension.d.ts +91 -0
  48. package/dist/node_modules/@allyhub/formats/dist/extension.js +2 -0
  49. package/dist/node_modules/@allyhub/formats/dist/files.d.ts +51 -0
  50. package/dist/node_modules/@allyhub/formats/dist/files.js +2 -0
  51. package/dist/node_modules/@allyhub/formats/dist/index.d.ts +5 -1
  52. package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
  53. package/dist/node_modules/@allyhub/formats/dist/items.d.ts +226 -90
  54. package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
  55. package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +7 -1
  56. package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
  57. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +96 -42
  58. package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
  59. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  60. package/dist/node_modules/@allyhub/image-draw/LICENSE +241 -0
  61. package/dist/node_modules/@allyhub/image-draw/dist/context.d.ts +5 -0
  62. package/dist/node_modules/@allyhub/image-draw/dist/context.js +2 -0
  63. package/dist/node_modules/@allyhub/image-draw/dist/contrast.d.ts +13 -0
  64. package/dist/node_modules/@allyhub/image-draw/dist/contrast.js +2 -0
  65. package/dist/node_modules/@allyhub/image-draw/dist/env.d.ts +112 -0
  66. package/dist/node_modules/@allyhub/image-draw/dist/env.js +2 -0
  67. package/dist/node_modules/@allyhub/image-draw/dist/errors.d.ts +20 -0
  68. package/dist/node_modules/@allyhub/image-draw/dist/errors.js +2 -0
  69. package/dist/node_modules/@allyhub/image-draw/dist/fonts.d.ts +110 -0
  70. package/dist/node_modules/@allyhub/image-draw/dist/fonts.js +2 -0
  71. package/dist/node_modules/@allyhub/image-draw/dist/guards.d.ts +32 -0
  72. package/dist/node_modules/@allyhub/image-draw/dist/guards.js +2 -0
  73. package/dist/node_modules/@allyhub/image-draw/dist/hash.d.ts +3 -0
  74. package/dist/node_modules/@allyhub/image-draw/dist/hash.js +2 -0
  75. package/dist/node_modules/@allyhub/image-draw/dist/inspect.d.ts +113 -0
  76. package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +3 -0
  77. package/dist/node_modules/@allyhub/image-draw/dist/layer-style.d.ts +151 -0
  78. package/dist/node_modules/@allyhub/image-draw/dist/layer-style.js +2 -0
  79. package/dist/node_modules/@allyhub/image-draw/dist/paint.d.ts +29 -0
  80. package/dist/node_modules/@allyhub/image-draw/dist/paint.js +2 -0
  81. package/dist/node_modules/@allyhub/image-draw/dist/pictures.d.ts +39 -0
  82. package/dist/node_modules/@allyhub/image-draw/dist/pictures.js +2 -0
  83. package/dist/node_modules/@allyhub/image-draw/dist/plan.d.ts +52 -0
  84. package/dist/node_modules/@allyhub/image-draw/dist/plan.js +2 -0
  85. package/dist/node_modules/@allyhub/image-draw/dist/reads.d.ts +145 -0
  86. package/dist/node_modules/@allyhub/image-draw/dist/reads.js +2 -0
  87. package/dist/node_modules/@allyhub/image-draw/dist/shape-path.d.ts +26 -0
  88. package/dist/node_modules/@allyhub/image-draw/dist/shape-path.js +2 -0
  89. package/dist/node_modules/@allyhub/image-draw/dist/stage.d.ts +56 -0
  90. package/dist/node_modules/@allyhub/image-draw/dist/stage.js +2 -0
  91. package/dist/node_modules/@allyhub/image-draw/dist/styles.d.ts +35 -0
  92. package/dist/node_modules/@allyhub/image-draw/dist/styles.js +2 -0
  93. package/dist/node_modules/@allyhub/image-draw/dist/tone.d.ts +53 -0
  94. package/dist/node_modules/@allyhub/image-draw/dist/tone.js +2 -0
  95. package/dist/node_modules/@allyhub/image-draw/package.json +14 -0
  96. package/dist/node_modules/@allyhub/image-measure/LICENSE +241 -0
  97. package/dist/node_modules/@allyhub/image-measure/dist/contrast.d.ts +43 -0
  98. package/dist/node_modules/@allyhub/image-measure/dist/contrast.js +2 -0
  99. package/dist/node_modules/@allyhub/image-measure/dist/layout.d.ts +186 -0
  100. package/dist/node_modules/@allyhub/image-measure/dist/layout.js +5 -0
  101. package/dist/node_modules/@allyhub/image-measure/package.json +14 -0
  102. package/dist/node_modules/@allyhub/image-sdk/LICENSE +241 -0
  103. package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.d.ts +13 -0
  104. package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.js +2 -0
  105. package/dist/{define.d.ts → node_modules/@allyhub/image-sdk/dist/define.d.ts} +21 -4
  106. package/dist/node_modules/@allyhub/image-sdk/dist/define.js +2 -0
  107. package/dist/node_modules/@allyhub/image-sdk/dist/dom.d.ts +210 -0
  108. package/dist/node_modules/@allyhub/image-sdk/dist/dom.js +2 -0
  109. package/dist/node_modules/@allyhub/image-sdk/dist/fill.d.ts +21 -0
  110. package/dist/node_modules/@allyhub/image-sdk/dist/fill.js +2 -0
  111. package/dist/node_modules/@allyhub/image-sdk/dist/group.d.ts +17 -0
  112. package/dist/node_modules/@allyhub/image-sdk/dist/group.js +2 -0
  113. package/dist/node_modules/@allyhub/image-sdk/dist/index.d.ts +166 -0
  114. package/dist/node_modules/@allyhub/image-sdk/dist/index.js +2 -0
  115. package/dist/node_modules/@allyhub/image-sdk/dist/media.d.ts +6 -0
  116. package/dist/node_modules/@allyhub/image-sdk/dist/media.js +2 -0
  117. package/dist/{messages.d.ts → node_modules/@allyhub/image-sdk/dist/messages.d.ts} +1 -1
  118. package/dist/node_modules/@allyhub/image-sdk/dist/picture.d.ts +59 -0
  119. package/dist/node_modules/@allyhub/image-sdk/dist/picture.js +2 -0
  120. package/dist/{props.d.ts → node_modules/@allyhub/image-sdk/dist/props.d.ts} +4 -4
  121. package/dist/node_modules/@allyhub/image-sdk/dist/shape.d.ts +34 -0
  122. package/dist/node_modules/@allyhub/image-sdk/dist/shape.js +2 -0
  123. package/dist/node_modules/@allyhub/image-sdk/dist/stack.d.ts +16 -0
  124. package/dist/node_modules/@allyhub/image-sdk/dist/stack.js +2 -0
  125. package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.d.ts +38 -0
  126. package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.js +2 -0
  127. package/dist/{written.js → node_modules/@allyhub/image-sdk/dist/written.js} +1 -1
  128. package/dist/node_modules/@allyhub/image-sdk/package.json +19 -0
  129. package/dist/node_modules/@allyhub/measure/LICENSE +241 -0
  130. package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +195 -0
  131. package/dist/node_modules/@allyhub/measure/dist/compare.js +2 -0
  132. package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +8 -0
  133. package/dist/node_modules/@allyhub/measure/dist/grain.js +2 -0
  134. package/dist/node_modules/@allyhub/measure/dist/image.d.ts +16 -0
  135. package/dist/node_modules/@allyhub/measure/dist/image.js +2 -0
  136. package/dist/node_modules/@allyhub/measure/dist/index.d.ts +4 -0
  137. package/dist/node_modules/@allyhub/measure/dist/index.js +2 -0
  138. package/dist/node_modules/@allyhub/measure/package.json +13 -0
  139. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.d.ts +4 -1
  140. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.js +1 -1
  141. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.d.ts +15 -1
  142. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +1 -1
  143. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  144. package/dist/node_modules/@allyhub/piece/LICENSE +241 -0
  145. package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.d.ts +1 -9
  146. package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.js +1 -1
  147. package/dist/node_modules/@allyhub/piece/dist/context.d.ts +39 -0
  148. package/dist/node_modules/@allyhub/piece/dist/context.js +2 -0
  149. package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.d.ts +2 -2
  150. package/dist/node_modules/@allyhub/{video-core → piece}/dist/export.d.ts +27 -10
  151. package/dist/node_modules/@allyhub/piece/dist/export.js +2 -0
  152. package/dist/node_modules/@allyhub/{video-core → piece}/dist/formats.d.ts +12 -68
  153. package/dist/node_modules/@allyhub/piece/dist/formats.js +2 -0
  154. package/dist/node_modules/@allyhub/piece/dist/gen.d.ts +104 -0
  155. package/dist/node_modules/@allyhub/piece/dist/index.d.ts +26 -0
  156. package/dist/node_modules/@allyhub/piece/dist/index.js +2 -0
  157. package/dist/node_modules/@allyhub/piece/dist/layer-style.d.ts +1558 -0
  158. package/dist/node_modules/@allyhub/piece/dist/layer-style.js +2 -0
  159. package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +389 -0
  160. package/dist/node_modules/@allyhub/piece/dist/layer.js +2 -0
  161. package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +437 -0
  162. package/dist/node_modules/@allyhub/piece/dist/layout.js +2 -0
  163. package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.d.ts +1 -1
  164. package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.d.ts +39 -9
  165. package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.js +1 -1
  166. package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.d.ts +6 -0
  167. package/dist/node_modules/@allyhub/piece/dist/names.d.ts +26 -0
  168. package/dist/node_modules/@allyhub/piece/dist/names.js +2 -0
  169. package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +21 -0
  170. package/dist/node_modules/@allyhub/piece/dist/page/console.js +2 -0
  171. package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +3 -0
  172. package/dist/node_modules/@allyhub/piece/dist/page/index.js +2 -0
  173. package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +4 -0
  174. package/dist/node_modules/@allyhub/piece/dist/page/locate.js +2 -0
  175. package/dist/node_modules/@allyhub/piece/dist/picture.d.ts +62 -0
  176. package/dist/node_modules/@allyhub/piece/dist/picture.js +2 -0
  177. package/dist/node_modules/@allyhub/piece/dist/piece.d.ts +15 -0
  178. package/dist/node_modules/@allyhub/piece/dist/piece.js +2 -0
  179. package/dist/node_modules/@allyhub/{video-core → piece}/dist/script.d.ts +9 -4
  180. package/dist/node_modules/@allyhub/piece/dist/script.js +2 -0
  181. package/dist/node_modules/@allyhub/piece/dist/source.d.ts +131 -0
  182. package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +291 -0
  183. package/dist/node_modules/@allyhub/piece/dist/stage.js +2 -0
  184. package/dist/node_modules/@allyhub/piece/dist/version.d.ts +15 -0
  185. package/dist/node_modules/@allyhub/piece/dist/version.js +2 -0
  186. package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.d.ts +1 -20
  187. package/dist/node_modules/@allyhub/piece/package.json +18 -0
  188. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +271 -0
  189. package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
  190. package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +3 -10
  191. package/dist/node_modules/@allyhub/protocol/dist/app.js +1 -1
  192. package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +19 -1
  193. package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
  194. package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.d.ts +337 -0
  195. package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.js +2 -0
  196. package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +12 -1
  197. package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
  198. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +155 -0
  199. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  200. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +235 -133
  201. package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
  202. package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +2 -0
  203. package/dist/node_modules/@allyhub/protocol/dist/files.js +1 -1
  204. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +65 -197
  205. package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
  206. package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +8 -0
  207. package/dist/node_modules/@allyhub/protocol/dist/image.js +2 -0
  208. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +6 -0
  209. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  210. package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +6 -6
  211. package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +98 -0
  212. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +2 -0
  213. package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +274 -0
  214. package/dist/node_modules/@allyhub/protocol/dist/mail.js +2 -0
  215. package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +77 -91
  216. package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
  217. package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +59 -0
  218. package/dist/node_modules/@allyhub/protocol/dist/peer.js +2 -0
  219. package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +21 -0
  220. package/dist/node_modules/@allyhub/protocol/dist/place.js +2 -0
  221. package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +125 -0
  222. package/dist/node_modules/@allyhub/protocol/dist/presence.js +2 -0
  223. package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +1 -1
  224. package/dist/node_modules/@allyhub/protocol/dist/routes.js +1 -1
  225. package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +35 -0
  226. package/dist/node_modules/@allyhub/protocol/dist/shape.js +2 -0
  227. package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +2 -8
  228. package/dist/node_modules/@allyhub/protocol/dist/shares.js +1 -1
  229. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +70 -40
  230. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  231. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +224 -177
  232. package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
  233. package/dist/node_modules/@allyhub/protocol/package.json +5 -1
  234. package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
  235. package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +14 -0
  236. package/dist/node_modules/@allyhub/runtimes/dist/declared.js +2 -0
  237. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +15 -0
  238. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.js +2 -0
  239. package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +2 -0
  240. package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
  241. package/dist/node_modules/@allyhub/runtimes/dist/packages.js +3 -3
  242. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +1 -0
  243. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +1 -1
  244. package/dist/node_modules/@allyhub/runtimes/manifest.json +0 -82
  245. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  246. package/dist/node_modules/@allyhub/scenery/dist/define.d.ts +2 -0
  247. package/dist/node_modules/@allyhub/scenery/dist/define.js +1 -1
  248. package/dist/node_modules/@allyhub/scenery/dist/index.d.ts +2 -2
  249. package/dist/node_modules/@allyhub/scenery/dist/index.js +1 -1
  250. package/dist/node_modules/@allyhub/scenery/dist/moire.d.ts +45 -5
  251. package/dist/node_modules/@allyhub/scenery/dist/moire.js +2 -2
  252. package/dist/node_modules/@allyhub/scenery/dist/phone.d.ts +4 -3
  253. package/dist/node_modules/@allyhub/scenery/dist/phone.js +1 -1
  254. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  255. package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
  256. package/dist/node_modules/@allyhub/sheet/dist/api/code.d.ts +4 -4
  257. package/dist/node_modules/@allyhub/sheet/dist/api/code.js +1 -1
  258. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.d.ts +15 -11
  259. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
  260. package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.js +1 -1
  261. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.d.ts +70 -0
  262. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
  263. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.d.ts +6 -0
  264. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.js +1 -1
  265. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.js +1 -1
  266. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.d.ts +3 -1
  267. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.js +1 -1
  268. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.js +1 -1
  269. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.js +1 -1
  270. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.js +1 -1
  271. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.js +1 -1
  272. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.js +1 -1
  273. package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.d.ts +9 -0
  274. package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.js +1 -1
  275. package/dist/node_modules/@allyhub/sheet/dist/calc/server.d.ts +1 -1
  276. package/dist/node_modules/@allyhub/sheet/dist/calc/types.d.ts +6 -0
  277. package/dist/node_modules/@allyhub/sheet/dist/calc/types.js +1 -1
  278. package/dist/node_modules/@allyhub/sheet/dist/chart.d.ts +9 -0
  279. package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
  280. package/dist/node_modules/@allyhub/sheet/dist/export.js +1 -1
  281. package/dist/node_modules/@allyhub/sheet/dist/file.d.ts +5 -0
  282. package/dist/node_modules/@allyhub/sheet/dist/file.js +1 -1
  283. package/dist/node_modules/@allyhub/sheet/dist/formula/ast.d.ts +12 -1
  284. package/dist/node_modules/@allyhub/sheet/dist/formula/move.d.ts +5 -1
  285. package/dist/node_modules/@allyhub/sheet/dist/formula/move.js +1 -1
  286. package/dist/node_modules/@allyhub/sheet/dist/formula/parse.js +1 -1
  287. package/dist/node_modules/@allyhub/sheet/dist/formula/print.js +1 -1
  288. package/dist/node_modules/@allyhub/sheet/dist/generated.d.ts +5 -19
  289. package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
  290. package/dist/node_modules/@allyhub/sheet/dist/import.d.ts +3 -1
  291. package/dist/node_modules/@allyhub/sheet/dist/import.js +1 -1
  292. package/dist/node_modules/@allyhub/sheet/dist/index.d.ts +5 -5
  293. package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
  294. package/dist/node_modules/@allyhub/sheet/dist/inspect.d.ts +88 -3
  295. package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
  296. package/dist/node_modules/@allyhub/sheet/dist/patch.d.ts +1 -1
  297. package/dist/node_modules/@allyhub/sheet/dist/patch.js +1 -1
  298. package/dist/node_modules/@allyhub/sheet/dist/printed.d.ts +19 -0
  299. package/dist/node_modules/@allyhub/sheet/dist/printed.js +2 -0
  300. package/dist/node_modules/@allyhub/sheet/dist/sdk.d.ts +2 -0
  301. package/dist/node_modules/@allyhub/sheet/dist/sdk.js +2 -0
  302. package/dist/node_modules/@allyhub/sheet/dist/values.d.ts +2 -0
  303. package/dist/node_modules/@allyhub/sheet/dist/values.js +1 -1
  304. package/dist/node_modules/@allyhub/sheet/dist/workbook.d.ts +8 -6
  305. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
  306. package/dist/node_modules/@allyhub/sheet/dist/write.js +15 -15
  307. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.d.ts +6 -2
  308. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
  309. package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.js +2 -2
  310. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.d.ts +2 -1
  311. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
  312. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.d.ts +3 -1
  313. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
  314. package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.d.ts +7 -1
  315. package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.js +3 -1
  316. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.d.ts +6 -0
  317. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
  318. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.d.ts +1 -1
  319. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
  320. package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.d.ts +12 -1
  321. package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.js +3 -2
  322. package/dist/node_modules/@allyhub/sheet/package.json +5 -1
  323. package/dist/node_modules/@allyhub/slides-core/dist/animation.d.ts +23 -7
  324. package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
  325. package/dist/node_modules/@allyhub/slides-core/dist/api.d.ts +101 -11
  326. package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
  327. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
  328. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.d.ts +18 -1
  329. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
  330. package/dist/node_modules/@allyhub/slides-core/dist/code.d.ts +1 -1
  331. package/dist/node_modules/@allyhub/slides-core/dist/connect.d.ts +62 -0
  332. package/dist/node_modules/@allyhub/slides-core/dist/connect.js +2 -0
  333. package/dist/node_modules/@allyhub/slides-core/dist/enums.d.ts +24 -0
  334. package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
  335. package/dist/node_modules/@allyhub/slides-core/dist/fact.d.ts +223 -0
  336. package/dist/node_modules/@allyhub/slides-core/dist/fact.js +2 -0
  337. package/dist/node_modules/@allyhub/slides-core/dist/file.d.ts +4 -4
  338. package/dist/node_modules/@allyhub/slides-core/dist/file.js +2 -2
  339. package/dist/node_modules/@allyhub/slides-core/dist/index.d.ts +2 -0
  340. package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
  341. package/dist/node_modules/@allyhub/slides-core/dist/measure.d.ts +4 -2
  342. package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
  343. package/dist/node_modules/@allyhub/slides-core/dist/merge.d.ts +5 -5
  344. package/dist/node_modules/@allyhub/slides-core/dist/merge.js +1 -1
  345. package/dist/node_modules/@allyhub/slides-core/dist/model.d.ts +25 -4
  346. package/dist/node_modules/@allyhub/slides-core/dist/office.d.ts +1 -1
  347. package/dist/node_modules/@allyhub/slides-core/dist/path.d.ts +1 -1
  348. package/dist/node_modules/@allyhub/slides-core/dist/resolve.d.ts +20 -11
  349. package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
  350. package/dist/node_modules/@allyhub/slides-core/dist/sdk.d.ts +18 -0
  351. package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +2 -0
  352. package/dist/node_modules/@allyhub/slides-core/dist/stage.d.ts +28 -11
  353. package/dist/node_modules/@allyhub/slides-core/dist/units.d.ts +3 -6
  354. package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
  355. package/dist/node_modules/@allyhub/slides-core/package.json +5 -1
  356. package/dist/node_modules/@allyhub/video-core/dist/audio-types.d.ts +1 -2
  357. package/dist/node_modules/@allyhub/video-core/dist/captions.d.ts +1 -10
  358. package/dist/node_modules/@allyhub/video-core/dist/captions.js +1 -1
  359. package/dist/node_modules/@allyhub/video-core/dist/check.d.ts +62 -0
  360. package/dist/node_modules/@allyhub/video-core/dist/check.js +2 -0
  361. package/dist/node_modules/@allyhub/video-core/dist/cut-report.d.ts +2 -2
  362. package/dist/node_modules/@allyhub/video-core/dist/cut-report.js +1 -1
  363. package/dist/node_modules/@allyhub/video-core/dist/edits.d.ts +3 -3
  364. package/dist/node_modules/@allyhub/video-core/dist/edits.js +1 -1
  365. package/dist/node_modules/@allyhub/video-core/dist/fact.d.ts +21 -762
  366. package/dist/node_modules/@allyhub/video-core/dist/fact.js +1 -1
  367. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.d.ts +3 -2
  368. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
  369. package/dist/node_modules/@allyhub/video-core/dist/index.d.ts +3 -17
  370. package/dist/node_modules/@allyhub/video-core/dist/index.js +1 -1
  371. package/dist/node_modules/@allyhub/video-core/dist/measure.d.ts +72 -423
  372. package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -4
  373. package/dist/node_modules/@allyhub/video-core/dist/mix-plan.d.ts +44 -0
  374. package/dist/node_modules/@allyhub/video-core/dist/mix-plan.js +2 -0
  375. package/dist/node_modules/@allyhub/video-core/dist/motion.d.ts +1 -1
  376. package/dist/node_modules/@allyhub/video-core/dist/piece.d.ts +24 -432
  377. package/dist/node_modules/@allyhub/video-core/dist/piece.js +1 -1
  378. package/dist/node_modules/@allyhub/video-core/dist/placement.d.ts +1 -1
  379. package/dist/node_modules/@allyhub/video-core/dist/schema.d.ts +8 -14
  380. package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
  381. package/dist/node_modules/@allyhub/video-core/dist/script-edit.d.ts +11 -6
  382. package/dist/node_modules/@allyhub/video-core/dist/script-edit.js +1 -1
  383. package/dist/node_modules/@allyhub/video-core/dist/seams.d.ts +2 -3
  384. package/dist/node_modules/@allyhub/video-core/dist/sound-under.d.ts +2 -2
  385. package/dist/node_modules/@allyhub/video-core/dist/sound-under.js +1 -1
  386. package/dist/node_modules/@allyhub/video-core/dist/speech.d.ts +2 -4
  387. package/dist/node_modules/@allyhub/video-core/dist/speech.js +2 -2
  388. package/dist/node_modules/@allyhub/video-core/dist/stage.d.ts +52 -0
  389. package/dist/node_modules/@allyhub/video-core/dist/stage.js +2 -0
  390. package/dist/node_modules/@allyhub/video-core/dist/timeline.d.ts +18 -136
  391. package/dist/node_modules/@allyhub/video-core/dist/timeline.js +1 -1
  392. package/dist/node_modules/@allyhub/video-core/dist/timing.d.ts +3 -3
  393. package/dist/node_modules/@allyhub/video-core/dist/timing.js +1 -1
  394. package/dist/node_modules/@allyhub/video-core/dist/transcript.d.ts +2 -2
  395. package/dist/node_modules/@allyhub/video-core/dist/transcript.js +1 -1
  396. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  397. package/dist/node_modules/@allyhub/video-sdk/LICENSE +241 -0
  398. package/dist/node_modules/@allyhub/video-sdk/NOTICE +118 -0
  399. package/dist/{free.d.ts → node_modules/@allyhub/video-sdk/dist/free.d.ts} +14 -10
  400. package/dist/node_modules/@allyhub/video-sdk/dist/free.js +2 -0
  401. package/dist/node_modules/@allyhub/video-sdk/dist/index.d.ts +28 -0
  402. package/dist/node_modules/@allyhub/video-sdk/dist/index.js +2 -0
  403. package/dist/{input.d.ts → node_modules/@allyhub/video-sdk/dist/input.d.ts} +76 -22
  404. package/dist/node_modules/@allyhub/video-sdk/dist/input.js +2 -0
  405. package/dist/{module.d.ts → node_modules/@allyhub/video-sdk/dist/module.d.ts} +6 -4
  406. package/dist/node_modules/@allyhub/video-sdk/dist/module.js +2 -0
  407. package/dist/{parts.d.ts → node_modules/@allyhub/video-sdk/dist/parts.d.ts} +15 -6
  408. package/dist/node_modules/@allyhub/video-sdk/dist/parts.js +2 -0
  409. package/dist/{phone.d.ts → node_modules/@allyhub/video-sdk/dist/phone.d.ts} +12 -5
  410. package/dist/node_modules/@allyhub/video-sdk/dist/phone.js +2 -0
  411. package/dist/{piece.d.ts → node_modules/@allyhub/video-sdk/dist/piece.d.ts} +26 -16
  412. package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +2 -0
  413. package/dist/node_modules/@allyhub/video-sdk/dist/route.d.ts +46 -0
  414. package/dist/node_modules/@allyhub/video-sdk/dist/route.js +2 -0
  415. package/dist/node_modules/@allyhub/video-sdk/dist/scenery.d.ts +2 -0
  416. package/dist/node_modules/@allyhub/video-sdk/dist/scenery.js +2 -0
  417. package/dist/node_modules/@allyhub/video-sdk/package.json +19 -0
  418. package/dist/scenery.d.ts +1 -1
  419. package/dist/scenery.js +1 -1
  420. package/dist/sheets.d.ts +1 -1
  421. package/dist/sheets.js +1 -1
  422. package/dist/slides.d.ts +1 -9
  423. package/dist/slides.js +1 -1
  424. package/docs/README.md +10 -6
  425. package/docs/batches.md +5 -5
  426. package/docs/canvas.md +28 -0
  427. package/docs/contract.md +2 -2
  428. package/docs/defaults.md +298 -22
  429. package/docs/docs.md +80 -66
  430. package/docs/footage.md +7 -7
  431. package/docs/image.md +165 -0
  432. package/docs/layers.md +22 -13
  433. package/docs/modeling.md +4 -4
  434. package/docs/pictures.md +65 -0
  435. package/docs/project.md +51 -31
  436. package/docs/scenery.md +14 -15
  437. package/docs/sheets.md +46 -28
  438. package/docs/slides.md +121 -67
  439. package/docs/sound.md +3 -3
  440. package/docs/speech.md +8 -8
  441. package/docs/video.md +16 -13
  442. package/docs/websites.md +4 -4
  443. package/docs/x.md +73 -0
  444. package/package.json +7 -2
  445. package/dist/define.js +0 -2
  446. package/dist/free.js +0 -2
  447. package/dist/input.js +0 -2
  448. package/dist/module.js +0 -2
  449. package/dist/node_modules/@allyhub/formats/dist/data/comments.d.ts +0 -94
  450. package/dist/node_modules/@allyhub/formats/dist/data/comments.js +0 -2
  451. package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package-lock.json +0 -227
  452. package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package.json +0 -8
  453. package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package-lock.json +0 -105
  454. package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package.json +0 -8
  455. package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package-lock.json +0 -128
  456. package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package.json +0 -9
  457. package/dist/node_modules/@allyhub/video-core/dist/export.js +0 -2
  458. package/dist/node_modules/@allyhub/video-core/dist/formats.js +0 -2
  459. package/dist/node_modules/@allyhub/video-core/dist/gen.d.ts +0 -37
  460. package/dist/node_modules/@allyhub/video-core/dist/problem.d.ts +0 -278
  461. package/dist/node_modules/@allyhub/video-core/dist/problem.js +0 -2
  462. package/dist/node_modules/@allyhub/video-core/dist/script.js +0 -2
  463. package/dist/node_modules/@allyhub/video-core/dist/source.d.ts +0 -7
  464. package/dist/parts.js +0 -2
  465. package/dist/phone.js +0 -2
  466. package/dist/piece.js +0 -2
  467. /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.d.ts +0 -0
  468. /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.js +0 -0
  469. /package/dist/{fit.d.ts → node_modules/@allyhub/image-sdk/dist/fit.d.ts} +0 -0
  470. /package/dist/{fit.js → node_modules/@allyhub/image-sdk/dist/fit.js} +0 -0
  471. /package/dist/{messages.js → node_modules/@allyhub/image-sdk/dist/messages.js} +0 -0
  472. /package/dist/{props.js → node_modules/@allyhub/image-sdk/dist/props.js} +0 -0
  473. /package/dist/{text.d.ts → node_modules/@allyhub/image-sdk/dist/text.d.ts} +0 -0
  474. /package/dist/{text.js → node_modules/@allyhub/image-sdk/dist/text.js} +0 -0
  475. /package/dist/{written.d.ts → node_modules/@allyhub/image-sdk/dist/written.d.ts} +0 -0
  476. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.js +0 -0
  477. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.d.ts +0 -0
  478. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.d.ts +0 -0
  479. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.js +0 -0
  480. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.js +0 -0
  481. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/gen.js +0 -0
  482. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.js +0 -0
  483. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.d.ts +0 -0
  484. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.js +0 -0
  485. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.d.ts +0 -0
  486. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.js +0 -0
  487. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.js +0 -0
  488. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/source.js +0 -0
  489. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.js +0 -0
  490. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.d.ts +0 -0
  491. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.js +0 -0
  492. /package/dist/{anim.d.ts → node_modules/@allyhub/video-sdk/dist/anim.d.ts} +0 -0
  493. /package/dist/{anim.js → node_modules/@allyhub/video-sdk/dist/anim.js} +0 -0
  494. /package/dist/{noise.d.ts → node_modules/@allyhub/video-sdk/dist/noise.d.ts} +0 -0
  495. /package/dist/{noise.js → node_modules/@allyhub/video-sdk/dist/noise.js} +0 -0
  496. /package/dist/{paths.d.ts → node_modules/@allyhub/video-sdk/dist/paths.d.ts} +0 -0
  497. /package/dist/{paths.js → node_modules/@allyhub/video-sdk/dist/paths.js} +0 -0
@@ -0,0 +1,1558 @@
1
+ import { z } from "zod";
2
+ import { type MediaInfo } from "./media.js";
3
+ /** Photoshop's blend modes, by the names of its scripting model (UXP's `BlendMode`). */
4
+ export declare const BLEND_MODES: readonly ["normal", "dissolve", "darken", "multiply", "colorBurn", "linearBurn", "darkerColor", "lighten", "screen", "colorDodge", "linearDodge", "lighterColor", "overlay", "softLight", "hardLight", "vividLight", "linearLight", "pinLight", "hardMix", "difference", "exclusion", "subtract", "divide", "hue", "saturation", "color", "luminosity", "passThrough"];
5
+ export type BlendMode = (typeof BLEND_MODES)[number];
6
+ /**
7
+ * How Chrome draws each blend mode: CSS's `mix-blend-mode` (whose formulas
8
+ * are the W3C Compositing spec's, taken from Adobe's PDF Reference), or why
9
+ * it is refused. `passThrough` is a group's alone: its layers blend with
10
+ * what lies under the group, as though it were not there.
11
+ */
12
+ export declare const BLEND_DRAWN: Readonly<Record<BlendMode, {
13
+ readonly css: string;
14
+ } | {
15
+ readonly refused: string;
16
+ }>>;
17
+ /**
18
+ * The modes whose fill opacity Photoshop applies inside the blend, not
19
+ * after it (its "special eight"), among those Chrome draws: a fill opacity
20
+ * under 100 with them is refused.
21
+ */
22
+ export declare const FILL_INSIDE_BLEND: readonly BlendMode[];
23
+ /** A still named by its project path (from the module's folder), or as imported. */
24
+ export type MediaRef = string | MediaInfo;
25
+ /** A box in shares of the frame: x, y, width, height. */
26
+ export type ShareBox = readonly [x: number, y: number, w: number, h: number];
27
+ /** A box in shares of the frame, inside it. */
28
+ export declare const ShareBoxSchema: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
29
+ /** A CSS colour: hex, a functional notation, or a keyword CSS takes. */
30
+ export declare function isColor(v: unknown): v is string;
31
+ /** A CSS colour ("#1a1a1a", "rgb(0 0 0 / 50%)"). */
32
+ export declare const ColorSchema: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
33
+ /** A gradient's colour at a place along it. */
34
+ export declare const ColorStopSchema: z.ZodObject<{
35
+ color: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
36
+ location: z.ZodNumber;
37
+ midpoint: z.ZodOptional<z.ZodNumber>;
38
+ }, z.core.$strip>;
39
+ export type ColorStop = z.infer<typeof ColorStopSchema>;
40
+ /** Gradient styles: Photoshop's (linear, radial, angle, reflected, diamond). */
41
+ export declare const GRADIENT_STYLES: readonly ["linear", "radial", "angle", "reflected", "diamond"];
42
+ export type GradientStyle = (typeof GRADIENT_STYLES)[number];
43
+ /** A gradient, as a Gradient Fill or a Gradient Overlay takes it. */
44
+ export declare const GradientSchema: z.ZodObject<{
45
+ stops: z.ZodArray<z.ZodObject<{
46
+ color: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
47
+ location: z.ZodNumber;
48
+ midpoint: z.ZodOptional<z.ZodNumber>;
49
+ }, z.core.$strip>>;
50
+ style: z.ZodOptional<z.ZodEnum<{
51
+ linear: "linear";
52
+ radial: "radial";
53
+ angle: "angle";
54
+ reflected: "reflected";
55
+ diamond: "diamond";
56
+ }>>;
57
+ angle: z.ZodOptional<z.ZodNumber>;
58
+ scale: z.ZodOptional<z.ZodNumber>;
59
+ reverse: z.ZodOptional<z.ZodBoolean>;
60
+ }, z.core.$strip>;
61
+ export type Gradient = z.infer<typeof GradientSchema>;
62
+ /** A colour, a gradient or a picture tiled: what a fill layer, a shape's fill and an overlay paint with. */
63
+ export declare const FillSchema: z.ZodUnion<readonly [z.ZodObject<{
64
+ color: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
65
+ }, z.core.$strip>, z.ZodObject<{
66
+ gradient: z.ZodObject<{
67
+ stops: z.ZodArray<z.ZodObject<{
68
+ color: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
69
+ location: z.ZodNumber;
70
+ midpoint: z.ZodOptional<z.ZodNumber>;
71
+ }, z.core.$strip>>;
72
+ style: z.ZodOptional<z.ZodEnum<{
73
+ linear: "linear";
74
+ radial: "radial";
75
+ angle: "angle";
76
+ reflected: "reflected";
77
+ diamond: "diamond";
78
+ }>>;
79
+ angle: z.ZodOptional<z.ZodNumber>;
80
+ scale: z.ZodOptional<z.ZodNumber>;
81
+ reverse: z.ZodOptional<z.ZodBoolean>;
82
+ }, z.core.$strip>;
83
+ }, z.core.$strip>, z.ZodObject<{
84
+ pattern: z.ZodUnion<readonly [z.ZodString, z.ZodCustom<MediaInfo, MediaInfo>]>;
85
+ scale: z.ZodOptional<z.ZodNumber>;
86
+ }, z.core.$strip>]>;
87
+ export type Fill = z.infer<typeof FillSchema>;
88
+ /** A layer's mask, given as its object: a picture's pixels or a path, with its density and feather. */
89
+ export declare const MaskObjectSchema: z.ZodObject<{
90
+ src: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<MediaInfo, MediaInfo>]>>;
91
+ path: z.ZodOptional<z.ZodString>;
92
+ box: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
93
+ mode: z.ZodOptional<z.ZodEnum<{
94
+ alpha: "alpha";
95
+ luminance: "luminance";
96
+ }>>;
97
+ density: z.ZodOptional<z.ZodNumber>;
98
+ feather: z.ZodOptional<z.ZodNumber>;
99
+ invert: z.ZodOptional<z.ZodBoolean>;
100
+ enabled: z.ZodOptional<z.ZodBoolean>;
101
+ }, z.core.$strip>;
102
+ export type MaskObject = z.infer<typeof MaskObjectSchema>;
103
+ /** A layer's mask: a picture, "ellipse", a CSS `mask-image`, or its object. */
104
+ export declare const LayerMaskSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodCustom<MediaInfo, MediaInfo>]>, z.ZodObject<{
105
+ src: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<MediaInfo, MediaInfo>]>>;
106
+ path: z.ZodOptional<z.ZodString>;
107
+ box: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
108
+ mode: z.ZodOptional<z.ZodEnum<{
109
+ alpha: "alpha";
110
+ luminance: "luminance";
111
+ }>>;
112
+ density: z.ZodOptional<z.ZodNumber>;
113
+ feather: z.ZodOptional<z.ZodNumber>;
114
+ invert: z.ZodOptional<z.ZodBoolean>;
115
+ enabled: z.ZodOptional<z.ZodBoolean>;
116
+ }, z.core.$strip>]>;
117
+ export type LayerMask = MediaRef | MaskObject;
118
+ /** The layer styles, by Photoshop's names, each one at most once. */
119
+ export declare const EffectsSchema: z.ZodObject<{
120
+ dropShadow: z.ZodOptional<z.ZodObject<{
121
+ spread: z.ZodOptional<z.ZodNumber>;
122
+ color: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
123
+ angle: z.ZodOptional<z.ZodNumber>;
124
+ distance: z.ZodOptional<z.ZodNumber>;
125
+ size: z.ZodOptional<z.ZodNumber>;
126
+ enabled: z.ZodOptional<z.ZodBoolean>;
127
+ blendMode: z.ZodOptional<z.ZodEnum<{
128
+ color: "color";
129
+ normal: "normal";
130
+ dissolve: "dissolve";
131
+ darken: "darken";
132
+ multiply: "multiply";
133
+ colorBurn: "colorBurn";
134
+ linearBurn: "linearBurn";
135
+ darkerColor: "darkerColor";
136
+ lighten: "lighten";
137
+ screen: "screen";
138
+ colorDodge: "colorDodge";
139
+ linearDodge: "linearDodge";
140
+ lighterColor: "lighterColor";
141
+ overlay: "overlay";
142
+ softLight: "softLight";
143
+ hardLight: "hardLight";
144
+ vividLight: "vividLight";
145
+ linearLight: "linearLight";
146
+ pinLight: "pinLight";
147
+ hardMix: "hardMix";
148
+ difference: "difference";
149
+ exclusion: "exclusion";
150
+ subtract: "subtract";
151
+ divide: "divide";
152
+ hue: "hue";
153
+ saturation: "saturation";
154
+ luminosity: "luminosity";
155
+ passThrough: "passThrough";
156
+ }>>;
157
+ opacity: z.ZodOptional<z.ZodNumber>;
158
+ }, z.core.$strip>>;
159
+ innerShadow: z.ZodOptional<z.ZodObject<{
160
+ choke: z.ZodOptional<z.ZodNumber>;
161
+ color: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
162
+ angle: z.ZodOptional<z.ZodNumber>;
163
+ distance: z.ZodOptional<z.ZodNumber>;
164
+ size: z.ZodOptional<z.ZodNumber>;
165
+ enabled: z.ZodOptional<z.ZodBoolean>;
166
+ blendMode: z.ZodOptional<z.ZodEnum<{
167
+ color: "color";
168
+ normal: "normal";
169
+ dissolve: "dissolve";
170
+ darken: "darken";
171
+ multiply: "multiply";
172
+ colorBurn: "colorBurn";
173
+ linearBurn: "linearBurn";
174
+ darkerColor: "darkerColor";
175
+ lighten: "lighten";
176
+ screen: "screen";
177
+ colorDodge: "colorDodge";
178
+ linearDodge: "linearDodge";
179
+ lighterColor: "lighterColor";
180
+ overlay: "overlay";
181
+ softLight: "softLight";
182
+ hardLight: "hardLight";
183
+ vividLight: "vividLight";
184
+ linearLight: "linearLight";
185
+ pinLight: "pinLight";
186
+ hardMix: "hardMix";
187
+ difference: "difference";
188
+ exclusion: "exclusion";
189
+ subtract: "subtract";
190
+ divide: "divide";
191
+ hue: "hue";
192
+ saturation: "saturation";
193
+ luminosity: "luminosity";
194
+ passThrough: "passThrough";
195
+ }>>;
196
+ opacity: z.ZodOptional<z.ZodNumber>;
197
+ }, z.core.$strip>>;
198
+ outerGlow: z.ZodOptional<z.ZodObject<{
199
+ color: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
200
+ spread: z.ZodOptional<z.ZodNumber>;
201
+ size: z.ZodOptional<z.ZodNumber>;
202
+ enabled: z.ZodOptional<z.ZodBoolean>;
203
+ blendMode: z.ZodOptional<z.ZodEnum<{
204
+ color: "color";
205
+ normal: "normal";
206
+ dissolve: "dissolve";
207
+ darken: "darken";
208
+ multiply: "multiply";
209
+ colorBurn: "colorBurn";
210
+ linearBurn: "linearBurn";
211
+ darkerColor: "darkerColor";
212
+ lighten: "lighten";
213
+ screen: "screen";
214
+ colorDodge: "colorDodge";
215
+ linearDodge: "linearDodge";
216
+ lighterColor: "lighterColor";
217
+ overlay: "overlay";
218
+ softLight: "softLight";
219
+ hardLight: "hardLight";
220
+ vividLight: "vividLight";
221
+ linearLight: "linearLight";
222
+ pinLight: "pinLight";
223
+ hardMix: "hardMix";
224
+ difference: "difference";
225
+ exclusion: "exclusion";
226
+ subtract: "subtract";
227
+ divide: "divide";
228
+ hue: "hue";
229
+ saturation: "saturation";
230
+ luminosity: "luminosity";
231
+ passThrough: "passThrough";
232
+ }>>;
233
+ opacity: z.ZodOptional<z.ZodNumber>;
234
+ }, z.core.$strip>>;
235
+ innerGlow: z.ZodOptional<z.ZodObject<{
236
+ color: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
237
+ choke: z.ZodOptional<z.ZodNumber>;
238
+ size: z.ZodOptional<z.ZodNumber>;
239
+ source: z.ZodOptional<z.ZodEnum<{
240
+ edge: "edge";
241
+ center: "center";
242
+ }>>;
243
+ enabled: z.ZodOptional<z.ZodBoolean>;
244
+ blendMode: z.ZodOptional<z.ZodEnum<{
245
+ color: "color";
246
+ normal: "normal";
247
+ dissolve: "dissolve";
248
+ darken: "darken";
249
+ multiply: "multiply";
250
+ colorBurn: "colorBurn";
251
+ linearBurn: "linearBurn";
252
+ darkerColor: "darkerColor";
253
+ lighten: "lighten";
254
+ screen: "screen";
255
+ colorDodge: "colorDodge";
256
+ linearDodge: "linearDodge";
257
+ lighterColor: "lighterColor";
258
+ overlay: "overlay";
259
+ softLight: "softLight";
260
+ hardLight: "hardLight";
261
+ vividLight: "vividLight";
262
+ linearLight: "linearLight";
263
+ pinLight: "pinLight";
264
+ hardMix: "hardMix";
265
+ difference: "difference";
266
+ exclusion: "exclusion";
267
+ subtract: "subtract";
268
+ divide: "divide";
269
+ hue: "hue";
270
+ saturation: "saturation";
271
+ luminosity: "luminosity";
272
+ passThrough: "passThrough";
273
+ }>>;
274
+ opacity: z.ZodOptional<z.ZodNumber>;
275
+ }, z.core.$strip>>;
276
+ stroke: z.ZodOptional<z.ZodObject<{
277
+ color: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
278
+ size: z.ZodOptional<z.ZodNumber>;
279
+ position: z.ZodOptional<z.ZodEnum<{
280
+ center: "center";
281
+ outside: "outside";
282
+ inside: "inside";
283
+ }>>;
284
+ enabled: z.ZodOptional<z.ZodBoolean>;
285
+ blendMode: z.ZodOptional<z.ZodEnum<{
286
+ color: "color";
287
+ normal: "normal";
288
+ dissolve: "dissolve";
289
+ darken: "darken";
290
+ multiply: "multiply";
291
+ colorBurn: "colorBurn";
292
+ linearBurn: "linearBurn";
293
+ darkerColor: "darkerColor";
294
+ lighten: "lighten";
295
+ screen: "screen";
296
+ colorDodge: "colorDodge";
297
+ linearDodge: "linearDodge";
298
+ lighterColor: "lighterColor";
299
+ overlay: "overlay";
300
+ softLight: "softLight";
301
+ hardLight: "hardLight";
302
+ vividLight: "vividLight";
303
+ linearLight: "linearLight";
304
+ pinLight: "pinLight";
305
+ hardMix: "hardMix";
306
+ difference: "difference";
307
+ exclusion: "exclusion";
308
+ subtract: "subtract";
309
+ divide: "divide";
310
+ hue: "hue";
311
+ saturation: "saturation";
312
+ luminosity: "luminosity";
313
+ passThrough: "passThrough";
314
+ }>>;
315
+ opacity: z.ZodOptional<z.ZodNumber>;
316
+ }, z.core.$strip>>;
317
+ colorOverlay: z.ZodOptional<z.ZodObject<{
318
+ color: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
319
+ enabled: z.ZodOptional<z.ZodBoolean>;
320
+ blendMode: z.ZodOptional<z.ZodEnum<{
321
+ color: "color";
322
+ normal: "normal";
323
+ dissolve: "dissolve";
324
+ darken: "darken";
325
+ multiply: "multiply";
326
+ colorBurn: "colorBurn";
327
+ linearBurn: "linearBurn";
328
+ darkerColor: "darkerColor";
329
+ lighten: "lighten";
330
+ screen: "screen";
331
+ colorDodge: "colorDodge";
332
+ linearDodge: "linearDodge";
333
+ lighterColor: "lighterColor";
334
+ overlay: "overlay";
335
+ softLight: "softLight";
336
+ hardLight: "hardLight";
337
+ vividLight: "vividLight";
338
+ linearLight: "linearLight";
339
+ pinLight: "pinLight";
340
+ hardMix: "hardMix";
341
+ difference: "difference";
342
+ exclusion: "exclusion";
343
+ subtract: "subtract";
344
+ divide: "divide";
345
+ hue: "hue";
346
+ saturation: "saturation";
347
+ luminosity: "luminosity";
348
+ passThrough: "passThrough";
349
+ }>>;
350
+ opacity: z.ZodOptional<z.ZodNumber>;
351
+ }, z.core.$strip>>;
352
+ gradientOverlay: z.ZodOptional<z.ZodObject<{
353
+ gradient: z.ZodOptional<z.ZodObject<{
354
+ stops: z.ZodArray<z.ZodObject<{
355
+ color: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
356
+ location: z.ZodNumber;
357
+ midpoint: z.ZodOptional<z.ZodNumber>;
358
+ }, z.core.$strip>>;
359
+ style: z.ZodOptional<z.ZodEnum<{
360
+ linear: "linear";
361
+ radial: "radial";
362
+ angle: "angle";
363
+ reflected: "reflected";
364
+ diamond: "diamond";
365
+ }>>;
366
+ angle: z.ZodOptional<z.ZodNumber>;
367
+ scale: z.ZodOptional<z.ZodNumber>;
368
+ reverse: z.ZodOptional<z.ZodBoolean>;
369
+ }, z.core.$strip>>;
370
+ enabled: z.ZodOptional<z.ZodBoolean>;
371
+ blendMode: z.ZodOptional<z.ZodEnum<{
372
+ color: "color";
373
+ normal: "normal";
374
+ dissolve: "dissolve";
375
+ darken: "darken";
376
+ multiply: "multiply";
377
+ colorBurn: "colorBurn";
378
+ linearBurn: "linearBurn";
379
+ darkerColor: "darkerColor";
380
+ lighten: "lighten";
381
+ screen: "screen";
382
+ colorDodge: "colorDodge";
383
+ linearDodge: "linearDodge";
384
+ lighterColor: "lighterColor";
385
+ overlay: "overlay";
386
+ softLight: "softLight";
387
+ hardLight: "hardLight";
388
+ vividLight: "vividLight";
389
+ linearLight: "linearLight";
390
+ pinLight: "pinLight";
391
+ hardMix: "hardMix";
392
+ difference: "difference";
393
+ exclusion: "exclusion";
394
+ subtract: "subtract";
395
+ divide: "divide";
396
+ hue: "hue";
397
+ saturation: "saturation";
398
+ luminosity: "luminosity";
399
+ passThrough: "passThrough";
400
+ }>>;
401
+ opacity: z.ZodOptional<z.ZodNumber>;
402
+ }, z.core.$strip>>;
403
+ patternOverlay: z.ZodOptional<z.ZodObject<{
404
+ pattern: z.ZodUnion<readonly [z.ZodString, z.ZodCustom<MediaInfo, MediaInfo>]>;
405
+ scale: z.ZodOptional<z.ZodNumber>;
406
+ enabled: z.ZodOptional<z.ZodBoolean>;
407
+ blendMode: z.ZodOptional<z.ZodEnum<{
408
+ color: "color";
409
+ normal: "normal";
410
+ dissolve: "dissolve";
411
+ darken: "darken";
412
+ multiply: "multiply";
413
+ colorBurn: "colorBurn";
414
+ linearBurn: "linearBurn";
415
+ darkerColor: "darkerColor";
416
+ lighten: "lighten";
417
+ screen: "screen";
418
+ colorDodge: "colorDodge";
419
+ linearDodge: "linearDodge";
420
+ lighterColor: "lighterColor";
421
+ overlay: "overlay";
422
+ softLight: "softLight";
423
+ hardLight: "hardLight";
424
+ vividLight: "vividLight";
425
+ linearLight: "linearLight";
426
+ pinLight: "pinLight";
427
+ hardMix: "hardMix";
428
+ difference: "difference";
429
+ exclusion: "exclusion";
430
+ subtract: "subtract";
431
+ divide: "divide";
432
+ hue: "hue";
433
+ saturation: "saturation";
434
+ luminosity: "luminosity";
435
+ passThrough: "passThrough";
436
+ }>>;
437
+ opacity: z.ZodOptional<z.ZodNumber>;
438
+ }, z.core.$strip>>;
439
+ satin: z.ZodOptional<z.ZodObject<{
440
+ color: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
441
+ angle: z.ZodOptional<z.ZodNumber>;
442
+ distance: z.ZodOptional<z.ZodNumber>;
443
+ size: z.ZodOptional<z.ZodNumber>;
444
+ invert: z.ZodOptional<z.ZodBoolean>;
445
+ enabled: z.ZodOptional<z.ZodBoolean>;
446
+ blendMode: z.ZodOptional<z.ZodEnum<{
447
+ color: "color";
448
+ normal: "normal";
449
+ dissolve: "dissolve";
450
+ darken: "darken";
451
+ multiply: "multiply";
452
+ colorBurn: "colorBurn";
453
+ linearBurn: "linearBurn";
454
+ darkerColor: "darkerColor";
455
+ lighten: "lighten";
456
+ screen: "screen";
457
+ colorDodge: "colorDodge";
458
+ linearDodge: "linearDodge";
459
+ lighterColor: "lighterColor";
460
+ overlay: "overlay";
461
+ softLight: "softLight";
462
+ hardLight: "hardLight";
463
+ vividLight: "vividLight";
464
+ linearLight: "linearLight";
465
+ pinLight: "pinLight";
466
+ hardMix: "hardMix";
467
+ difference: "difference";
468
+ exclusion: "exclusion";
469
+ subtract: "subtract";
470
+ divide: "divide";
471
+ hue: "hue";
472
+ saturation: "saturation";
473
+ luminosity: "luminosity";
474
+ passThrough: "passThrough";
475
+ }>>;
476
+ opacity: z.ZodOptional<z.ZodNumber>;
477
+ }, z.core.$strip>>;
478
+ bevelEmboss: z.ZodOptional<z.ZodObject<{
479
+ style: z.ZodOptional<z.ZodEnum<{
480
+ innerBevel: "innerBevel";
481
+ outerBevel: "outerBevel";
482
+ emboss: "emboss";
483
+ pillowEmboss: "pillowEmboss";
484
+ strokeEmboss: "strokeEmboss";
485
+ }>>;
486
+ technique: z.ZodOptional<z.ZodEnum<{
487
+ smooth: "smooth";
488
+ chiselHard: "chiselHard";
489
+ chiselSoft: "chiselSoft";
490
+ }>>;
491
+ depth: z.ZodOptional<z.ZodNumber>;
492
+ direction: z.ZodOptional<z.ZodEnum<{
493
+ up: "up";
494
+ down: "down";
495
+ }>>;
496
+ size: z.ZodOptional<z.ZodNumber>;
497
+ soften: z.ZodOptional<z.ZodNumber>;
498
+ angle: z.ZodOptional<z.ZodNumber>;
499
+ altitude: z.ZodOptional<z.ZodNumber>;
500
+ highlightMode: z.ZodOptional<z.ZodEnum<{
501
+ color: "color";
502
+ normal: "normal";
503
+ dissolve: "dissolve";
504
+ darken: "darken";
505
+ multiply: "multiply";
506
+ colorBurn: "colorBurn";
507
+ linearBurn: "linearBurn";
508
+ darkerColor: "darkerColor";
509
+ lighten: "lighten";
510
+ screen: "screen";
511
+ colorDodge: "colorDodge";
512
+ linearDodge: "linearDodge";
513
+ lighterColor: "lighterColor";
514
+ overlay: "overlay";
515
+ softLight: "softLight";
516
+ hardLight: "hardLight";
517
+ vividLight: "vividLight";
518
+ linearLight: "linearLight";
519
+ pinLight: "pinLight";
520
+ hardMix: "hardMix";
521
+ difference: "difference";
522
+ exclusion: "exclusion";
523
+ subtract: "subtract";
524
+ divide: "divide";
525
+ hue: "hue";
526
+ saturation: "saturation";
527
+ luminosity: "luminosity";
528
+ passThrough: "passThrough";
529
+ }>>;
530
+ highlightColor: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
531
+ highlightOpacity: z.ZodOptional<z.ZodNumber>;
532
+ shadowMode: z.ZodOptional<z.ZodEnum<{
533
+ color: "color";
534
+ normal: "normal";
535
+ dissolve: "dissolve";
536
+ darken: "darken";
537
+ multiply: "multiply";
538
+ colorBurn: "colorBurn";
539
+ linearBurn: "linearBurn";
540
+ darkerColor: "darkerColor";
541
+ lighten: "lighten";
542
+ screen: "screen";
543
+ colorDodge: "colorDodge";
544
+ linearDodge: "linearDodge";
545
+ lighterColor: "lighterColor";
546
+ overlay: "overlay";
547
+ softLight: "softLight";
548
+ hardLight: "hardLight";
549
+ vividLight: "vividLight";
550
+ linearLight: "linearLight";
551
+ pinLight: "pinLight";
552
+ hardMix: "hardMix";
553
+ difference: "difference";
554
+ exclusion: "exclusion";
555
+ subtract: "subtract";
556
+ divide: "divide";
557
+ hue: "hue";
558
+ saturation: "saturation";
559
+ luminosity: "luminosity";
560
+ passThrough: "passThrough";
561
+ }>>;
562
+ shadowColor: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
563
+ shadowOpacity: z.ZodOptional<z.ZodNumber>;
564
+ enabled: z.ZodOptional<z.ZodBoolean>;
565
+ blendMode: z.ZodOptional<z.ZodEnum<{
566
+ color: "color";
567
+ normal: "normal";
568
+ dissolve: "dissolve";
569
+ darken: "darken";
570
+ multiply: "multiply";
571
+ colorBurn: "colorBurn";
572
+ linearBurn: "linearBurn";
573
+ darkerColor: "darkerColor";
574
+ lighten: "lighten";
575
+ screen: "screen";
576
+ colorDodge: "colorDodge";
577
+ linearDodge: "linearDodge";
578
+ lighterColor: "lighterColor";
579
+ overlay: "overlay";
580
+ softLight: "softLight";
581
+ hardLight: "hardLight";
582
+ vividLight: "vividLight";
583
+ linearLight: "linearLight";
584
+ pinLight: "pinLight";
585
+ hardMix: "hardMix";
586
+ difference: "difference";
587
+ exclusion: "exclusion";
588
+ subtract: "subtract";
589
+ divide: "divide";
590
+ hue: "hue";
591
+ saturation: "saturation";
592
+ luminosity: "luminosity";
593
+ passThrough: "passThrough";
594
+ }>>;
595
+ opacity: z.ZodOptional<z.ZodNumber>;
596
+ }, z.core.$strip>>;
597
+ }, z.core.$strip>;
598
+ export type Effects = z.infer<typeof EffectsSchema>;
599
+ export type EffectName = keyof Effects;
600
+ /** The effects in the order Photoshop lists them, and draws them bottom to top as said in `EFFECT_ORDER`. */
601
+ export declare const EFFECT_NAMES: readonly EffectName[];
602
+ /** The order effects are drawn in, bottom to top: under the content, then over it. */
603
+ export declare const EFFECT_ORDER: readonly EffectName[];
604
+ /** Each effect's settings when it gives none: Photoshop's own. */
605
+ export declare const EFFECT_DEFAULTS: {
606
+ readonly dropShadow: {
607
+ readonly blendMode: "multiply";
608
+ readonly color: "#000000";
609
+ readonly opacity: 75;
610
+ readonly angle: 120;
611
+ readonly distance: 5;
612
+ readonly spread: 0;
613
+ readonly size: 5;
614
+ };
615
+ readonly innerShadow: {
616
+ readonly blendMode: "multiply";
617
+ readonly color: "#000000";
618
+ readonly opacity: 75;
619
+ readonly angle: 120;
620
+ readonly distance: 5;
621
+ readonly choke: 0;
622
+ readonly size: 5;
623
+ };
624
+ readonly outerGlow: {
625
+ readonly blendMode: "screen";
626
+ readonly color: "#ffffbe";
627
+ readonly opacity: 75;
628
+ readonly spread: 0;
629
+ readonly size: 5;
630
+ };
631
+ readonly innerGlow: {
632
+ readonly blendMode: "screen";
633
+ readonly color: "#ffffbe";
634
+ readonly opacity: 75;
635
+ readonly choke: 0;
636
+ readonly size: 5;
637
+ readonly source: "edge";
638
+ };
639
+ readonly stroke: {
640
+ readonly blendMode: "normal";
641
+ readonly color: "#000000";
642
+ readonly opacity: 100;
643
+ readonly size: 3;
644
+ readonly position: "outside";
645
+ };
646
+ readonly colorOverlay: {
647
+ readonly blendMode: "normal";
648
+ readonly color: "#ff0000";
649
+ readonly opacity: 100;
650
+ };
651
+ readonly gradientOverlay: {
652
+ readonly blendMode: "normal";
653
+ readonly opacity: 100;
654
+ readonly gradient: {
655
+ readonly stops: readonly [{
656
+ readonly color: "#000000";
657
+ readonly location: 0;
658
+ }, {
659
+ readonly color: "#ffffff";
660
+ readonly location: 100;
661
+ }];
662
+ readonly style: "linear";
663
+ readonly angle: 90;
664
+ readonly scale: 100;
665
+ readonly reverse: false;
666
+ };
667
+ };
668
+ readonly patternOverlay: {
669
+ readonly blendMode: "normal";
670
+ readonly opacity: 100;
671
+ readonly scale: 100;
672
+ };
673
+ readonly satin: {
674
+ readonly blendMode: "multiply";
675
+ readonly color: "#000000";
676
+ readonly opacity: 50;
677
+ readonly angle: 19;
678
+ readonly distance: 11;
679
+ readonly size: 14;
680
+ readonly invert: true;
681
+ };
682
+ readonly bevelEmboss: {
683
+ readonly style: "innerBevel";
684
+ readonly technique: "smooth";
685
+ readonly depth: 100;
686
+ readonly direction: "up";
687
+ readonly size: 5;
688
+ readonly soften: 0;
689
+ readonly angle: 120;
690
+ readonly altitude: 30;
691
+ readonly highlightMode: "screen";
692
+ readonly highlightColor: "#ffffff";
693
+ readonly highlightOpacity: 75;
694
+ readonly shadowMode: "multiply";
695
+ readonly shadowColor: "#000000";
696
+ readonly shadowOpacity: 75;
697
+ };
698
+ };
699
+ /** A layer turned and flipped about its box's centre. */
700
+ export declare const TransformSchema: z.ZodObject<{
701
+ rotation: z.ZodOptional<z.ZodNumber>;
702
+ flipH: z.ZodOptional<z.ZodBoolean>;
703
+ flipV: z.ZodOptional<z.ZodBoolean>;
704
+ }, z.core.$strip>;
705
+ export type LayerTransform = z.infer<typeof TransformSchema>;
706
+ /** What every layer has besides what it shows: Photoshop's layer, by its scripting model's names. */
707
+ export declare const LayerStyleSchema: z.ZodObject<{
708
+ blendMode: z.ZodOptional<z.ZodEnum<{
709
+ color: "color";
710
+ normal: "normal";
711
+ dissolve: "dissolve";
712
+ darken: "darken";
713
+ multiply: "multiply";
714
+ colorBurn: "colorBurn";
715
+ linearBurn: "linearBurn";
716
+ darkerColor: "darkerColor";
717
+ lighten: "lighten";
718
+ screen: "screen";
719
+ colorDodge: "colorDodge";
720
+ linearDodge: "linearDodge";
721
+ lighterColor: "lighterColor";
722
+ overlay: "overlay";
723
+ softLight: "softLight";
724
+ hardLight: "hardLight";
725
+ vividLight: "vividLight";
726
+ linearLight: "linearLight";
727
+ pinLight: "pinLight";
728
+ hardMix: "hardMix";
729
+ difference: "difference";
730
+ exclusion: "exclusion";
731
+ subtract: "subtract";
732
+ divide: "divide";
733
+ hue: "hue";
734
+ saturation: "saturation";
735
+ luminosity: "luminosity";
736
+ passThrough: "passThrough";
737
+ }>>;
738
+ opacity: z.ZodOptional<z.ZodNumber>;
739
+ fillOpacity: z.ZodOptional<z.ZodNumber>;
740
+ clipping: z.ZodOptional<z.ZodBoolean>;
741
+ mask: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodCustom<MediaInfo, MediaInfo>]>, z.ZodObject<{
742
+ src: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<MediaInfo, MediaInfo>]>>;
743
+ path: z.ZodOptional<z.ZodString>;
744
+ box: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
745
+ mode: z.ZodOptional<z.ZodEnum<{
746
+ alpha: "alpha";
747
+ luminance: "luminance";
748
+ }>>;
749
+ density: z.ZodOptional<z.ZodNumber>;
750
+ feather: z.ZodOptional<z.ZodNumber>;
751
+ invert: z.ZodOptional<z.ZodBoolean>;
752
+ enabled: z.ZodOptional<z.ZodBoolean>;
753
+ }, z.core.$strip>]>>;
754
+ effects: z.ZodOptional<z.ZodObject<{
755
+ dropShadow: z.ZodOptional<z.ZodObject<{
756
+ spread: z.ZodOptional<z.ZodNumber>;
757
+ color: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
758
+ angle: z.ZodOptional<z.ZodNumber>;
759
+ distance: z.ZodOptional<z.ZodNumber>;
760
+ size: z.ZodOptional<z.ZodNumber>;
761
+ enabled: z.ZodOptional<z.ZodBoolean>;
762
+ blendMode: z.ZodOptional<z.ZodEnum<{
763
+ color: "color";
764
+ normal: "normal";
765
+ dissolve: "dissolve";
766
+ darken: "darken";
767
+ multiply: "multiply";
768
+ colorBurn: "colorBurn";
769
+ linearBurn: "linearBurn";
770
+ darkerColor: "darkerColor";
771
+ lighten: "lighten";
772
+ screen: "screen";
773
+ colorDodge: "colorDodge";
774
+ linearDodge: "linearDodge";
775
+ lighterColor: "lighterColor";
776
+ overlay: "overlay";
777
+ softLight: "softLight";
778
+ hardLight: "hardLight";
779
+ vividLight: "vividLight";
780
+ linearLight: "linearLight";
781
+ pinLight: "pinLight";
782
+ hardMix: "hardMix";
783
+ difference: "difference";
784
+ exclusion: "exclusion";
785
+ subtract: "subtract";
786
+ divide: "divide";
787
+ hue: "hue";
788
+ saturation: "saturation";
789
+ luminosity: "luminosity";
790
+ passThrough: "passThrough";
791
+ }>>;
792
+ opacity: z.ZodOptional<z.ZodNumber>;
793
+ }, z.core.$strip>>;
794
+ innerShadow: z.ZodOptional<z.ZodObject<{
795
+ choke: z.ZodOptional<z.ZodNumber>;
796
+ color: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
797
+ angle: z.ZodOptional<z.ZodNumber>;
798
+ distance: z.ZodOptional<z.ZodNumber>;
799
+ size: z.ZodOptional<z.ZodNumber>;
800
+ enabled: z.ZodOptional<z.ZodBoolean>;
801
+ blendMode: z.ZodOptional<z.ZodEnum<{
802
+ color: "color";
803
+ normal: "normal";
804
+ dissolve: "dissolve";
805
+ darken: "darken";
806
+ multiply: "multiply";
807
+ colorBurn: "colorBurn";
808
+ linearBurn: "linearBurn";
809
+ darkerColor: "darkerColor";
810
+ lighten: "lighten";
811
+ screen: "screen";
812
+ colorDodge: "colorDodge";
813
+ linearDodge: "linearDodge";
814
+ lighterColor: "lighterColor";
815
+ overlay: "overlay";
816
+ softLight: "softLight";
817
+ hardLight: "hardLight";
818
+ vividLight: "vividLight";
819
+ linearLight: "linearLight";
820
+ pinLight: "pinLight";
821
+ hardMix: "hardMix";
822
+ difference: "difference";
823
+ exclusion: "exclusion";
824
+ subtract: "subtract";
825
+ divide: "divide";
826
+ hue: "hue";
827
+ saturation: "saturation";
828
+ luminosity: "luminosity";
829
+ passThrough: "passThrough";
830
+ }>>;
831
+ opacity: z.ZodOptional<z.ZodNumber>;
832
+ }, z.core.$strip>>;
833
+ outerGlow: z.ZodOptional<z.ZodObject<{
834
+ color: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
835
+ spread: z.ZodOptional<z.ZodNumber>;
836
+ size: z.ZodOptional<z.ZodNumber>;
837
+ enabled: z.ZodOptional<z.ZodBoolean>;
838
+ blendMode: z.ZodOptional<z.ZodEnum<{
839
+ color: "color";
840
+ normal: "normal";
841
+ dissolve: "dissolve";
842
+ darken: "darken";
843
+ multiply: "multiply";
844
+ colorBurn: "colorBurn";
845
+ linearBurn: "linearBurn";
846
+ darkerColor: "darkerColor";
847
+ lighten: "lighten";
848
+ screen: "screen";
849
+ colorDodge: "colorDodge";
850
+ linearDodge: "linearDodge";
851
+ lighterColor: "lighterColor";
852
+ overlay: "overlay";
853
+ softLight: "softLight";
854
+ hardLight: "hardLight";
855
+ vividLight: "vividLight";
856
+ linearLight: "linearLight";
857
+ pinLight: "pinLight";
858
+ hardMix: "hardMix";
859
+ difference: "difference";
860
+ exclusion: "exclusion";
861
+ subtract: "subtract";
862
+ divide: "divide";
863
+ hue: "hue";
864
+ saturation: "saturation";
865
+ luminosity: "luminosity";
866
+ passThrough: "passThrough";
867
+ }>>;
868
+ opacity: z.ZodOptional<z.ZodNumber>;
869
+ }, z.core.$strip>>;
870
+ innerGlow: z.ZodOptional<z.ZodObject<{
871
+ color: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
872
+ choke: z.ZodOptional<z.ZodNumber>;
873
+ size: z.ZodOptional<z.ZodNumber>;
874
+ source: z.ZodOptional<z.ZodEnum<{
875
+ edge: "edge";
876
+ center: "center";
877
+ }>>;
878
+ enabled: z.ZodOptional<z.ZodBoolean>;
879
+ blendMode: z.ZodOptional<z.ZodEnum<{
880
+ color: "color";
881
+ normal: "normal";
882
+ dissolve: "dissolve";
883
+ darken: "darken";
884
+ multiply: "multiply";
885
+ colorBurn: "colorBurn";
886
+ linearBurn: "linearBurn";
887
+ darkerColor: "darkerColor";
888
+ lighten: "lighten";
889
+ screen: "screen";
890
+ colorDodge: "colorDodge";
891
+ linearDodge: "linearDodge";
892
+ lighterColor: "lighterColor";
893
+ overlay: "overlay";
894
+ softLight: "softLight";
895
+ hardLight: "hardLight";
896
+ vividLight: "vividLight";
897
+ linearLight: "linearLight";
898
+ pinLight: "pinLight";
899
+ hardMix: "hardMix";
900
+ difference: "difference";
901
+ exclusion: "exclusion";
902
+ subtract: "subtract";
903
+ divide: "divide";
904
+ hue: "hue";
905
+ saturation: "saturation";
906
+ luminosity: "luminosity";
907
+ passThrough: "passThrough";
908
+ }>>;
909
+ opacity: z.ZodOptional<z.ZodNumber>;
910
+ }, z.core.$strip>>;
911
+ stroke: z.ZodOptional<z.ZodObject<{
912
+ color: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
913
+ size: z.ZodOptional<z.ZodNumber>;
914
+ position: z.ZodOptional<z.ZodEnum<{
915
+ center: "center";
916
+ outside: "outside";
917
+ inside: "inside";
918
+ }>>;
919
+ enabled: z.ZodOptional<z.ZodBoolean>;
920
+ blendMode: z.ZodOptional<z.ZodEnum<{
921
+ color: "color";
922
+ normal: "normal";
923
+ dissolve: "dissolve";
924
+ darken: "darken";
925
+ multiply: "multiply";
926
+ colorBurn: "colorBurn";
927
+ linearBurn: "linearBurn";
928
+ darkerColor: "darkerColor";
929
+ lighten: "lighten";
930
+ screen: "screen";
931
+ colorDodge: "colorDodge";
932
+ linearDodge: "linearDodge";
933
+ lighterColor: "lighterColor";
934
+ overlay: "overlay";
935
+ softLight: "softLight";
936
+ hardLight: "hardLight";
937
+ vividLight: "vividLight";
938
+ linearLight: "linearLight";
939
+ pinLight: "pinLight";
940
+ hardMix: "hardMix";
941
+ difference: "difference";
942
+ exclusion: "exclusion";
943
+ subtract: "subtract";
944
+ divide: "divide";
945
+ hue: "hue";
946
+ saturation: "saturation";
947
+ luminosity: "luminosity";
948
+ passThrough: "passThrough";
949
+ }>>;
950
+ opacity: z.ZodOptional<z.ZodNumber>;
951
+ }, z.core.$strip>>;
952
+ colorOverlay: z.ZodOptional<z.ZodObject<{
953
+ color: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
954
+ enabled: z.ZodOptional<z.ZodBoolean>;
955
+ blendMode: z.ZodOptional<z.ZodEnum<{
956
+ color: "color";
957
+ normal: "normal";
958
+ dissolve: "dissolve";
959
+ darken: "darken";
960
+ multiply: "multiply";
961
+ colorBurn: "colorBurn";
962
+ linearBurn: "linearBurn";
963
+ darkerColor: "darkerColor";
964
+ lighten: "lighten";
965
+ screen: "screen";
966
+ colorDodge: "colorDodge";
967
+ linearDodge: "linearDodge";
968
+ lighterColor: "lighterColor";
969
+ overlay: "overlay";
970
+ softLight: "softLight";
971
+ hardLight: "hardLight";
972
+ vividLight: "vividLight";
973
+ linearLight: "linearLight";
974
+ pinLight: "pinLight";
975
+ hardMix: "hardMix";
976
+ difference: "difference";
977
+ exclusion: "exclusion";
978
+ subtract: "subtract";
979
+ divide: "divide";
980
+ hue: "hue";
981
+ saturation: "saturation";
982
+ luminosity: "luminosity";
983
+ passThrough: "passThrough";
984
+ }>>;
985
+ opacity: z.ZodOptional<z.ZodNumber>;
986
+ }, z.core.$strip>>;
987
+ gradientOverlay: z.ZodOptional<z.ZodObject<{
988
+ gradient: z.ZodOptional<z.ZodObject<{
989
+ stops: z.ZodArray<z.ZodObject<{
990
+ color: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
991
+ location: z.ZodNumber;
992
+ midpoint: z.ZodOptional<z.ZodNumber>;
993
+ }, z.core.$strip>>;
994
+ style: z.ZodOptional<z.ZodEnum<{
995
+ linear: "linear";
996
+ radial: "radial";
997
+ angle: "angle";
998
+ reflected: "reflected";
999
+ diamond: "diamond";
1000
+ }>>;
1001
+ angle: z.ZodOptional<z.ZodNumber>;
1002
+ scale: z.ZodOptional<z.ZodNumber>;
1003
+ reverse: z.ZodOptional<z.ZodBoolean>;
1004
+ }, z.core.$strip>>;
1005
+ enabled: z.ZodOptional<z.ZodBoolean>;
1006
+ blendMode: z.ZodOptional<z.ZodEnum<{
1007
+ color: "color";
1008
+ normal: "normal";
1009
+ dissolve: "dissolve";
1010
+ darken: "darken";
1011
+ multiply: "multiply";
1012
+ colorBurn: "colorBurn";
1013
+ linearBurn: "linearBurn";
1014
+ darkerColor: "darkerColor";
1015
+ lighten: "lighten";
1016
+ screen: "screen";
1017
+ colorDodge: "colorDodge";
1018
+ linearDodge: "linearDodge";
1019
+ lighterColor: "lighterColor";
1020
+ overlay: "overlay";
1021
+ softLight: "softLight";
1022
+ hardLight: "hardLight";
1023
+ vividLight: "vividLight";
1024
+ linearLight: "linearLight";
1025
+ pinLight: "pinLight";
1026
+ hardMix: "hardMix";
1027
+ difference: "difference";
1028
+ exclusion: "exclusion";
1029
+ subtract: "subtract";
1030
+ divide: "divide";
1031
+ hue: "hue";
1032
+ saturation: "saturation";
1033
+ luminosity: "luminosity";
1034
+ passThrough: "passThrough";
1035
+ }>>;
1036
+ opacity: z.ZodOptional<z.ZodNumber>;
1037
+ }, z.core.$strip>>;
1038
+ patternOverlay: z.ZodOptional<z.ZodObject<{
1039
+ pattern: z.ZodUnion<readonly [z.ZodString, z.ZodCustom<MediaInfo, MediaInfo>]>;
1040
+ scale: z.ZodOptional<z.ZodNumber>;
1041
+ enabled: z.ZodOptional<z.ZodBoolean>;
1042
+ blendMode: z.ZodOptional<z.ZodEnum<{
1043
+ color: "color";
1044
+ normal: "normal";
1045
+ dissolve: "dissolve";
1046
+ darken: "darken";
1047
+ multiply: "multiply";
1048
+ colorBurn: "colorBurn";
1049
+ linearBurn: "linearBurn";
1050
+ darkerColor: "darkerColor";
1051
+ lighten: "lighten";
1052
+ screen: "screen";
1053
+ colorDodge: "colorDodge";
1054
+ linearDodge: "linearDodge";
1055
+ lighterColor: "lighterColor";
1056
+ overlay: "overlay";
1057
+ softLight: "softLight";
1058
+ hardLight: "hardLight";
1059
+ vividLight: "vividLight";
1060
+ linearLight: "linearLight";
1061
+ pinLight: "pinLight";
1062
+ hardMix: "hardMix";
1063
+ difference: "difference";
1064
+ exclusion: "exclusion";
1065
+ subtract: "subtract";
1066
+ divide: "divide";
1067
+ hue: "hue";
1068
+ saturation: "saturation";
1069
+ luminosity: "luminosity";
1070
+ passThrough: "passThrough";
1071
+ }>>;
1072
+ opacity: z.ZodOptional<z.ZodNumber>;
1073
+ }, z.core.$strip>>;
1074
+ satin: z.ZodOptional<z.ZodObject<{
1075
+ color: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
1076
+ angle: z.ZodOptional<z.ZodNumber>;
1077
+ distance: z.ZodOptional<z.ZodNumber>;
1078
+ size: z.ZodOptional<z.ZodNumber>;
1079
+ invert: z.ZodOptional<z.ZodBoolean>;
1080
+ enabled: z.ZodOptional<z.ZodBoolean>;
1081
+ blendMode: z.ZodOptional<z.ZodEnum<{
1082
+ color: "color";
1083
+ normal: "normal";
1084
+ dissolve: "dissolve";
1085
+ darken: "darken";
1086
+ multiply: "multiply";
1087
+ colorBurn: "colorBurn";
1088
+ linearBurn: "linearBurn";
1089
+ darkerColor: "darkerColor";
1090
+ lighten: "lighten";
1091
+ screen: "screen";
1092
+ colorDodge: "colorDodge";
1093
+ linearDodge: "linearDodge";
1094
+ lighterColor: "lighterColor";
1095
+ overlay: "overlay";
1096
+ softLight: "softLight";
1097
+ hardLight: "hardLight";
1098
+ vividLight: "vividLight";
1099
+ linearLight: "linearLight";
1100
+ pinLight: "pinLight";
1101
+ hardMix: "hardMix";
1102
+ difference: "difference";
1103
+ exclusion: "exclusion";
1104
+ subtract: "subtract";
1105
+ divide: "divide";
1106
+ hue: "hue";
1107
+ saturation: "saturation";
1108
+ luminosity: "luminosity";
1109
+ passThrough: "passThrough";
1110
+ }>>;
1111
+ opacity: z.ZodOptional<z.ZodNumber>;
1112
+ }, z.core.$strip>>;
1113
+ bevelEmboss: z.ZodOptional<z.ZodObject<{
1114
+ style: z.ZodOptional<z.ZodEnum<{
1115
+ innerBevel: "innerBevel";
1116
+ outerBevel: "outerBevel";
1117
+ emboss: "emboss";
1118
+ pillowEmboss: "pillowEmboss";
1119
+ strokeEmboss: "strokeEmboss";
1120
+ }>>;
1121
+ technique: z.ZodOptional<z.ZodEnum<{
1122
+ smooth: "smooth";
1123
+ chiselHard: "chiselHard";
1124
+ chiselSoft: "chiselSoft";
1125
+ }>>;
1126
+ depth: z.ZodOptional<z.ZodNumber>;
1127
+ direction: z.ZodOptional<z.ZodEnum<{
1128
+ up: "up";
1129
+ down: "down";
1130
+ }>>;
1131
+ size: z.ZodOptional<z.ZodNumber>;
1132
+ soften: z.ZodOptional<z.ZodNumber>;
1133
+ angle: z.ZodOptional<z.ZodNumber>;
1134
+ altitude: z.ZodOptional<z.ZodNumber>;
1135
+ highlightMode: z.ZodOptional<z.ZodEnum<{
1136
+ color: "color";
1137
+ normal: "normal";
1138
+ dissolve: "dissolve";
1139
+ darken: "darken";
1140
+ multiply: "multiply";
1141
+ colorBurn: "colorBurn";
1142
+ linearBurn: "linearBurn";
1143
+ darkerColor: "darkerColor";
1144
+ lighten: "lighten";
1145
+ screen: "screen";
1146
+ colorDodge: "colorDodge";
1147
+ linearDodge: "linearDodge";
1148
+ lighterColor: "lighterColor";
1149
+ overlay: "overlay";
1150
+ softLight: "softLight";
1151
+ hardLight: "hardLight";
1152
+ vividLight: "vividLight";
1153
+ linearLight: "linearLight";
1154
+ pinLight: "pinLight";
1155
+ hardMix: "hardMix";
1156
+ difference: "difference";
1157
+ exclusion: "exclusion";
1158
+ subtract: "subtract";
1159
+ divide: "divide";
1160
+ hue: "hue";
1161
+ saturation: "saturation";
1162
+ luminosity: "luminosity";
1163
+ passThrough: "passThrough";
1164
+ }>>;
1165
+ highlightColor: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
1166
+ highlightOpacity: z.ZodOptional<z.ZodNumber>;
1167
+ shadowMode: z.ZodOptional<z.ZodEnum<{
1168
+ color: "color";
1169
+ normal: "normal";
1170
+ dissolve: "dissolve";
1171
+ darken: "darken";
1172
+ multiply: "multiply";
1173
+ colorBurn: "colorBurn";
1174
+ linearBurn: "linearBurn";
1175
+ darkerColor: "darkerColor";
1176
+ lighten: "lighten";
1177
+ screen: "screen";
1178
+ colorDodge: "colorDodge";
1179
+ linearDodge: "linearDodge";
1180
+ lighterColor: "lighterColor";
1181
+ overlay: "overlay";
1182
+ softLight: "softLight";
1183
+ hardLight: "hardLight";
1184
+ vividLight: "vividLight";
1185
+ linearLight: "linearLight";
1186
+ pinLight: "pinLight";
1187
+ hardMix: "hardMix";
1188
+ difference: "difference";
1189
+ exclusion: "exclusion";
1190
+ subtract: "subtract";
1191
+ divide: "divide";
1192
+ hue: "hue";
1193
+ saturation: "saturation";
1194
+ luminosity: "luminosity";
1195
+ passThrough: "passThrough";
1196
+ }>>;
1197
+ shadowColor: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
1198
+ shadowOpacity: z.ZodOptional<z.ZodNumber>;
1199
+ enabled: z.ZodOptional<z.ZodBoolean>;
1200
+ blendMode: z.ZodOptional<z.ZodEnum<{
1201
+ color: "color";
1202
+ normal: "normal";
1203
+ dissolve: "dissolve";
1204
+ darken: "darken";
1205
+ multiply: "multiply";
1206
+ colorBurn: "colorBurn";
1207
+ linearBurn: "linearBurn";
1208
+ darkerColor: "darkerColor";
1209
+ lighten: "lighten";
1210
+ screen: "screen";
1211
+ colorDodge: "colorDodge";
1212
+ linearDodge: "linearDodge";
1213
+ lighterColor: "lighterColor";
1214
+ overlay: "overlay";
1215
+ softLight: "softLight";
1216
+ hardLight: "hardLight";
1217
+ vividLight: "vividLight";
1218
+ linearLight: "linearLight";
1219
+ pinLight: "pinLight";
1220
+ hardMix: "hardMix";
1221
+ difference: "difference";
1222
+ exclusion: "exclusion";
1223
+ subtract: "subtract";
1224
+ divide: "divide";
1225
+ hue: "hue";
1226
+ saturation: "saturation";
1227
+ luminosity: "luminosity";
1228
+ passThrough: "passThrough";
1229
+ }>>;
1230
+ opacity: z.ZodOptional<z.ZodNumber>;
1231
+ }, z.core.$strip>>;
1232
+ }, z.core.$strip>>;
1233
+ transform: z.ZodOptional<z.ZodObject<{
1234
+ rotation: z.ZodOptional<z.ZodNumber>;
1235
+ flipH: z.ZodOptional<z.ZodBoolean>;
1236
+ flipV: z.ZodOptional<z.ZodBoolean>;
1237
+ }, z.core.$strip>>;
1238
+ visible: z.ZodOptional<z.ZodBoolean>;
1239
+ }, z.core.$strip>;
1240
+ export type LayerStyle = z.infer<typeof LayerStyleSchema>;
1241
+ /** The names of a layer's style, which every layer function takes beside its own options. */
1242
+ export declare const LAYER_STYLE_FIELDS: readonly ["blendMode", "opacity", "fillOpacity", "clipping", "mask", "effects", "transform", "visible"];
1243
+ /** A layer's style when it gives none: what draws it as it is. */
1244
+ export declare const LAYER_STYLE_DEFAULTS: {
1245
+ readonly blendMode: "normal";
1246
+ /** A group's. */
1247
+ readonly groupBlendMode: "passThrough";
1248
+ readonly opacity: 100;
1249
+ readonly fillOpacity: 100;
1250
+ readonly clipping: false;
1251
+ readonly visible: true;
1252
+ readonly mask: {
1253
+ readonly mode: "alpha";
1254
+ readonly density: 100;
1255
+ readonly feather: 0;
1256
+ readonly invert: false;
1257
+ };
1258
+ };
1259
+ /** One channel's Levels: what input black and white become, and the midtones' gamma. */
1260
+ export declare const LevelsChannelSchema: z.ZodObject<{
1261
+ inputBlack: z.ZodOptional<z.ZodNumber>;
1262
+ inputWhite: z.ZodOptional<z.ZodNumber>;
1263
+ gamma: z.ZodOptional<z.ZodNumber>;
1264
+ outputBlack: z.ZodOptional<z.ZodNumber>;
1265
+ outputWhite: z.ZodOptional<z.ZodNumber>;
1266
+ }, z.core.$strip>;
1267
+ export type LevelsChannel = z.infer<typeof LevelsChannelSchema>;
1268
+ /** A curve: [input, output] points, 0–255, in order of input. */
1269
+ export declare const CurveSchema: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1270
+ /** The adjustments AllyHub draws, by Photoshop's names, each with its numbers. */
1271
+ export declare const AdjustmentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1272
+ kind: z.ZodLiteral<"levels">;
1273
+ rgb: z.ZodOptional<z.ZodObject<{
1274
+ inputBlack: z.ZodOptional<z.ZodNumber>;
1275
+ inputWhite: z.ZodOptional<z.ZodNumber>;
1276
+ gamma: z.ZodOptional<z.ZodNumber>;
1277
+ outputBlack: z.ZodOptional<z.ZodNumber>;
1278
+ outputWhite: z.ZodOptional<z.ZodNumber>;
1279
+ }, z.core.$strip>>;
1280
+ red: z.ZodOptional<z.ZodObject<{
1281
+ inputBlack: z.ZodOptional<z.ZodNumber>;
1282
+ inputWhite: z.ZodOptional<z.ZodNumber>;
1283
+ gamma: z.ZodOptional<z.ZodNumber>;
1284
+ outputBlack: z.ZodOptional<z.ZodNumber>;
1285
+ outputWhite: z.ZodOptional<z.ZodNumber>;
1286
+ }, z.core.$strip>>;
1287
+ green: z.ZodOptional<z.ZodObject<{
1288
+ inputBlack: z.ZodOptional<z.ZodNumber>;
1289
+ inputWhite: z.ZodOptional<z.ZodNumber>;
1290
+ gamma: z.ZodOptional<z.ZodNumber>;
1291
+ outputBlack: z.ZodOptional<z.ZodNumber>;
1292
+ outputWhite: z.ZodOptional<z.ZodNumber>;
1293
+ }, z.core.$strip>>;
1294
+ blue: z.ZodOptional<z.ZodObject<{
1295
+ inputBlack: z.ZodOptional<z.ZodNumber>;
1296
+ inputWhite: z.ZodOptional<z.ZodNumber>;
1297
+ gamma: z.ZodOptional<z.ZodNumber>;
1298
+ outputBlack: z.ZodOptional<z.ZodNumber>;
1299
+ outputWhite: z.ZodOptional<z.ZodNumber>;
1300
+ }, z.core.$strip>>;
1301
+ }, z.core.$strip>, z.ZodObject<{
1302
+ kind: z.ZodLiteral<"curves">;
1303
+ rgb: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
1304
+ red: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
1305
+ green: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
1306
+ blue: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
1307
+ }, z.core.$strip>, z.ZodObject<{
1308
+ kind: z.ZodLiteral<"brightnessContrast">;
1309
+ brightness: z.ZodOptional<z.ZodNumber>;
1310
+ contrast: z.ZodOptional<z.ZodNumber>;
1311
+ useLegacy: z.ZodOptional<z.ZodBoolean>;
1312
+ }, z.core.$strip>, z.ZodObject<{
1313
+ kind: z.ZodLiteral<"hueSaturation">;
1314
+ hue: z.ZodOptional<z.ZodNumber>;
1315
+ saturation: z.ZodOptional<z.ZodNumber>;
1316
+ lightness: z.ZodOptional<z.ZodNumber>;
1317
+ colorize: z.ZodOptional<z.ZodBoolean>;
1318
+ }, z.core.$strip>, z.ZodObject<{
1319
+ kind: z.ZodLiteral<"vibrance">;
1320
+ vibrance: z.ZodOptional<z.ZodNumber>;
1321
+ saturation: z.ZodOptional<z.ZodNumber>;
1322
+ }, z.core.$strip>, z.ZodObject<{
1323
+ kind: z.ZodLiteral<"colorBalance">;
1324
+ shadows: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
1325
+ midtones: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
1326
+ highlights: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
1327
+ preserveLuminosity: z.ZodOptional<z.ZodBoolean>;
1328
+ }, z.core.$strip>, z.ZodObject<{
1329
+ kind: z.ZodLiteral<"blackAndWhite">;
1330
+ reds: z.ZodOptional<z.ZodNumber>;
1331
+ yellows: z.ZodOptional<z.ZodNumber>;
1332
+ greens: z.ZodOptional<z.ZodNumber>;
1333
+ cyans: z.ZodOptional<z.ZodNumber>;
1334
+ blues: z.ZodOptional<z.ZodNumber>;
1335
+ magentas: z.ZodOptional<z.ZodNumber>;
1336
+ }, z.core.$strip>, z.ZodObject<{
1337
+ kind: z.ZodLiteral<"photoFilter">;
1338
+ color: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
1339
+ density: z.ZodOptional<z.ZodNumber>;
1340
+ preserveLuminosity: z.ZodOptional<z.ZodBoolean>;
1341
+ }, z.core.$strip>, z.ZodObject<{
1342
+ kind: z.ZodLiteral<"invert">;
1343
+ }, z.core.$strip>, z.ZodObject<{
1344
+ kind: z.ZodLiteral<"threshold">;
1345
+ level: z.ZodOptional<z.ZodNumber>;
1346
+ }, z.core.$strip>, z.ZodObject<{
1347
+ kind: z.ZodLiteral<"gradientMap">;
1348
+ gradient: z.ZodOptional<z.ZodObject<{
1349
+ stops: z.ZodArray<z.ZodObject<{
1350
+ color: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1351
+ location: z.ZodNumber;
1352
+ midpoint: z.ZodOptional<z.ZodNumber>;
1353
+ }, z.core.$strip>>;
1354
+ style: z.ZodOptional<z.ZodEnum<{
1355
+ linear: "linear";
1356
+ radial: "radial";
1357
+ angle: "angle";
1358
+ reflected: "reflected";
1359
+ diamond: "diamond";
1360
+ }>>;
1361
+ angle: z.ZodOptional<z.ZodNumber>;
1362
+ scale: z.ZodOptional<z.ZodNumber>;
1363
+ reverse: z.ZodOptional<z.ZodBoolean>;
1364
+ }, z.core.$strip>>;
1365
+ reverse: z.ZodOptional<z.ZodBoolean>;
1366
+ }, z.core.$strip>, z.ZodObject<{
1367
+ kind: z.ZodLiteral<"exposure">;
1368
+ exposure: z.ZodOptional<z.ZodNumber>;
1369
+ offset: z.ZodOptional<z.ZodNumber>;
1370
+ gammaCorrection: z.ZodOptional<z.ZodNumber>;
1371
+ }, z.core.$strip>], "kind">;
1372
+ export type Adjustment = z.infer<typeof AdjustmentSchema>;
1373
+ export type AdjustmentKind = Adjustment["kind"];
1374
+ /** The adjustment kinds, in Photoshop's Adjustments panel's order. */
1375
+ export declare const ADJUSTMENT_KINDS: readonly AdjustmentKind[];
1376
+ /** Each adjustment's numbers when it gives none: Photoshop's, which change nothing (but Invert's, Threshold's, Black & White's and Photo Filter's). */
1377
+ export declare const ADJUSTMENT_DEFAULTS: {
1378
+ readonly levels: {
1379
+ readonly inputBlack: 0;
1380
+ readonly inputWhite: 255;
1381
+ readonly gamma: 1;
1382
+ readonly outputBlack: 0;
1383
+ readonly outputWhite: 255;
1384
+ };
1385
+ readonly curves: {
1386
+ readonly rgb: readonly [readonly [0, 0], readonly [255, 255]];
1387
+ };
1388
+ readonly brightnessContrast: {
1389
+ readonly brightness: 0;
1390
+ readonly contrast: 0;
1391
+ readonly useLegacy: true;
1392
+ };
1393
+ readonly hueSaturation: {
1394
+ readonly hue: 0;
1395
+ readonly saturation: 0;
1396
+ readonly lightness: 0;
1397
+ readonly colorize: false;
1398
+ };
1399
+ readonly vibrance: {
1400
+ readonly vibrance: 0;
1401
+ readonly saturation: 0;
1402
+ };
1403
+ readonly colorBalance: {
1404
+ readonly shadows: readonly [0, 0, 0];
1405
+ readonly midtones: readonly [0, 0, 0];
1406
+ readonly highlights: readonly [0, 0, 0];
1407
+ readonly preserveLuminosity: true;
1408
+ };
1409
+ readonly blackAndWhite: {
1410
+ readonly reds: 40;
1411
+ readonly yellows: 60;
1412
+ readonly greens: 40;
1413
+ readonly cyans: 60;
1414
+ readonly blues: 20;
1415
+ readonly magentas: 80;
1416
+ };
1417
+ readonly photoFilter: {
1418
+ readonly color: "#ec8a00";
1419
+ readonly density: 25;
1420
+ readonly preserveLuminosity: true;
1421
+ };
1422
+ readonly invert: {};
1423
+ readonly threshold: {
1424
+ readonly level: 128;
1425
+ };
1426
+ readonly gradientMap: {
1427
+ readonly gradient: {
1428
+ readonly stops: readonly [{
1429
+ readonly color: "#000000";
1430
+ readonly location: 0;
1431
+ }, {
1432
+ readonly color: "#ffffff";
1433
+ readonly location: 100;
1434
+ }];
1435
+ };
1436
+ readonly reverse: false;
1437
+ };
1438
+ readonly exposure: {
1439
+ readonly exposure: 0;
1440
+ readonly offset: 0;
1441
+ readonly gammaCorrection: 1;
1442
+ };
1443
+ };
1444
+ /** The luminance of a colour for Threshold, Gradient Map and the luminosity kept: Rec. 601's weights. */
1445
+ export declare const LUMA: readonly [0.299, 0.587, 0.114];
1446
+ /** A shape's stroke: its colour, width, where it lies about the path, its dashes and ends. */
1447
+ export declare const ShapeStrokeSchema: z.ZodObject<{
1448
+ color: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
1449
+ width: z.ZodOptional<z.ZodNumber>;
1450
+ alignment: z.ZodOptional<z.ZodEnum<{
1451
+ center: "center";
1452
+ outside: "outside";
1453
+ inside: "inside";
1454
+ }>>;
1455
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1456
+ cap: z.ZodOptional<z.ZodEnum<{
1457
+ square: "square";
1458
+ butt: "butt";
1459
+ round: "round";
1460
+ }>>;
1461
+ join: z.ZodOptional<z.ZodEnum<{
1462
+ round: "round";
1463
+ miter: "miter";
1464
+ bevel: "bevel";
1465
+ }>>;
1466
+ opacity: z.ZodOptional<z.ZodNumber>;
1467
+ }, z.core.$strip>;
1468
+ export type ShapeStroke = z.infer<typeof ShapeStrokeSchema>;
1469
+ export declare const SHAPE_DEFAULTS: {
1470
+ readonly fill: {
1471
+ readonly color: "#000000";
1472
+ };
1473
+ readonly stroke: {
1474
+ readonly color: "#000000";
1475
+ readonly width: 1;
1476
+ readonly alignment: "center";
1477
+ readonly cap: "butt";
1478
+ readonly join: "miter";
1479
+ readonly opacity: 100;
1480
+ };
1481
+ readonly radius: 0;
1482
+ readonly sides: 5;
1483
+ };
1484
+ /** A shape's geometry: Photoshop's shape tools, or a path in the board's pixels. */
1485
+ export declare const SHAPE_KINDS: readonly ["rectangle", "ellipse", "triangle", "polygon", "line", "path"];
1486
+ export type ShapeKind = (typeof SHAPE_KINDS)[number];
1487
+ export declare const CharacterStyleSchema: z.ZodObject<{
1488
+ font: z.ZodOptional<z.ZodString>;
1489
+ weight: z.ZodOptional<z.ZodNumber>;
1490
+ italic: z.ZodOptional<z.ZodBoolean>;
1491
+ size: z.ZodOptional<z.ZodNumber>;
1492
+ color: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
1493
+ tracking: z.ZodOptional<z.ZodNumber>;
1494
+ leading: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"auto">]>>;
1495
+ capitalization: z.ZodOptional<z.ZodEnum<{
1496
+ normal: "normal";
1497
+ allCaps: "allCaps";
1498
+ smallCaps: "smallCaps";
1499
+ }>>;
1500
+ underline: z.ZodOptional<z.ZodBoolean>;
1501
+ strikeThrough: z.ZodOptional<z.ZodBoolean>;
1502
+ }, z.core.$strip>;
1503
+ export type CharacterStyle = z.infer<typeof CharacterStyleSchema>;
1504
+ export declare const JUSTIFICATIONS: readonly ["left", "center", "right", "justifyLeft", "justifyCenter", "justifyRight", "justifyAll"];
1505
+ export declare const ParagraphStyleSchema: z.ZodObject<{
1506
+ justification: z.ZodOptional<z.ZodEnum<{
1507
+ left: "left";
1508
+ right: "right";
1509
+ center: "center";
1510
+ justifyLeft: "justifyLeft";
1511
+ justifyCenter: "justifyCenter";
1512
+ justifyRight: "justifyRight";
1513
+ justifyAll: "justifyAll";
1514
+ }>>;
1515
+ firstLineIndent: z.ZodOptional<z.ZodNumber>;
1516
+ leftIndent: z.ZodOptional<z.ZodNumber>;
1517
+ rightIndent: z.ZodOptional<z.ZodNumber>;
1518
+ spaceBefore: z.ZodOptional<z.ZodNumber>;
1519
+ spaceAfter: z.ZodOptional<z.ZodNumber>;
1520
+ }, z.core.$strip>;
1521
+ export type ParagraphStyle = z.infer<typeof ParagraphStyleSchema>;
1522
+ export declare const TEXT_DEFAULTS: {
1523
+ readonly size: 48;
1524
+ readonly weight: 400;
1525
+ readonly color: "#000000";
1526
+ readonly tracking: 0;
1527
+ readonly leading: "auto";
1528
+ /** Photoshop's auto leading, of the size. */
1529
+ readonly autoLeading: 1.2;
1530
+ readonly justification: "left";
1531
+ };
1532
+ /** What of a layer's style Chrome cannot draw exactly, as the layer of `kind` has it; undefined when all of it draws. */
1533
+ export declare function refusalOf(style: LayerStyle, kind: LayerKind): string | undefined;
1534
+ /** What an adjustment asks that is refused, or undefined. */
1535
+ export declare function adjustmentRefusal(a: Adjustment): string | undefined;
1536
+ /**
1537
+ * The kinds of layer, as psd-tools' classes are (Photoshop's LayerKind
1538
+ * where it has one): a picture (pixel), a type layer, a shape, a component
1539
+ * (a smart object: code that draws), an adjustment, a fill, a group.
1540
+ */
1541
+ export declare const LAYER_KINDS: readonly ["pixel", "type", "shape", "smartObject", "adjustment", "fill", "group"];
1542
+ export type LayerKind = (typeof LAYER_KINDS)[number];
1543
+ /** A zod error's first issue as one line: where, and what it takes. */
1544
+ export declare function issueOf(e: z.ZodError, at?: string): string;
1545
+ /**
1546
+ * A layer's style read and checked: its fields, or what is wrong, `invalid`
1547
+ * (a field is not what it takes) or `refused` (what Chrome cannot draw
1548
+ * exactly), which the kind that draws it reports under a rule of its own.
1549
+ */
1550
+ export declare function readLayerStyle(opts: Readonly<Record<string, unknown>>, kind: LayerKind): {
1551
+ style: LayerStyle;
1552
+ } | {
1553
+ problem: string;
1554
+ why: "invalid" | "refused";
1555
+ };
1556
+ /** Whether a layer's style changes how it is drawn at all: none does not, so it is drawn as before the model. */
1557
+ export declare function styled(style: LayerStyle | undefined): boolean;
1558
+ //# sourceMappingURL=layer-style.d.ts.map