@league-of-foundry-developers/foundry-vtt-types 9.280.1 → 12.331.2-beta

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 (1000) hide show
  1. package/README.md +37 -20
  2. package/index-lenient.d.mts +7 -0
  3. package/index.d.mts +5 -0
  4. package/package.json +67 -39
  5. package/src/foundry/client/apps/app.d.mts +602 -0
  6. package/src/foundry/client/apps/av/av-config.d.mts +93 -0
  7. package/src/foundry/client/apps/av/cameras.d.mts +189 -0
  8. package/src/foundry/client/apps/av/index.d.mts +3 -0
  9. package/src/foundry/client/apps/dialogs/folder-export.d.mts +16 -0
  10. package/src/foundry/client/apps/dialogs/index.d.mts +1 -0
  11. package/src/foundry/client/apps/form.d.mts +484 -0
  12. package/src/foundry/client/apps/forms/actor.d.mts +176 -0
  13. package/src/foundry/client/apps/forms/adventure-exporter.d.mts +132 -0
  14. package/src/foundry/client/apps/forms/adventure-importer.d.mts +85 -0
  15. package/src/foundry/client/apps/forms/base-sheet.d.mts +45 -0
  16. package/src/foundry/client/apps/forms/card-config.d.mts +48 -0
  17. package/src/foundry/client/apps/forms/cards-config.d.mts +141 -0
  18. package/src/foundry/client/apps/forms/combat-config.d.mts +51 -0
  19. package/src/foundry/client/apps/forms/combatant-config.d.mts +45 -0
  20. package/src/foundry/client/apps/forms/default-sheets-config.d.mts +46 -0
  21. package/src/foundry/client/apps/forms/effect-config.d.mts +77 -0
  22. package/src/foundry/client/apps/forms/folder-config.d.mts +60 -0
  23. package/src/foundry/client/apps/forms/fonts.d.mts +168 -0
  24. package/src/foundry/client/apps/forms/grid-config.d.mts +144 -0
  25. package/src/foundry/client/apps/forms/image-popout.d.mts +179 -0
  26. package/src/foundry/client/apps/forms/index.d.mts +26 -0
  27. package/src/foundry/client/apps/forms/item.d.mts +58 -0
  28. package/src/foundry/client/apps/forms/journal-page-sheet.d.mts +313 -0
  29. package/src/foundry/client/apps/forms/journal-sheet.d.mts +312 -0
  30. package/src/foundry/client/apps/forms/macro-config.d.mts +59 -0
  31. package/src/foundry/client/apps/forms/measure-template.d.mts +59 -0
  32. package/src/foundry/client/apps/forms/ownership.d.mts +66 -0
  33. package/src/foundry/client/apps/forms/playlist-config.d.mts +46 -0
  34. package/src/foundry/client/apps/forms/playlist-sound-config.d.mts +63 -0
  35. package/src/foundry/client/apps/forms/roll-table-config.d.mts +160 -0
  36. package/src/foundry/client/apps/forms/scene-config.d.mts +157 -0
  37. package/src/foundry/client/apps/forms/sheet-config.d.mts +203 -0
  38. package/src/foundry/client/apps/forms/user-config.d.mts +71 -0
  39. package/src/foundry/client/apps/hud/chatbubble.d.mts +113 -0
  40. package/src/foundry/client/apps/hud/container.d.mts +54 -0
  41. package/src/foundry/client/apps/hud/controls.d.mts +166 -0
  42. package/src/foundry/client/apps/hud/hotbar.d.mts +169 -0
  43. package/src/foundry/client/apps/hud/hud.d.mts +87 -0
  44. package/src/foundry/client/apps/hud/index.d.mts +9 -0
  45. package/src/foundry/client/apps/hud/menu.d.mts +77 -0
  46. package/src/foundry/client/apps/hud/navigation.d.mts +116 -0
  47. package/src/foundry/client/apps/hud/pause.d.mts +32 -0
  48. package/src/foundry/client/apps/hud/players.d.mts +82 -0
  49. package/src/foundry/client/apps/i18n.d.mts +218 -0
  50. package/src/foundry/client/apps/index.d.mts +10 -0
  51. package/src/foundry/client/apps/placeables/drawing-config.d.mts +80 -0
  52. package/src/foundry/client/apps/placeables/drawing-hud.d.mts +31 -0
  53. package/src/foundry/client/apps/placeables/index.d.mts +10 -0
  54. package/src/foundry/client/apps/placeables/light-config.d.mts +100 -0
  55. package/src/foundry/client/apps/placeables/note-config.d.mts +65 -0
  56. package/src/foundry/client/apps/placeables/sound-config.d.mts +43 -0
  57. package/src/foundry/client/apps/placeables/tile-config.d.mts +54 -0
  58. package/src/foundry/client/apps/placeables/tile-hud.d.mts +37 -0
  59. package/src/foundry/client/apps/placeables/token-config.d.mts +244 -0
  60. package/src/foundry/client/apps/placeables/token-hud.d.mts +134 -0
  61. package/src/foundry/client/apps/placeables/wall-config.d.mts +63 -0
  62. package/src/foundry/client/apps/sidebar/apps/chat-popout.d.mts +39 -0
  63. package/src/foundry/client/apps/sidebar/apps/client-settings.d.mts +98 -0
  64. package/src/foundry/client/apps/sidebar/apps/compendium.d.mts +93 -0
  65. package/src/foundry/client/apps/sidebar/apps/index.d.mts +10 -0
  66. package/src/foundry/client/apps/sidebar/apps/invitation-links.d.mts +32 -0
  67. package/src/foundry/client/apps/sidebar/apps/keybindings-config.d.mts +180 -0
  68. package/src/foundry/client/apps/sidebar/apps/module-management.d.mts +135 -0
  69. package/src/foundry/client/apps/sidebar/apps/permission-config.d.mts +72 -0
  70. package/src/foundry/client/apps/sidebar/apps/support-details.d.mts +121 -0
  71. package/src/foundry/client/apps/sidebar/apps/tours-management.d.mts +54 -0
  72. package/src/foundry/client/apps/sidebar/apps/world-config.d.mts +57 -0
  73. package/src/foundry/client/apps/sidebar/directory-tab-mixin.d.mts +276 -0
  74. package/src/foundry/client/apps/sidebar/document-directory.d.mts +163 -0
  75. package/src/foundry/client/apps/sidebar/index.d.mts +7 -0
  76. package/src/foundry/client/apps/sidebar/package-configuration.d.mts +86 -0
  77. package/src/foundry/client/apps/sidebar/sidebar-tab.d.mts +80 -0
  78. package/src/foundry/client/apps/sidebar/sidebar.d.mts +95 -0
  79. package/src/foundry/client/apps/sidebar/tabs/actors-directory.d.mts +20 -0
  80. package/src/foundry/client/apps/sidebar/tabs/cards-directory.d.mts +12 -0
  81. package/src/foundry/client/apps/sidebar/tabs/chat-log.d.mts +364 -0
  82. package/src/foundry/client/apps/sidebar/tabs/combat-tracker.d.mts +156 -0
  83. package/src/foundry/client/apps/sidebar/tabs/compendium-directory.d.mts +105 -0
  84. package/src/foundry/client/apps/sidebar/tabs/index.d.mts +12 -0
  85. package/src/foundry/client/apps/sidebar/tabs/items-directory.d.mts +14 -0
  86. package/src/foundry/client/apps/sidebar/tabs/journal-directory.d.mts +13 -0
  87. package/src/foundry/client/apps/sidebar/tabs/macros-directory.d.mts +16 -0
  88. package/src/foundry/client/apps/sidebar/tabs/playlists-directory.d.mts +275 -0
  89. package/src/foundry/client/apps/sidebar/tabs/roll-table-directory.d.mts +13 -0
  90. package/src/foundry/client/apps/sidebar/tabs/scenes-directory.d.mts +34 -0
  91. package/src/foundry/client/apps/sidebar/tabs/settings.d.mts +72 -0
  92. package/src/foundry/client/apps/templates.d.mts +482 -0
  93. package/src/foundry/client/av/client.d.mts +162 -0
  94. package/src/foundry/client/av/clients/index.d.mts +1 -0
  95. package/src/foundry/client/av/clients/simplepeer.d.mts +155 -0
  96. package/src/foundry/client/av/index.d.mts +4 -0
  97. package/src/foundry/client/av/master.d.mts +191 -0
  98. package/src/foundry/client/av/settings.d.mts +315 -0
  99. package/src/foundry/client/config.d.mts +3164 -0
  100. package/src/foundry/client/core/clipboard.d.mts +20 -0
  101. package/src/foundry/client/core/document-index.d.mts +118 -0
  102. package/src/foundry/client/core/gamepad.d.mts +76 -0
  103. package/src/foundry/client/core/hooks.d.mts +132 -0
  104. package/src/foundry/client/core/image.d.mts +190 -0
  105. package/src/foundry/client/core/index.d.mts +21 -0
  106. package/src/foundry/client/core/issues.d.mts +102 -0
  107. package/src/foundry/client/core/keybindings.d.mts +413 -0
  108. package/src/foundry/client/core/keyboard.d.mts +271 -0
  109. package/src/foundry/client/core/mouse.d.mts +28 -0
  110. package/src/foundry/client/core/nue.d.mts +38 -0
  111. package/src/foundry/client/core/packages.d.mts +201 -0
  112. package/src/foundry/client/core/settings.d.mts +361 -0
  113. package/src/foundry/client/core/socket.d.mts +62 -0
  114. package/src/foundry/client/core/sorting.d.mts +76 -0
  115. package/src/foundry/client/core/time.d.mts +73 -0
  116. package/src/foundry/client/core/tooltip.d.mts +198 -0
  117. package/src/foundry/client/core/tour.d.mts +279 -0
  118. package/src/foundry/client/core/tours.d.mts +22 -0
  119. package/src/foundry/client/core/utils.d.mts +71 -0
  120. package/src/foundry/client/core/video.d.mts +161 -0
  121. package/src/foundry/client/core/workers.d.mts +128 -0
  122. package/src/foundry/client/data/abstract/canvas-document.d.mts +70 -0
  123. package/src/foundry/client/data/abstract/client-document.d.mts +717 -0
  124. package/src/foundry/client/data/abstract/directory-collection-mixin.d.mts +135 -0
  125. package/src/foundry/client/data/abstract/document-collection.d.mts +218 -0
  126. package/src/foundry/client/data/abstract/index.d.mts +5 -0
  127. package/src/foundry/client/data/abstract/world-collection.d.mts +165 -0
  128. package/src/foundry/client/data/collections/actors.d.mts +49 -0
  129. package/src/foundry/client/data/collections/cards.d.mts +12 -0
  130. package/src/foundry/client/data/collections/combats.d.mts +43 -0
  131. package/src/foundry/client/data/collections/compendium-collection.d.mts +490 -0
  132. package/src/foundry/client/data/collections/compendium-folders.d.mts +27 -0
  133. package/src/foundry/client/data/collections/compendium-packs.d.mts +27 -0
  134. package/src/foundry/client/data/collections/fog.d.mts +17 -0
  135. package/src/foundry/client/data/collections/folder.d.mts +33 -0
  136. package/src/foundry/client/data/collections/index.d.mts +17 -0
  137. package/src/foundry/client/data/collections/items.d.mts +14 -0
  138. package/src/foundry/client/data/collections/journal.d.mts +64 -0
  139. package/src/foundry/client/data/collections/macros.d.mts +32 -0
  140. package/src/foundry/client/data/collections/messages.d.mts +35 -0
  141. package/src/foundry/client/data/collections/playlists.d.mts +32 -0
  142. package/src/foundry/client/data/collections/scenes.d.mts +68 -0
  143. package/src/foundry/client/data/collections/settings.d.mts +29 -0
  144. package/src/foundry/client/data/collections/tables.d.mts +21 -0
  145. package/src/foundry/client/data/collections/users.d.mts +50 -0
  146. package/src/foundry/client/data/documents/active-effect.d.mts +360 -0
  147. package/src/foundry/client/data/documents/actor-delta.d.mts +99 -0
  148. package/src/foundry/client/data/documents/actor.d.mts +315 -0
  149. package/src/foundry/client/data/documents/adventure.d.mts +105 -0
  150. package/src/foundry/client/data/documents/ambient-light.d.mts +43 -0
  151. package/src/foundry/client/data/documents/ambient-sound.d.mts +30 -0
  152. package/src/foundry/client/data/documents/card.d.mts +127 -0
  153. package/src/foundry/client/data/documents/cards.d.mts +354 -0
  154. package/src/foundry/client/data/documents/chat-message.d.mts +230 -0
  155. package/src/foundry/client/data/documents/combat.d.mts +328 -0
  156. package/src/foundry/client/data/documents/combatant.d.mts +114 -0
  157. package/src/foundry/client/data/documents/drawing.d.mts +35 -0
  158. package/src/foundry/client/data/documents/fog-exploration.d.mts +62 -0
  159. package/src/foundry/client/data/documents/folder.d.mts +135 -0
  160. package/src/foundry/client/data/documents/index.d.mts +30 -0
  161. package/src/foundry/client/data/documents/item.d.mts +67 -0
  162. package/src/foundry/client/data/documents/journal-entry-page.d.mts +231 -0
  163. package/src/foundry/client/data/documents/journal-entry.d.mts +81 -0
  164. package/src/foundry/client/data/documents/macro.d.mts +87 -0
  165. package/src/foundry/client/data/documents/measured-template.d.mts +40 -0
  166. package/src/foundry/client/data/documents/note.d.mts +46 -0
  167. package/src/foundry/client/data/documents/playlist-sound.d.mts +127 -0
  168. package/src/foundry/client/data/documents/playlist.d.mts +207 -0
  169. package/src/foundry/client/data/documents/scene.d.mts +256 -0
  170. package/src/foundry/client/data/documents/setting.d.mts +54 -0
  171. package/src/foundry/client/data/documents/table-result.d.mts +41 -0
  172. package/src/foundry/client/data/documents/table.d.mts +321 -0
  173. package/src/foundry/client/data/documents/tile.d.mts +32 -0
  174. package/src/foundry/client/data/documents/token.d.mts +356 -0
  175. package/src/foundry/client/data/documents/user.d.mts +164 -0
  176. package/src/foundry/client/data/documents/wall.d.mts +30 -0
  177. package/src/foundry/client/data/index.d.mts +3 -0
  178. package/src/foundry/client/game.d.mts +783 -0
  179. package/src/foundry/client/head.d.mts +86 -0
  180. package/src/foundry/client/hooks.d.mts +1234 -0
  181. package/src/foundry/client/index.d.mts +12 -0
  182. package/src/foundry/client/pixi/board.d.mts +820 -0
  183. package/src/foundry/client/pixi/core/containers/base-canvas-group.d.mts +83 -0
  184. package/src/foundry/client/pixi/core/containers/cached-container.d.mts +118 -0
  185. package/src/foundry/client/pixi/core/containers/full-canvas-container.d.mts +37 -0
  186. package/src/foundry/client/pixi/core/containers/index.d.mts +8 -0
  187. package/src/foundry/client/pixi/core/containers/point-source-mesh.d.mts +62 -0
  188. package/src/foundry/client/pixi/core/containers/quad-mesh.d.mts +43 -0
  189. package/src/foundry/client/pixi/core/containers/quadtree.d.mts +199 -0
  190. package/src/foundry/client/pixi/core/containers/sprite-mesh.d.mts +326 -0
  191. package/src/foundry/client/pixi/core/containers/unbound-container.d.mts +21 -0
  192. package/src/foundry/client/pixi/core/index.d.mts +4 -0
  193. package/src/foundry/client/pixi/core/interaction/canvas-animation.d.mts +177 -0
  194. package/src/foundry/client/pixi/core/interaction/control-icon.d.mts +89 -0
  195. package/src/foundry/client/pixi/core/interaction/index.d.mts +8 -0
  196. package/src/foundry/client/pixi/core/interaction/mouse-handler.d.mts +291 -0
  197. package/src/foundry/client/pixi/core/interaction/ping.d.mts +58 -0
  198. package/src/foundry/client/pixi/core/interaction/pings/chevron.d.mts +73 -0
  199. package/src/foundry/client/pixi/core/interaction/pings/index.d.mts +2 -0
  200. package/src/foundry/client/pixi/core/interaction/pings/pulse.d.mts +115 -0
  201. package/src/foundry/client/pixi/core/interaction/render-flags.d.mts +126 -0
  202. package/src/foundry/client/pixi/core/interaction/resize-handle.d.mts +52 -0
  203. package/src/foundry/client/pixi/core/interaction/targets.d.mts +45 -0
  204. package/src/foundry/client/pixi/core/loader.d.mts +246 -0
  205. package/src/foundry/client/pixi/core/shapes/index.d.mts +5 -0
  206. package/src/foundry/client/pixi/core/shapes/limited-angle-polygon.d.mts +119 -0
  207. package/src/foundry/client/pixi/core/shapes/polygon-mesher.d.mts +110 -0
  208. package/src/foundry/client/pixi/core/shapes/precise-text.d.mts +27 -0
  209. package/src/foundry/client/pixi/core/shapes/ray.d.mts +165 -0
  210. package/src/foundry/client/pixi/core/shapes/source-polygon.d.mts +249 -0
  211. package/src/foundry/client/pixi/extensions/circle.d.mts +132 -0
  212. package/src/foundry/client/pixi/extensions/graphics.d.mts +43 -0
  213. package/src/foundry/client/pixi/extensions/index.d.mts +5 -0
  214. package/src/foundry/client/pixi/extensions/observable-transform.d.mts +30 -0
  215. package/src/foundry/client/pixi/extensions/polygon.d.mts +142 -0
  216. package/src/foundry/client/pixi/extensions/rectangle.d.mts +248 -0
  217. package/src/foundry/client/pixi/groups/effects.d.mts +186 -0
  218. package/src/foundry/client/pixi/groups/environment.d.mts +80 -0
  219. package/src/foundry/client/pixi/groups/hidden.d.mts +40 -0
  220. package/src/foundry/client/pixi/groups/index.d.mts +7 -0
  221. package/src/foundry/client/pixi/groups/interface.d.mts +74 -0
  222. package/src/foundry/client/pixi/groups/overlay.d.mts +18 -0
  223. package/src/foundry/client/pixi/groups/primary.d.mts +200 -0
  224. package/src/foundry/client/pixi/groups/rendered.d.mts +18 -0
  225. package/src/foundry/client/pixi/index.d.mts +10 -0
  226. package/src/foundry/client/pixi/layers/base/canvas-layer.d.mts +95 -0
  227. package/src/foundry/client/pixi/layers/base/index.d.mts +3 -0
  228. package/src/foundry/client/pixi/layers/base/interaction-layer.d.mts +162 -0
  229. package/src/foundry/client/pixi/layers/base/placeables-layer.d.mts +643 -0
  230. package/src/foundry/client/pixi/layers/controls/cursor.d.mts +33 -0
  231. package/src/foundry/client/pixi/layers/controls/door.d.mts +68 -0
  232. package/src/foundry/client/pixi/layers/controls/index.d.mts +4 -0
  233. package/src/foundry/client/pixi/layers/controls/layer.d.mts +262 -0
  234. package/src/foundry/client/pixi/layers/controls/ruler.d.mts +475 -0
  235. package/src/foundry/client/pixi/layers/effects/background-effects.d.mts +50 -0
  236. package/src/foundry/client/pixi/layers/effects/coloration-effects.d.mts +42 -0
  237. package/src/foundry/client/pixi/layers/effects/darkness-effects.d.mts +33 -0
  238. package/src/foundry/client/pixi/layers/effects/illumination-effects.d.mts +151 -0
  239. package/src/foundry/client/pixi/layers/effects/index.d.mts +7 -0
  240. package/src/foundry/client/pixi/layers/effects/visibility.d.mts +225 -0
  241. package/src/foundry/client/pixi/layers/effects/weather/particles/effect.d.mts +47 -0
  242. package/src/foundry/client/pixi/layers/effects/weather/particles/index.d.mts +2 -0
  243. package/src/foundry/client/pixi/layers/effects/weather/particles/leaves.d.mts +20 -0
  244. package/src/foundry/client/pixi/layers/effects/weather-effects.d.mts +227 -0
  245. package/src/foundry/client/pixi/layers/grid/highlight.d.mts +33 -0
  246. package/src/foundry/client/pixi/layers/grid/index.d.mts +3 -0
  247. package/src/foundry/client/pixi/layers/grid/layer.d.mts +269 -0
  248. package/src/foundry/client/pixi/layers/grid/mesh.d.mts +73 -0
  249. package/src/foundry/client/pixi/layers/index.d.mts +6 -0
  250. package/src/foundry/client/pixi/layers/masks/depth.d.mts +62 -0
  251. package/src/foundry/client/pixi/layers/masks/index.d.mts +3 -0
  252. package/src/foundry/client/pixi/layers/masks/occlusion.d.mts +91 -0
  253. package/src/foundry/client/pixi/layers/masks/vision.d.mts +116 -0
  254. package/src/foundry/client/pixi/layers/placeables/drawings.d.mts +111 -0
  255. package/src/foundry/client/pixi/layers/placeables/index.d.mts +8 -0
  256. package/src/foundry/client/pixi/layers/placeables/lighting.d.mts +83 -0
  257. package/src/foundry/client/pixi/layers/placeables/notes.d.mts +110 -0
  258. package/src/foundry/client/pixi/layers/placeables/sounds.d.mts +320 -0
  259. package/src/foundry/client/pixi/layers/placeables/templates.d.mts +72 -0
  260. package/src/foundry/client/pixi/layers/placeables/tiles.d.mts +116 -0
  261. package/src/foundry/client/pixi/layers/placeables/tokens.d.mts +193 -0
  262. package/src/foundry/client/pixi/layers/placeables/walls.d.mts +209 -0
  263. package/src/foundry/client/pixi/perception/clockwise-sweep.d.mts +157 -0
  264. package/src/foundry/client/pixi/perception/detection-mode.d.mts +212 -0
  265. package/src/foundry/client/pixi/perception/fog.d.mts +130 -0
  266. package/src/foundry/client/pixi/perception/index.d.mts +6 -0
  267. package/src/foundry/client/pixi/perception/perception-manager.d.mts +167 -0
  268. package/src/foundry/client/pixi/perception/vision-mode.d.mts +202 -0
  269. package/src/foundry/client/pixi/perception/weiler-atherton-clipping.d.mts +152 -0
  270. package/src/foundry/client/pixi/placeable.d.mts +631 -0
  271. package/src/foundry/client/pixi/placeables/drawing.d.mts +292 -0
  272. package/src/foundry/client/pixi/placeables/index.d.mts +9 -0
  273. package/src/foundry/client/pixi/placeables/light.d.mts +140 -0
  274. package/src/foundry/client/pixi/placeables/note.d.mts +114 -0
  275. package/src/foundry/client/pixi/placeables/primary-canvas-objects/index.d.mts +4 -0
  276. package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-canvas-object.d.mts +177 -0
  277. package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-graphics.d.mts +30 -0
  278. package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-occludable-object.d.mts +161 -0
  279. package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-sprite-mesh.d.mts +111 -0
  280. package/src/foundry/client/pixi/placeables/sound.d.mts +134 -0
  281. package/src/foundry/client/pixi/placeables/template.d.mts +211 -0
  282. package/src/foundry/client/pixi/placeables/tile.d.mts +284 -0
  283. package/src/foundry/client/pixi/placeables/token.d.mts +820 -0
  284. package/src/foundry/client/pixi/placeables/wall.d.mts +275 -0
  285. package/src/foundry/client/pixi/webgl/extensions/batch-renderer.d.mts +95 -0
  286. package/src/foundry/client/pixi/webgl/extensions/batch-shader-generator.d.mts +30 -0
  287. package/src/foundry/client/pixi/webgl/extensions/blend-modes.d.mts +53 -0
  288. package/src/foundry/client/pixi/webgl/extensions/index.d.mts +3 -0
  289. package/src/foundry/client/pixi/webgl/helpers/framebugger-snapshot.d.mts +30 -0
  290. package/src/foundry/client/pixi/webgl/helpers/index.d.mts +3 -0
  291. package/src/foundry/client/pixi/webgl/helpers/smooth-noise.d.mts +65 -0
  292. package/src/foundry/client/pixi/webgl/helpers/texture-extractor.d.mts +90 -0
  293. package/src/foundry/client/pixi/webgl/index.d.mts +3 -0
  294. package/src/foundry/client/pixi/webgl/shaders/base-shader-mixin.d.mts +119 -0
  295. package/src/foundry/client/pixi/webgl/shaders/base-shader.d.mts +94 -0
  296. package/src/foundry/client/pixi/webgl/shaders/filters/base-filter.d.mts +47 -0
  297. package/src/foundry/client/pixi/webgl/shaders/filters/base-mask-filter.d.mts +29 -0
  298. package/src/foundry/client/pixi/webgl/shaders/filters/blur.d.mts +185 -0
  299. package/src/foundry/client/pixi/webgl/shaders/filters/effects-masking.d.mts +121 -0
  300. package/src/foundry/client/pixi/webgl/shaders/filters/environment.d.mts +40 -0
  301. package/src/foundry/client/pixi/webgl/shaders/filters/glow-overlay.d.mts +75 -0
  302. package/src/foundry/client/pixi/webgl/shaders/filters/index.d.mts +13 -0
  303. package/src/foundry/client/pixi/webgl/shaders/filters/invisibility.d.mts +29 -0
  304. package/src/foundry/client/pixi/webgl/shaders/filters/outline-overlay.d.mts +86 -0
  305. package/src/foundry/client/pixi/webgl/shaders/filters/transition.d.mts +119 -0
  306. package/src/foundry/client/pixi/webgl/shaders/filters/visibility.d.mts +70 -0
  307. package/src/foundry/client/pixi/webgl/shaders/filters/vision-mask-filter.d.mts +33 -0
  308. package/src/foundry/client/pixi/webgl/shaders/filters/void.d.mts +18 -0
  309. package/src/foundry/client/pixi/webgl/shaders/filters/weather-occlusion-masks.d.mts +56 -0
  310. package/src/foundry/client/pixi/webgl/shaders/fragment-channel-mixin.d.mts +54 -0
  311. package/src/foundry/client/pixi/webgl/shaders/grid/grid.d.mts +112 -0
  312. package/src/foundry/client/pixi/webgl/shaders/grid/index.d.mts +1 -0
  313. package/src/foundry/client/pixi/webgl/shaders/index.d.mts +10 -0
  314. package/src/foundry/client/pixi/webgl/shaders/lighting/background-lighting.d.mts +65 -0
  315. package/src/foundry/client/pixi/webgl/shaders/lighting/base-lighting.d.mts +178 -0
  316. package/src/foundry/client/pixi/webgl/shaders/lighting/coloration-lighting.d.mts +73 -0
  317. package/src/foundry/client/pixi/webgl/shaders/lighting/darkness-lighting.d.mts +73 -0
  318. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/bewitching-wave.d.mts +33 -0
  319. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/black-hole.d.mts +18 -0
  320. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/chroma.d.mts +23 -0
  321. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/emanation.d.mts +23 -0
  322. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/energy-field.d.mts +23 -0
  323. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/fairy-light.d.mts +38 -0
  324. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/flame.d.mts +55 -0
  325. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/fog.d.mts +23 -0
  326. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/force-grid.d.mts +22 -0
  327. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/ghost-light.d.mts +33 -0
  328. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/hexa-dome.d.mts +23 -0
  329. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/index.d.mts +25 -0
  330. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/light-dome.d.mts +23 -0
  331. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/magical-gloom.d.mts +18 -0
  332. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/pulse.d.mts +44 -0
  333. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/radial-rainbow.d.mts +23 -0
  334. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/revolving-light.d.mts +36 -0
  335. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/roiling-mass.d.mts +18 -0
  336. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/siren-light.d.mts +61 -0
  337. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/smoke-patch.d.mts +32 -0
  338. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/star-light.d.mts +23 -0
  339. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/sunburst.d.mts +33 -0
  340. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/swirling-rainbow.d.mts +23 -0
  341. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/torch.d.mts +45 -0
  342. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/vortex.d.mts +38 -0
  343. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/wave.d.mts +33 -0
  344. package/src/foundry/client/pixi/webgl/shaders/lighting/illumination-lighting.d.mts +79 -0
  345. package/src/foundry/client/pixi/webgl/shaders/lighting/index.d.mts +6 -0
  346. package/src/foundry/client/pixi/webgl/shaders/region/adjust-darkness-level.d.mts +93 -0
  347. package/src/foundry/client/pixi/webgl/shaders/region/base.d.mts +35 -0
  348. package/src/foundry/client/pixi/webgl/shaders/region/highlight.d.mts +35 -0
  349. package/src/foundry/client/pixi/webgl/shaders/region/index.d.mts +3 -0
  350. package/src/foundry/client/pixi/webgl/shaders/samplers/base-sampler.d.mts +206 -0
  351. package/src/foundry/client/pixi/webgl/shaders/samplers/baseline-illumination.d.mts +38 -0
  352. package/src/foundry/client/pixi/webgl/shaders/samplers/color-adjustment.d.mts +109 -0
  353. package/src/foundry/client/pixi/webgl/shaders/samplers/depth.d.mts +103 -0
  354. package/src/foundry/client/pixi/webgl/shaders/samplers/fog-of-war.d.mts +24 -0
  355. package/src/foundry/client/pixi/webgl/shaders/samplers/index.d.mts +8 -0
  356. package/src/foundry/client/pixi/webgl/shaders/samplers/occlusion.d.mts +104 -0
  357. package/src/foundry/client/pixi/webgl/shaders/samplers/primary.d.mts +26 -0
  358. package/src/foundry/client/pixi/webgl/shaders/samplers/token-ring.d.mts +47 -0
  359. package/src/foundry/client/pixi/webgl/shaders/vision/background-vision.d.mts +42 -0
  360. package/src/foundry/client/pixi/webgl/shaders/vision/base-vision.d.mts +31 -0
  361. package/src/foundry/client/pixi/webgl/shaders/vision/coloration-vision.d.mts +41 -0
  362. package/src/foundry/client/pixi/webgl/shaders/vision/effects/amplification.d.mts +32 -0
  363. package/src/foundry/client/pixi/webgl/shaders/vision/effects/index.d.mts +2 -0
  364. package/src/foundry/client/pixi/webgl/shaders/vision/effects/wave.d.mts +59 -0
  365. package/src/foundry/client/pixi/webgl/shaders/vision/illumination-vision.d.mts +36 -0
  366. package/src/foundry/client/pixi/webgl/shaders/vision/index.d.mts +5 -0
  367. package/src/foundry/client/pixi/webgl/shaders/weather/base-weather.d.mts +106 -0
  368. package/src/foundry/client/pixi/webgl/shaders/weather/effect.d.mts +62 -0
  369. package/src/foundry/client/pixi/webgl/shaders/weather/fog.d.mts +50 -0
  370. package/src/foundry/client/pixi/webgl/shaders/weather/index.d.mts +5 -0
  371. package/src/foundry/client/pixi/webgl/shaders/weather/rain.d.mts +42 -0
  372. package/src/foundry/client/pixi/webgl/shaders/weather/snow.d.mts +34 -0
  373. package/src/foundry/client/pixi/workers/index.d.mts +1 -0
  374. package/src/foundry/client/pixi/workers/texture-worker.d.mts +125 -0
  375. package/src/foundry/client/tours/canvas-tour.d.mts +9 -0
  376. package/src/foundry/client/tours/index.d.mts +3 -0
  377. package/src/foundry/client/tours/setup-tour.d.mts +26 -0
  378. package/src/foundry/client/tours/sidebar-tour.d.mts +9 -0
  379. package/src/foundry/client/ui/context.d.mts +213 -0
  380. package/src/foundry/client/ui/dialog.d.mts +326 -0
  381. package/src/foundry/client/ui/drag.d.mts +128 -0
  382. package/src/foundry/client/ui/dragdrop.d.mts +124 -0
  383. package/src/foundry/client/ui/editor.d.mts +546 -0
  384. package/src/foundry/client/ui/filepicker.d.mts +477 -0
  385. package/src/foundry/client/ui/filter.d.mts +148 -0
  386. package/src/foundry/client/ui/forms.d.mts +85 -0
  387. package/src/foundry/client/ui/index.d.mts +12 -0
  388. package/src/foundry/client/ui/notifications.d.mts +136 -0
  389. package/src/foundry/client/ui/prosemirror.d.mts +171 -0
  390. package/src/foundry/client/ui/secrets.d.mts +75 -0
  391. package/src/foundry/client/ui/tabs.d.mts +117 -0
  392. package/src/foundry/client-esm/applications/_module.d.mts +25 -0
  393. package/src/foundry/client-esm/applications/_types.d.mts +36 -0
  394. package/src/foundry/client-esm/applications/api/_module.d.mts +9 -0
  395. package/src/foundry/client-esm/applications/api/application.d.mts +711 -0
  396. package/src/foundry/client-esm/applications/api/dialog.d.mts +268 -0
  397. package/src/foundry/client-esm/applications/api/document-sheet.d.mts +127 -0
  398. package/src/foundry/client-esm/applications/api/handlebars-application.d.mts +180 -0
  399. package/src/foundry/client-esm/applications/apps/_module.d.mts +7 -0
  400. package/src/foundry/client-esm/applications/apps/compendium-art-config.d.mts +53 -0
  401. package/src/foundry/client-esm/applications/apps/permission-config.d.mts +60 -0
  402. package/src/foundry/client-esm/applications/dice/_module.d.mts +6 -0
  403. package/src/foundry/client-esm/applications/dice/roll-resolver.d.mts +98 -0
  404. package/src/foundry/client-esm/applications/elements/_module.d.mts +16 -0
  405. package/src/foundry/client-esm/applications/elements/color-picker.d.mts +26 -0
  406. package/src/foundry/client-esm/applications/elements/document-tags.d.mts +90 -0
  407. package/src/foundry/client-esm/applications/elements/file-picker.d.mts +62 -0
  408. package/src/foundry/client-esm/applications/elements/form-element.d.mts +106 -0
  409. package/src/foundry/client-esm/applications/elements/hue-slider.d.mts +20 -0
  410. package/src/foundry/client-esm/applications/elements/multi-select.d.mts +95 -0
  411. package/src/foundry/client-esm/applications/elements/prosemirror-editor.d.mts +53 -0
  412. package/src/foundry/client-esm/applications/elements/range-picker.d.mts +41 -0
  413. package/src/foundry/client-esm/applications/elements/string-tags.d.mts +73 -0
  414. package/src/foundry/client-esm/applications/forms/fields.d.mts +265 -0
  415. package/src/foundry/client-esm/applications/sheets/_module.d.mts +12 -0
  416. package/src/foundry/client-esm/applications/sheets/actor-sheet.d.mts +31 -0
  417. package/src/foundry/client-esm/applications/sheets/ambient-light-config.d.mts +77 -0
  418. package/src/foundry/client-esm/applications/sheets/ambient-sound-config.d.mts +52 -0
  419. package/src/foundry/client-esm/applications/sheets/item-sheet.d.mts +22 -0
  420. package/src/foundry/client-esm/applications/sheets/region-behavior-config.d.mts +13 -0
  421. package/src/foundry/client-esm/applications/sheets/region-config.d.mts +13 -0
  422. package/src/foundry/client-esm/applications/sheets/user-config.d.mts +44 -0
  423. package/src/foundry/client-esm/applications/ui/_module.d.mts +6 -0
  424. package/src/foundry/client-esm/applications/ui/region-legend.d.mts +12 -0
  425. package/src/foundry/client-esm/audio/_module.d.mts +13 -0
  426. package/src/foundry/client-esm/audio/_types.d.mts +16 -0
  427. package/src/foundry/client-esm/audio/biquad.d.mts +51 -0
  428. package/src/foundry/client-esm/audio/cache.d.mts +68 -0
  429. package/src/foundry/client-esm/audio/convolver.d.mts +71 -0
  430. package/src/foundry/client-esm/audio/helper.d.mts +325 -0
  431. package/src/foundry/client-esm/audio/sound.d.mts +401 -0
  432. package/src/foundry/client-esm/audio/timeout.d.mts +82 -0
  433. package/src/foundry/client-esm/canvas/_module.d.mts +11 -0
  434. package/src/foundry/client-esm/canvas/edges/_module.d.mts +9 -0
  435. package/src/foundry/client-esm/canvas/edges/collision.d.mts +93 -0
  436. package/src/foundry/client-esm/canvas/edges/edge.d.mts +184 -0
  437. package/src/foundry/client-esm/canvas/edges/edges.d.mts +23 -0
  438. package/src/foundry/client-esm/canvas/edges/vertex.d.mts +136 -0
  439. package/src/foundry/client-esm/canvas/regions/_module.d.mts +10 -0
  440. package/src/foundry/client-esm/canvas/scene-manager.d.mts +93 -0
  441. package/src/foundry/client-esm/canvas/smaa/blend.d.mts +6 -0
  442. package/src/foundry/client-esm/canvas/smaa/edges.d.mts +6 -0
  443. package/src/foundry/client-esm/canvas/smaa/smaa.d.mts +56 -0
  444. package/src/foundry/client-esm/canvas/smaa/weights.d.mts +6 -0
  445. package/src/foundry/client-esm/canvas/sources/_module.d.mts +15 -0
  446. package/src/foundry/client-esm/canvas/sources/base-effect-source.d.mts +250 -0
  447. package/src/foundry/client-esm/canvas/sources/base-light-source.d.mts +159 -0
  448. package/src/foundry/client-esm/canvas/sources/global-light-source.d.mts +47 -0
  449. package/src/foundry/client-esm/canvas/sources/point-darkness-source.d.mts +77 -0
  450. package/src/foundry/client-esm/canvas/sources/point-effect-source.d.mts +93 -0
  451. package/src/foundry/client-esm/canvas/sources/point-light-source.d.mts +43 -0
  452. package/src/foundry/client-esm/canvas/sources/point-movement-source.d.mts +15 -0
  453. package/src/foundry/client-esm/canvas/sources/point-sound-source.d.mts +29 -0
  454. package/src/foundry/client-esm/canvas/sources/point-vision-source.d.mts +212 -0
  455. package/src/foundry/client-esm/canvas/sources/rendered-effect-source.d.mts +330 -0
  456. package/src/foundry/client-esm/canvas/tokens/_module.d.mts +9 -0
  457. package/src/foundry/client-esm/canvas/tokens/ring-config.d.mts +80 -0
  458. package/src/foundry/client-esm/canvas/tokens/ring-data.d.mts +7 -0
  459. package/src/foundry/client-esm/canvas/tokens/ring.d.mts +5 -0
  460. package/src/foundry/client-esm/client.d.mts +286 -0
  461. package/src/foundry/client-esm/data/_module.d.mts +8 -0
  462. package/src/foundry/client-esm/data/client-backend.d.mts +52 -0
  463. package/src/foundry/client-esm/data/region-behaviors/_module.d.mts +14 -0
  464. package/src/foundry/client-esm/dice/_module.d.mts +13 -0
  465. package/src/foundry/client-esm/dice/_types.d.mts +61 -0
  466. package/src/foundry/client-esm/dice/parser.d.mts +205 -0
  467. package/src/foundry/client-esm/dice/roll.d.mts +645 -0
  468. package/src/foundry/client-esm/dice/terms/_module.d.mts +17 -0
  469. package/src/foundry/client-esm/dice/terms/coin.d.mts +68 -0
  470. package/src/foundry/client-esm/dice/terms/dice.d.mts +381 -0
  471. package/src/foundry/client-esm/dice/terms/die.d.mts +241 -0
  472. package/src/foundry/client-esm/dice/terms/fate.d.mts +50 -0
  473. package/src/foundry/client-esm/dice/terms/function.d.mts +103 -0
  474. package/src/foundry/client-esm/dice/terms/numeric.d.mts +56 -0
  475. package/src/foundry/client-esm/dice/terms/operator.d.mts +55 -0
  476. package/src/foundry/client-esm/dice/terms/parenthetical.d.mts +105 -0
  477. package/src/foundry/client-esm/dice/terms/pool.d.mts +278 -0
  478. package/src/foundry/client-esm/dice/terms/string.d.mts +34 -0
  479. package/src/foundry/client-esm/dice/terms/term.d.mts +160 -0
  480. package/src/foundry/client-esm/dice/twister.d.mts +134 -0
  481. package/src/foundry/client-esm/helpers/_module.d.mts +8 -0
  482. package/src/foundry/client-esm/helpers/_types.d.mts +51 -0
  483. package/src/foundry/client-esm/helpers/compendium-art.d.mts +47 -0
  484. package/src/foundry/clipper/clipper.d.mts +927 -0
  485. package/src/foundry/clipper/index.d.mts +1 -0
  486. package/src/foundry/common/abstract/_types.d.mts +274 -0
  487. package/src/foundry/common/abstract/backend.d.mts +190 -0
  488. package/src/foundry/common/abstract/data.d.mts +461 -0
  489. package/src/foundry/common/abstract/document.d.mts +1409 -0
  490. package/src/foundry/common/abstract/embedded-collection-delta.d.mts +96 -0
  491. package/src/foundry/common/abstract/embedded-collection.d.mts +252 -0
  492. package/src/foundry/common/abstract/module.d.mts +13 -0
  493. package/src/foundry/common/abstract/singleton-collection.d.mts +19 -0
  494. package/src/foundry/common/abstract/socket.d.mts +36 -0
  495. package/src/foundry/common/abstract/type-data.d.mts +343 -0
  496. package/src/foundry/common/config.d.mts +302 -0
  497. package/src/foundry/common/constants.d.mts +2054 -0
  498. package/src/foundry/common/data/data.d.mts +667 -0
  499. package/src/foundry/common/data/fields.d.mts +4207 -0
  500. package/src/foundry/common/data/module.d.mts +9 -0
  501. package/src/foundry/common/data/validation-failure.d.mts +174 -0
  502. package/src/foundry/common/data/validators.d.mts +30 -0
  503. package/src/foundry/common/documents/_module.d.mts +35 -0
  504. package/src/foundry/common/documents/_types.d.mts +175 -0
  505. package/src/foundry/common/documents/active-effect.d.mts +238 -0
  506. package/src/foundry/common/documents/actor-delta.d.mts +120 -0
  507. package/src/foundry/common/documents/actor.d.mts +168 -0
  508. package/src/foundry/common/documents/adventure.d.mts +184 -0
  509. package/src/foundry/common/documents/ambient-light.d.mts +98 -0
  510. package/src/foundry/common/documents/ambient-sound.d.mts +132 -0
  511. package/src/foundry/common/documents/card.d.mts +224 -0
  512. package/src/foundry/common/documents/cards.d.mts +156 -0
  513. package/src/foundry/common/documents/chat-message.d.mts +207 -0
  514. package/src/foundry/common/documents/combat.d.mts +130 -0
  515. package/src/foundry/common/documents/combatant.d.mts +123 -0
  516. package/src/foundry/common/documents/drawing.d.mts +240 -0
  517. package/src/foundry/common/documents/fog-exploration.d.mts +95 -0
  518. package/src/foundry/common/documents/folder.d.mts +113 -0
  519. package/src/foundry/common/documents/item.d.mts +142 -0
  520. package/src/foundry/common/documents/journal-entry-page.d.mts +211 -0
  521. package/src/foundry/common/documents/journal-entry.d.mts +91 -0
  522. package/src/foundry/common/documents/macro.d.mts +174 -0
  523. package/src/foundry/common/documents/measured-template.d.mts +168 -0
  524. package/src/foundry/common/documents/module.d.mts +35 -0
  525. package/src/foundry/common/documents/note.d.mts +183 -0
  526. package/src/foundry/common/documents/playlist-sound.d.mts +127 -0
  527. package/src/foundry/common/documents/playlist.d.mts +154 -0
  528. package/src/foundry/common/documents/roll-table.d.mts +130 -0
  529. package/src/foundry/common/documents/scene.d.mts +373 -0
  530. package/src/foundry/common/documents/setting.d.mts +77 -0
  531. package/src/foundry/common/documents/table-result.d.mts +131 -0
  532. package/src/foundry/common/documents/tile.d.mts +195 -0
  533. package/src/foundry/common/documents/token.d.mts +497 -0
  534. package/src/foundry/common/documents/user.d.mts +238 -0
  535. package/src/foundry/common/documents/wall.d.mts +184 -0
  536. package/src/foundry/common/grid/_module.d.mts +10 -0
  537. package/src/foundry/common/grid/base.d.mts +640 -0
  538. package/src/foundry/common/grid/grid-hex.d.mts +55 -0
  539. package/src/foundry/common/grid/gridless.d.mts +71 -0
  540. package/src/foundry/common/grid/hexagonal.d.mts +391 -0
  541. package/src/foundry/common/grid/square.d.mts +100 -0
  542. package/src/foundry/common/packages/base-module.d.mts +46 -0
  543. package/src/foundry/common/packages/base-package.d.mts +677 -0
  544. package/src/foundry/common/packages/base-system.d.mts +90 -0
  545. package/src/foundry/common/packages/base-world.d.mts +116 -0
  546. package/src/foundry/common/packages/module.d.mts +28 -0
  547. package/src/foundry/common/packages/sub-types.d.mts +42 -0
  548. package/src/foundry/common/primitives/array.d.mts +56 -0
  549. package/src/foundry/common/primitives/date.d.mts +24 -0
  550. package/src/foundry/common/primitives/math.d.mts +103 -0
  551. package/src/foundry/common/primitives/module.d.mts +8 -0
  552. package/src/foundry/common/primitives/number.d.mts +91 -0
  553. package/src/foundry/common/primitives/regex.d.mts +12 -0
  554. package/src/foundry/common/primitives/regexp.d.mts +12 -0
  555. package/src/foundry/common/primitives/set.d.mts +105 -0
  556. package/src/foundry/common/primitives/string.d.mts +58 -0
  557. package/src/foundry/common/primitives/url.d.mts +18 -0
  558. package/src/foundry/common/prosemirror/_module.d.mts +82 -0
  559. package/src/foundry/common/prosemirror/click-handler.d.mts +34 -0
  560. package/src/foundry/common/prosemirror/content-link-plugin.d.mts +47 -0
  561. package/src/foundry/common/prosemirror/dirty-plugin.d.mts +13 -0
  562. package/src/foundry/common/prosemirror/dom-parser.d.mts +9 -0
  563. package/src/foundry/common/prosemirror/dropdown.d.mts +65 -0
  564. package/src/foundry/common/prosemirror/extensions.d.mts +12 -0
  565. package/src/foundry/common/prosemirror/highlight-matches-plugin.d.mts +82 -0
  566. package/src/foundry/common/prosemirror/image-plugin.d.mts +82 -0
  567. package/src/foundry/common/prosemirror/index.d.mts +22 -0
  568. package/src/foundry/common/prosemirror/input-rules.d.mts +34 -0
  569. package/src/foundry/common/prosemirror/keymaps.d.mts +47 -0
  570. package/src/foundry/common/prosemirror/menu.d.mts +255 -0
  571. package/src/foundry/common/prosemirror/paste-transformer.d.mts +22 -0
  572. package/src/foundry/common/prosemirror/plugin.d.mts +24 -0
  573. package/src/foundry/common/prosemirror/schema/attribute-capture.d.mts +39 -0
  574. package/src/foundry/common/prosemirror/schema/core.d.mts +51 -0
  575. package/src/foundry/common/prosemirror/schema/image-link-node.d.mts +29 -0
  576. package/src/foundry/common/prosemirror/schema/image-node.d.mts +19 -0
  577. package/src/foundry/common/prosemirror/schema/index.d.mts +12 -0
  578. package/src/foundry/common/prosemirror/schema/link-mark.d.mts +30 -0
  579. package/src/foundry/common/prosemirror/schema/lists.d.mts +55 -0
  580. package/src/foundry/common/prosemirror/schema/marks.d.mts +44 -0
  581. package/src/foundry/common/prosemirror/schema/other.d.mts +149 -0
  582. package/src/foundry/common/prosemirror/schema/schema-definition.d.mts +39 -0
  583. package/src/foundry/common/prosemirror/schema/secret-node.d.mts +27 -0
  584. package/src/foundry/common/prosemirror/schema/tables.d.mts +106 -0
  585. package/src/foundry/common/prosemirror/schema/utils.d.mts +37 -0
  586. package/src/foundry/common/prosemirror/schema.d.mts +138 -0
  587. package/src/foundry/common/prosemirror/string-serializer.d.mts +120 -0
  588. package/src/foundry/common/prosemirror/util.d.mts +43 -0
  589. package/src/foundry/common/types.d.mts +74 -0
  590. package/src/foundry/common/utils/bitmask.d.mts +110 -0
  591. package/src/foundry/common/utils/collection.d.mts +176 -0
  592. package/src/foundry/common/utils/color.d.mts +299 -0
  593. package/src/foundry/common/utils/event-emitter.d.mts +62 -0
  594. package/src/foundry/common/utils/geometry.d.mts +198 -0
  595. package/src/foundry/common/utils/helpers.d.mts +752 -0
  596. package/src/foundry/common/utils/http.d.mts +52 -0
  597. package/src/foundry/common/utils/iterable-weak-map.d.mts +80 -0
  598. package/src/foundry/common/utils/iterable-weak-set.d.mts +47 -0
  599. package/src/foundry/common/utils/logging.d.mts +42 -0
  600. package/src/foundry/common/utils/module.d.mts +18 -0
  601. package/src/foundry/common/utils/semaphore.d.mts +82 -0
  602. package/src/foundry/common/utils/string-tree.d.mts +95 -0
  603. package/src/foundry/common/utils/word-tree.d.mts +66 -0
  604. package/src/foundry/index.d.mts +5 -0
  605. package/src/foundry/public/index.d.mts +1 -0
  606. package/src/foundry/public/scripts/earcut-edges/earcut-edges.d.mts +11 -0
  607. package/src/foundry/public/scripts/earcut-edges/index.d.mts +1 -0
  608. package/src/foundry/public/scripts/index.d.mts +1 -0
  609. package/src/index.d.mts +2 -0
  610. package/src/types/augments/index.d.mts +4 -0
  611. package/src/types/augments/pixi.d.mts +99 -0
  612. package/src/types/augments/simple-peer.d.mts +13 -0
  613. package/src/types/augments/socket.io-client.d.mts +12 -0
  614. package/src/types/augments/tinyMCE.d.mts +72 -0
  615. package/src/types/config.d.mts +331 -0
  616. package/src/types/documentConfiguration.d.mts +606 -0
  617. package/src/types/helperTypes.d.mts +389 -0
  618. package/src/types/index.d.mts +4 -0
  619. package/src/types/utils.d.mts +520 -0
  620. package/index-lenient.d.ts +0 -10
  621. package/index.d.ts +0 -4
  622. package/src/foundry/client/apps/app.d.ts +0 -560
  623. package/src/foundry/client/apps/av/av-config.d.ts +0 -85
  624. package/src/foundry/client/apps/av/cameras.d.ts +0 -174
  625. package/src/foundry/client/apps/av/index.d.ts +0 -3
  626. package/src/foundry/client/apps/form.d.ts +0 -384
  627. package/src/foundry/client/apps/forms/actor.d.ts +0 -192
  628. package/src/foundry/client/apps/forms/card-config.d.ts +0 -51
  629. package/src/foundry/client/apps/forms/cards-config.d.ts +0 -128
  630. package/src/foundry/client/apps/forms/combat-config.d.ts +0 -41
  631. package/src/foundry/client/apps/forms/combatant-config.d.ts +0 -49
  632. package/src/foundry/client/apps/forms/effect-config.d.ts +0 -65
  633. package/src/foundry/client/apps/forms/folder-config.d.ts +0 -63
  634. package/src/foundry/client/apps/forms/grid-config.d.ts +0 -151
  635. package/src/foundry/client/apps/forms/image-popout.d.ts +0 -166
  636. package/src/foundry/client/apps/forms/index.d.ts +0 -20
  637. package/src/foundry/client/apps/forms/item.d.ts +0 -71
  638. package/src/foundry/client/apps/forms/journal-sheet.d.ts +0 -107
  639. package/src/foundry/client/apps/forms/macro-config.d.ts +0 -71
  640. package/src/foundry/client/apps/forms/measure-template.d.ts +0 -53
  641. package/src/foundry/client/apps/forms/permission.d.ts +0 -58
  642. package/src/foundry/client/apps/forms/playlist-config.d.ts +0 -43
  643. package/src/foundry/client/apps/forms/playlist-sound-config.d.ts +0 -61
  644. package/src/foundry/client/apps/forms/roll-table-config.d.ts +0 -175
  645. package/src/foundry/client/apps/forms/scene-config.d.ts +0 -148
  646. package/src/foundry/client/apps/forms/sheet-config.d.ts +0 -184
  647. package/src/foundry/client/apps/forms/user-config.d.ts +0 -74
  648. package/src/foundry/client/apps/hud/chatbubble.d.ts +0 -89
  649. package/src/foundry/client/apps/hud/container.d.ts +0 -46
  650. package/src/foundry/client/apps/hud/controls.d.ts +0 -156
  651. package/src/foundry/client/apps/hud/hotbar.d.ts +0 -143
  652. package/src/foundry/client/apps/hud/hud.d.ts +0 -84
  653. package/src/foundry/client/apps/hud/index.d.ts +0 -9
  654. package/src/foundry/client/apps/hud/menu.d.ts +0 -71
  655. package/src/foundry/client/apps/hud/navigation.d.ts +0 -110
  656. package/src/foundry/client/apps/hud/pause.d.ts +0 -20
  657. package/src/foundry/client/apps/hud/players.d.ts +0 -55
  658. package/src/foundry/client/apps/i18n.d.ts +0 -136
  659. package/src/foundry/client/apps/index.d.ts +0 -9
  660. package/src/foundry/client/apps/placeables/drawing-config.d.ts +0 -99
  661. package/src/foundry/client/apps/placeables/drawing-hud.d.ts +0 -32
  662. package/src/foundry/client/apps/placeables/index.d.ts +0 -10
  663. package/src/foundry/client/apps/placeables/light-config.d.ts +0 -95
  664. package/src/foundry/client/apps/placeables/note-config.d.ts +0 -57
  665. package/src/foundry/client/apps/placeables/sound-config.d.ts +0 -47
  666. package/src/foundry/client/apps/placeables/tile-config.d.ts +0 -55
  667. package/src/foundry/client/apps/placeables/tile-hud.d.ts +0 -37
  668. package/src/foundry/client/apps/placeables/token-config.d.ts +0 -226
  669. package/src/foundry/client/apps/placeables/token-hud.d.ts +0 -140
  670. package/src/foundry/client/apps/placeables/wall-config.d.ts +0 -75
  671. package/src/foundry/client/apps/sidebar/apps/chat-popout.d.ts +0 -34
  672. package/src/foundry/client/apps/sidebar/apps/client-settings.d.ts +0 -116
  673. package/src/foundry/client/apps/sidebar/apps/compendium.d.ts +0 -86
  674. package/src/foundry/client/apps/sidebar/apps/controls-reference.d.ts +0 -30
  675. package/src/foundry/client/apps/sidebar/apps/index.d.ts +0 -10
  676. package/src/foundry/client/apps/sidebar/apps/invitation-links.d.ts +0 -37
  677. package/src/foundry/client/apps/sidebar/apps/keybindings-config.d.ts +0 -247
  678. package/src/foundry/client/apps/sidebar/apps/module-management.d.ts +0 -120
  679. package/src/foundry/client/apps/sidebar/apps/permission-config.d.ts +0 -64
  680. package/src/foundry/client/apps/sidebar/apps/support-details.d.ts +0 -76
  681. package/src/foundry/client/apps/sidebar/apps/world-config.d.ts +0 -77
  682. package/src/foundry/client/apps/sidebar/index.d.ts +0 -5
  683. package/src/foundry/client/apps/sidebar/sidebar.d.ts +0 -102
  684. package/src/foundry/client/apps/sidebar/tab-base.d.ts +0 -68
  685. package/src/foundry/client/apps/sidebar/tab-directory.d.ts +0 -236
  686. package/src/foundry/client/apps/sidebar/tabs/actors-directory.d.ts +0 -16
  687. package/src/foundry/client/apps/sidebar/tabs/cards-directory.d.ts +0 -6
  688. package/src/foundry/client/apps/sidebar/tabs/chat-log.d.ts +0 -351
  689. package/src/foundry/client/apps/sidebar/tabs/combat-tracker.d.ts +0 -205
  690. package/src/foundry/client/apps/sidebar/tabs/compendium-directory.d.ts +0 -77
  691. package/src/foundry/client/apps/sidebar/tabs/index.d.ts +0 -12
  692. package/src/foundry/client/apps/sidebar/tabs/items-directory.d.ts +0 -10
  693. package/src/foundry/client/apps/sidebar/tabs/journal-directory.d.ts +0 -11
  694. package/src/foundry/client/apps/sidebar/tabs/macros-directory.d.ts +0 -12
  695. package/src/foundry/client/apps/sidebar/tabs/playlists-directory.d.ts +0 -306
  696. package/src/foundry/client/apps/sidebar/tabs/roll-table-directory.d.ts +0 -9
  697. package/src/foundry/client/apps/sidebar/tabs/scenes-directory.d.ts +0 -18
  698. package/src/foundry/client/apps/sidebar/tabs/settings.d.ts +0 -88
  699. package/src/foundry/client/apps/templates.d.ts +0 -425
  700. package/src/foundry/client/audio/audio.d.ts +0 -343
  701. package/src/foundry/client/audio/container.d.ts +0 -175
  702. package/src/foundry/client/audio/index.d.ts +0 -3
  703. package/src/foundry/client/audio/sound.d.ts +0 -303
  704. package/src/foundry/client/av/client.d.ts +0 -158
  705. package/src/foundry/client/av/clients/index.d.ts +0 -1
  706. package/src/foundry/client/av/clients/simplepeer.d.ts +0 -151
  707. package/src/foundry/client/av/index.d.ts +0 -4
  708. package/src/foundry/client/av/master.d.ts +0 -187
  709. package/src/foundry/client/av/settings.d.ts +0 -236
  710. package/src/foundry/client/config.d.ts +0 -1425
  711. package/src/foundry/client/core/gamepad.d.ts +0 -53
  712. package/src/foundry/client/core/hooks.d.ts +0 -967
  713. package/src/foundry/client/core/image.d.ts +0 -129
  714. package/src/foundry/client/core/index.d.ts +0 -13
  715. package/src/foundry/client/core/keybindings.d.ts +0 -298
  716. package/src/foundry/client/core/keyboard.d.ts +0 -247
  717. package/src/foundry/client/core/mouse.d.ts +0 -18
  718. package/src/foundry/client/core/nue.d.ts +0 -34
  719. package/src/foundry/client/core/settings.d.ts +0 -222
  720. package/src/foundry/client/core/socket.d.ts +0 -46
  721. package/src/foundry/client/core/sorting.d.ts +0 -78
  722. package/src/foundry/client/core/time.d.ts +0 -67
  723. package/src/foundry/client/core/utils.d.ts +0 -33
  724. package/src/foundry/client/core/video.d.ts +0 -65
  725. package/src/foundry/client/data/abstract/canvas-document.d.ts +0 -70
  726. package/src/foundry/client/data/abstract/client-backend.d.ts +0 -206
  727. package/src/foundry/client/data/abstract/client-document.d.ts +0 -439
  728. package/src/foundry/client/data/abstract/document-collection.d.ts +0 -192
  729. package/src/foundry/client/data/abstract/index.d.ts +0 -5
  730. package/src/foundry/client/data/abstract/world-collection.d.ts +0 -167
  731. package/src/foundry/client/data/collections/actors.d.ts +0 -35
  732. package/src/foundry/client/data/collections/cards.d.ts +0 -8
  733. package/src/foundry/client/data/collections/combats.d.ts +0 -43
  734. package/src/foundry/client/data/collections/compendium.d.ts +0 -321
  735. package/src/foundry/client/data/collections/fog.d.ts +0 -7
  736. package/src/foundry/client/data/collections/folder.d.ts +0 -27
  737. package/src/foundry/client/data/collections/index.d.ts +0 -15
  738. package/src/foundry/client/data/collections/items.d.ts +0 -10
  739. package/src/foundry/client/data/collections/journal.d.ts +0 -26
  740. package/src/foundry/client/data/collections/macros.d.ts +0 -26
  741. package/src/foundry/client/data/collections/messages.d.ts +0 -39
  742. package/src/foundry/client/data/collections/playlists.d.ts +0 -41
  743. package/src/foundry/client/data/collections/scenes.d.ts +0 -62
  744. package/src/foundry/client/data/collections/settings.d.ts +0 -25
  745. package/src/foundry/client/data/collections/tables.d.ts +0 -17
  746. package/src/foundry/client/data/collections/users.d.ts +0 -43
  747. package/src/foundry/client/data/documents/active-effect.d.ts +0 -172
  748. package/src/foundry/client/data/documents/actor.d.ts +0 -231
  749. package/src/foundry/client/data/documents/ambient-light.d.ts +0 -18
  750. package/src/foundry/client/data/documents/ambient-sound.d.ts +0 -9
  751. package/src/foundry/client/data/documents/card.d.ts +0 -133
  752. package/src/foundry/client/data/documents/cards.d.ts +0 -376
  753. package/src/foundry/client/data/documents/chat-message.d.ts +0 -267
  754. package/src/foundry/client/data/documents/combat.d.ts +0 -227
  755. package/src/foundry/client/data/documents/combatant.d.ts +0 -104
  756. package/src/foundry/client/data/documents/drawing.d.ts +0 -19
  757. package/src/foundry/client/data/documents/fog-exploration.d.ts +0 -64
  758. package/src/foundry/client/data/documents/folder.d.ts +0 -115
  759. package/src/foundry/client/data/documents/index.d.ts +0 -27
  760. package/src/foundry/client/data/documents/item.d.ts +0 -59
  761. package/src/foundry/client/data/documents/journal-entry.d.ts +0 -71
  762. package/src/foundry/client/data/documents/macro.d.ts +0 -60
  763. package/src/foundry/client/data/documents/measured-template.d.ts +0 -21
  764. package/src/foundry/client/data/documents/note.d.ts +0 -19
  765. package/src/foundry/client/data/documents/playlist-sound.d.ts +0 -117
  766. package/src/foundry/client/data/documents/playlist.d.ts +0 -192
  767. package/src/foundry/client/data/documents/scene.d.ts +0 -465
  768. package/src/foundry/client/data/documents/setting.d.ts +0 -35
  769. package/src/foundry/client/data/documents/table-result.d.ts +0 -30
  770. package/src/foundry/client/data/documents/table.d.ts +0 -220
  771. package/src/foundry/client/data/documents/tile.d.ts +0 -13
  772. package/src/foundry/client/data/documents/token.d.ts +0 -281
  773. package/src/foundry/client/data/documents/user.d.ts +0 -155
  774. package/src/foundry/client/data/documents/wall.d.ts +0 -9
  775. package/src/foundry/client/data/index.d.ts +0 -3
  776. package/src/foundry/client/dice/dice/coin.d.ts +0 -49
  777. package/src/foundry/client/dice/dice/die.d.ts +0 -230
  778. package/src/foundry/client/dice/dice/fate.d.ts +0 -37
  779. package/src/foundry/client/dice/dice/index.d.ts +0 -3
  780. package/src/foundry/client/dice/index.d.ts +0 -5
  781. package/src/foundry/client/dice/roll.d.ts +0 -495
  782. package/src/foundry/client/dice/term.d.ts +0 -123
  783. package/src/foundry/client/dice/terms/dice.d.ts +0 -277
  784. package/src/foundry/client/dice/terms/index.d.ts +0 -7
  785. package/src/foundry/client/dice/terms/math.d.ts +0 -69
  786. package/src/foundry/client/dice/terms/numeric.d.ts +0 -53
  787. package/src/foundry/client/dice/terms/operator.d.ts +0 -18
  788. package/src/foundry/client/dice/terms/parenthetical.d.ts +0 -51
  789. package/src/foundry/client/dice/terms/pool.d.ts +0 -235
  790. package/src/foundry/client/dice/terms/string.d.ts +0 -31
  791. package/src/foundry/client/dice/twister.d.ts +0 -134
  792. package/src/foundry/client/game.d.ts +0 -682
  793. package/src/foundry/client/head.d.ts +0 -44
  794. package/src/foundry/client/index.d.ts +0 -12
  795. package/src/foundry/client/pixi/board.d.ts +0 -632
  796. package/src/foundry/client/pixi/core/containers/cached-container.d.ts +0 -64
  797. package/src/foundry/client/pixi/core/containers/index.d.ts +0 -3
  798. package/src/foundry/client/pixi/core/containers/quadtree.d.ts +0 -166
  799. package/src/foundry/client/pixi/core/containers/sampler-mesh.d.ts +0 -22
  800. package/src/foundry/client/pixi/core/culling.d.ts +0 -37
  801. package/src/foundry/client/pixi/core/index.d.ts +0 -5
  802. package/src/foundry/client/pixi/core/interaction/canvas-animation.d.ts +0 -148
  803. package/src/foundry/client/pixi/core/interaction/control-icon.d.ts +0 -58
  804. package/src/foundry/client/pixi/core/interaction/index.d.ts +0 -5
  805. package/src/foundry/client/pixi/core/interaction/mouse-handler.d.ts +0 -323
  806. package/src/foundry/client/pixi/core/interaction/resize-handle.d.ts +0 -48
  807. package/src/foundry/client/pixi/core/interaction/targets.d.ts +0 -51
  808. package/src/foundry/client/pixi/core/loader.d.ts +0 -157
  809. package/src/foundry/client/pixi/core/shapes/index.d.ts +0 -5
  810. package/src/foundry/client/pixi/core/shapes/normalized-rectangle.d.ts +0 -31
  811. package/src/foundry/client/pixi/core/shapes/polygon-helpers.d.ts +0 -263
  812. package/src/foundry/client/pixi/core/shapes/precise-text.d.ts +0 -18
  813. package/src/foundry/client/pixi/core/shapes/ray.d.ts +0 -200
  814. package/src/foundry/client/pixi/core/shapes/source-polygon.d.ts +0 -110
  815. package/src/foundry/client/pixi/groups/effects.d.ts +0 -29
  816. package/src/foundry/client/pixi/groups/index.d.ts +0 -3
  817. package/src/foundry/client/pixi/groups/interface.d.ts +0 -27
  818. package/src/foundry/client/pixi/groups/primary.d.ts +0 -40
  819. package/src/foundry/client/pixi/index.d.ts +0 -10
  820. package/src/foundry/client/pixi/layer.d.ts +0 -105
  821. package/src/foundry/client/pixi/layers/controls/cursor.d.ts +0 -27
  822. package/src/foundry/client/pixi/layers/controls/door.d.ts +0 -67
  823. package/src/foundry/client/pixi/layers/controls/hud.d.ts +0 -117
  824. package/src/foundry/client/pixi/layers/controls/index.d.ts +0 -4
  825. package/src/foundry/client/pixi/layers/controls/ruler.d.ts +0 -207
  826. package/src/foundry/client/pixi/layers/controls.d.ts +0 -144
  827. package/src/foundry/client/pixi/layers/drawings.d.ts +0 -116
  828. package/src/foundry/client/pixi/layers/effects/effect.d.ts +0 -133
  829. package/src/foundry/client/pixi/layers/effects/index.d.ts +0 -4
  830. package/src/foundry/client/pixi/layers/effects/leaves.d.ts +0 -79
  831. package/src/foundry/client/pixi/layers/effects/rain.d.ts +0 -107
  832. package/src/foundry/client/pixi/layers/effects/snow.d.ts +0 -62
  833. package/src/foundry/client/pixi/layers/effects.d.ts +0 -61
  834. package/src/foundry/client/pixi/layers/grid/grid.d.ts +0 -171
  835. package/src/foundry/client/pixi/layers/grid/hex.d.ts +0 -118
  836. package/src/foundry/client/pixi/layers/grid/highlight.d.ts +0 -28
  837. package/src/foundry/client/pixi/layers/grid/index.d.ts +0 -4
  838. package/src/foundry/client/pixi/layers/grid/square.d.ts +0 -48
  839. package/src/foundry/client/pixi/layers/grid.d.ts +0 -204
  840. package/src/foundry/client/pixi/layers/index.d.ts +0 -15
  841. package/src/foundry/client/pixi/layers/lighting.d.ts +0 -229
  842. package/src/foundry/client/pixi/layers/map.d.ts +0 -263
  843. package/src/foundry/client/pixi/layers/notes.d.ts +0 -64
  844. package/src/foundry/client/pixi/layers/sight.d.ts +0 -313
  845. package/src/foundry/client/pixi/layers/sounds.d.ts +0 -112
  846. package/src/foundry/client/pixi/layers/templates.d.ts +0 -51
  847. package/src/foundry/client/pixi/layers/tokens.d.ts +0 -169
  848. package/src/foundry/client/pixi/layers/walls.d.ts +0 -321
  849. package/src/foundry/client/pixi/perception/clockwise-sweep.d.ts +0 -406
  850. package/src/foundry/client/pixi/perception/index.d.ts +0 -2
  851. package/src/foundry/client/pixi/perception/perception-manager.d.ts +0 -107
  852. package/src/foundry/client/pixi/placeable.d.ts +0 -414
  853. package/src/foundry/client/pixi/placeables/drawing.d.ts +0 -289
  854. package/src/foundry/client/pixi/placeables/index.d.ts +0 -8
  855. package/src/foundry/client/pixi/placeables/light.d.ts +0 -126
  856. package/src/foundry/client/pixi/placeables/note.d.ts +0 -67
  857. package/src/foundry/client/pixi/placeables/sound.d.ts +0 -131
  858. package/src/foundry/client/pixi/placeables/template.d.ts +0 -153
  859. package/src/foundry/client/pixi/placeables/tile.d.ts +0 -315
  860. package/src/foundry/client/pixi/placeables/token.d.ts +0 -722
  861. package/src/foundry/client/pixi/placeables/wall.d.ts +0 -268
  862. package/src/foundry/client/pixi/placeables.d.ts +0 -520
  863. package/src/foundry/client/pixi/sources/base-source.d.ts +0 -145
  864. package/src/foundry/client/pixi/sources/index.d.ts +0 -4
  865. package/src/foundry/client/pixi/sources/light-source.d.ts +0 -413
  866. package/src/foundry/client/pixi/sources/sound-source.d.ts +0 -45
  867. package/src/foundry/client/pixi/sources/vision-source.d.ts +0 -123
  868. package/src/foundry/client/pixi/webgl/base.d.ts +0 -69
  869. package/src/foundry/client/pixi/webgl/blend_modes.d.ts +0 -33
  870. package/src/foundry/client/pixi/webgl/filters.d.ts +0 -182
  871. package/src/foundry/client/pixi/webgl/index.d.ts +0 -5
  872. package/src/foundry/client/pixi/webgl/lighting.d.ts +0 -480
  873. package/src/foundry/client/pixi/webgl/sampler.d.ts +0 -19
  874. package/src/foundry/client/ui/context.d.ts +0 -136
  875. package/src/foundry/client/ui/dialog.d.ts +0 -286
  876. package/src/foundry/client/ui/drag.d.ts +0 -105
  877. package/src/foundry/client/ui/dragdrop.d.ts +0 -118
  878. package/src/foundry/client/ui/editor.d.ts +0 -321
  879. package/src/foundry/client/ui/filepicker.d.ts +0 -510
  880. package/src/foundry/client/ui/filter.d.ts +0 -106
  881. package/src/foundry/client/ui/forms.d.ts +0 -47
  882. package/src/foundry/client/ui/index.d.ts +0 -10
  883. package/src/foundry/client/ui/notifications.d.ts +0 -110
  884. package/src/foundry/client/ui/tabs.d.ts +0 -103
  885. package/src/foundry/common/abstract/backend.mjs.d.ts +0 -253
  886. package/src/foundry/common/abstract/data.mjs.d.ts +0 -316
  887. package/src/foundry/common/abstract/document.mjs.d.ts +0 -838
  888. package/src/foundry/common/abstract/embedded-collection.mjs.d.ts +0 -79
  889. package/src/foundry/common/abstract/module.mjs.d.ts +0 -6
  890. package/src/foundry/common/config.mjs/index.d.ts +0 -1
  891. package/src/foundry/common/config.mjs/releaseData.d.ts +0 -100
  892. package/src/foundry/common/constants.mjs.d.ts +0 -940
  893. package/src/foundry/common/data/data.mjs/activeEffectData.d.ts +0 -168
  894. package/src/foundry/common/data/data.mjs/actorData.d.ts +0 -219
  895. package/src/foundry/common/data/data.mjs/adventureData.d.ts +0 -166
  896. package/src/foundry/common/data/data.mjs/ambientLightData.d.ts +0 -154
  897. package/src/foundry/common/data/data.mjs/ambientSoundData.d.ts +0 -195
  898. package/src/foundry/common/data/data.mjs/animationData.d.ts +0 -91
  899. package/src/foundry/common/data/data.mjs/cardData.d.ts +0 -264
  900. package/src/foundry/common/data/data.mjs/cardFaceData.d.ts +0 -67
  901. package/src/foundry/common/data/data.mjs/cardsData.d.ts +0 -237
  902. package/src/foundry/common/data/data.mjs/chatMessageData.d.ts +0 -220
  903. package/src/foundry/common/data/data.mjs/chatSpeakerData.d.ts +0 -80
  904. package/src/foundry/common/data/data.mjs/combatData.d.ts +0 -149
  905. package/src/foundry/common/data/data.mjs/combatantData.d.ts +0 -136
  906. package/src/foundry/common/data/data.mjs/darknessActivation.d.ts +0 -55
  907. package/src/foundry/common/data/data.mjs/drawingData.d.ts +0 -407
  908. package/src/foundry/common/data/data.mjs/effectChangeData.d.ts +0 -80
  909. package/src/foundry/common/data/data.mjs/effectDurationData.d.ts +0 -109
  910. package/src/foundry/common/data/data.mjs/fogExplorationData.d.ts +0 -115
  911. package/src/foundry/common/data/data.mjs/folderData.d.ts +0 -155
  912. package/src/foundry/common/data/data.mjs/index.d.ts +0 -31
  913. package/src/foundry/common/data/data.mjs/itemData.d.ts +0 -184
  914. package/src/foundry/common/data/data.mjs/journalEntryData.d.ts +0 -132
  915. package/src/foundry/common/data/data.mjs/lightData.d.ts +0 -227
  916. package/src/foundry/common/data/data.mjs/macroData.d.ts +0 -199
  917. package/src/foundry/common/data/data.mjs/measuredTemplateData.d.ts +0 -212
  918. package/src/foundry/common/data/data.mjs/noteData.d.ts +0 -233
  919. package/src/foundry/common/data/data.mjs/playlistData.d.ts +0 -201
  920. package/src/foundry/common/data/data.mjs/playlistSoundData.d.ts +0 -159
  921. package/src/foundry/common/data/data.mjs/prototypeTokenData.d.ts +0 -75
  922. package/src/foundry/common/data/data.mjs/rollTableData.d.ts +0 -189
  923. package/src/foundry/common/data/data.mjs/sceneData.d.ts +0 -665
  924. package/src/foundry/common/data/data.mjs/settingData.d.ts +0 -86
  925. package/src/foundry/common/data/data.mjs/tableResultData.d.ts +0 -167
  926. package/src/foundry/common/data/data.mjs/tileData.d.ts +0 -246
  927. package/src/foundry/common/data/data.mjs/tileOcclusion.d.ts +0 -62
  928. package/src/foundry/common/data/data.mjs/tokenBarData.d.ts +0 -47
  929. package/src/foundry/common/data/data.mjs/tokenData.d.ts +0 -505
  930. package/src/foundry/common/data/data.mjs/userData.d.ts +0 -177
  931. package/src/foundry/common/data/data.mjs/videoData.d.ts +0 -70
  932. package/src/foundry/common/data/data.mjs/wallData.d.ts +0 -222
  933. package/src/foundry/common/data/fields.mjs.d.ts +0 -526
  934. package/src/foundry/common/data/module.mjs.d.ts +0 -3
  935. package/src/foundry/common/data/validators.mjs.d.ts +0 -56
  936. package/src/foundry/common/documents.mjs/baseActiveEffect.d.ts +0 -44
  937. package/src/foundry/common/documents.mjs/baseActor.d.ts +0 -68
  938. package/src/foundry/common/documents.mjs/baseAdventure.d.ts +0 -38
  939. package/src/foundry/common/documents.mjs/baseAmbientLight.d.ts +0 -31
  940. package/src/foundry/common/documents.mjs/baseAmbientSound.d.ts +0 -29
  941. package/src/foundry/common/documents.mjs/baseCard.d.ts +0 -58
  942. package/src/foundry/common/documents.mjs/baseCards.d.ts +0 -39
  943. package/src/foundry/common/documents.mjs/baseChatMessage.d.ts +0 -49
  944. package/src/foundry/common/documents.mjs/baseCombat.d.ts +0 -40
  945. package/src/foundry/common/documents.mjs/baseCombatant.d.ts +0 -48
  946. package/src/foundry/common/documents.mjs/baseDrawing.d.ts +0 -54
  947. package/src/foundry/common/documents.mjs/baseFogExploration.d.ts +0 -41
  948. package/src/foundry/common/documents.mjs/baseFolder.d.ts +0 -30
  949. package/src/foundry/common/documents.mjs/baseItem.d.ts +0 -57
  950. package/src/foundry/common/documents.mjs/baseJournalEntry.d.ts +0 -26
  951. package/src/foundry/common/documents.mjs/baseMacro.d.ts +0 -42
  952. package/src/foundry/common/documents.mjs/baseMeasuredTemplate.d.ts +0 -66
  953. package/src/foundry/common/documents.mjs/baseNote.d.ts +0 -39
  954. package/src/foundry/common/documents.mjs/basePlaylist.d.ts +0 -32
  955. package/src/foundry/common/documents.mjs/basePlaylistSound.d.ts +0 -37
  956. package/src/foundry/common/documents.mjs/baseRollTable.d.ts +0 -31
  957. package/src/foundry/common/documents.mjs/baseScene.d.ts +0 -120
  958. package/src/foundry/common/documents.mjs/baseSetting.d.ts +0 -38
  959. package/src/foundry/common/documents.mjs/baseTableResult.d.ts +0 -52
  960. package/src/foundry/common/documents.mjs/baseTile.d.ts +0 -29
  961. package/src/foundry/common/documents.mjs/baseToken.d.ts +0 -44
  962. package/src/foundry/common/documents.mjs/baseUser.d.ts +0 -102
  963. package/src/foundry/common/documents.mjs/baseWall.d.ts +0 -43
  964. package/src/foundry/common/documents.mjs/index.d.ts +0 -28
  965. package/src/foundry/common/module.mjs.d.ts +0 -114
  966. package/src/foundry/common/packages.mjs/index.d.ts +0 -8
  967. package/src/foundry/common/packages.mjs/moduleData.d.ts +0 -55
  968. package/src/foundry/common/packages.mjs/packageAuthorData.d.ts +0 -58
  969. package/src/foundry/common/packages.mjs/packageCompendiumData.d.ts +0 -88
  970. package/src/foundry/common/packages.mjs/packageData.d.ts +0 -319
  971. package/src/foundry/common/packages.mjs/packageDependencyData.d.ts +0 -69
  972. package/src/foundry/common/packages.mjs/packageLanguageData.d.ts +0 -75
  973. package/src/foundry/common/packages.mjs/systemData.d.ts +0 -58
  974. package/src/foundry/common/packages.mjs/tagPackageAvailability.d.ts +0 -9
  975. package/src/foundry/common/packages.mjs/worldData.d.ts +0 -76
  976. package/src/foundry/common/types.mjs.d.ts +0 -299
  977. package/src/foundry/common/utils/collection.mjs.d.ts +0 -151
  978. package/src/foundry/common/utils/geometry.mjs.d.ts +0 -148
  979. package/src/foundry/common/utils/helpers.mjs.d.ts +0 -498
  980. package/src/foundry/common/utils/http.mjs.d.ts +0 -52
  981. package/src/foundry/common/utils/module.mjs.d.ts +0 -5
  982. package/src/foundry/common/utils/primitives.mjs.d.ts +0 -287
  983. package/src/foundry/common/utils/semaphore.mjs.d.ts +0 -83
  984. package/src/foundry/index.d.ts +0 -3
  985. package/src/foundry/templates/index.d.ts +0 -1
  986. package/src/foundry/templates/views/layouts/main.hbs.d.ts +0 -11
  987. package/src/index.d.ts +0 -2
  988. package/src/types/augments/index.d.ts +0 -6
  989. package/src/types/augments/pixiGraphicsSmooth.d.ts +0 -7
  990. package/src/types/augments/pixiLegacyGraphics.d.ts +0 -7
  991. package/src/types/augments/pixiParticles.d.ts +0 -7
  992. package/src/types/augments/simple-peer.d.ts +0 -13
  993. package/src/types/augments/socket.io-client.d.ts +0 -12
  994. package/src/types/augments/tinyMCE.d.ts +0 -82
  995. package/src/types/config.d.ts +0 -183
  996. package/src/types/helperTypes.d.ts +0 -151
  997. package/src/types/index.d.ts +0 -3
  998. package/src/types/utils.d.ts +0 -143
  999. /package/src/foundry/client/apps/av/{camera-popout.d.ts → camera-popout.d.mts} +0 -0
  1000. /package/src/foundry/client/{tail.d.ts → tail.d.mts} +0 -0
@@ -0,0 +1,1234 @@
1
+ import type { EditorState, Plugin } from "prosemirror-state";
2
+ import type { DeepPartial, EmptyObject, ValueOf } from "../../types/utils.d.mts";
3
+ import type Document from "../common/abstract/document.d.mts";
4
+ import type { EffectChangeData } from "../common/documents/_types.d.mts";
5
+ import type { ProseMirrorDropDown } from "../common/prosemirror/menu.d.mts";
6
+ import type { DropData } from "./data/abstract/client-document.d.mts";
7
+
8
+ // eslint-disable-next-line import/no-named-as-default
9
+ import type ProseMirrorMenu from "../common/prosemirror/menu.d.mts";
10
+ import type PointVisionSource from "../client-esm/canvas/sources/point-vision-source.d.mts";
11
+ import type RenderedEffectSource from "../client-esm/canvas/sources/rendered-effect-source.d.mts";
12
+ import type { CompendiumArtInfo } from "../client-esm/helpers/_types.d.mts";
13
+
14
+ declare global {
15
+ /**
16
+ * This namespace contains typescript specific type definitions for the {@link Hooks} callback functions. It contains an
17
+ * interface ({@link Hooks.StaticCallbacks}) for callbacks with static names. There are more function types in the
18
+ * namespace for the dynamic hooks, whose names are generated at runtime. There is also a union of all of the dynamic
19
+ * hooks ({@link Hooks.DynamicCallbacks}).
20
+ *
21
+ * Callback types remarked to be called with {@link Hooks.callAll} do not care about the return value of the callback.
22
+ * Callback types remarked to be called with {@link Hooks.call} do care about the return value and will stop executing
23
+ * remaining callbacks if `false` is returned. If a callback type does not have such a remark, pay attention to the
24
+ * return value documentation.
25
+ *
26
+ * @example Using a callback type with a static name
27
+ * ```typescript
28
+ * Hooks.on("updateWorldTime", (worldTime, dt) => {
29
+ * worldTime; // number
30
+ * dt; // number
31
+ * // [...]
32
+ * })
33
+ * ```
34
+ *
35
+ * @example Using a callback with a dynamic name and generic parameter
36
+ * ```typescript
37
+ * Hooks.on<Hooks.CloseApplication<FormApplication>>("closeFormApplication", (app, jq) => {
38
+ * app; // FormApplication
39
+ * jq; // JQuery
40
+ * // [...]
41
+ * })
42
+ * ```
43
+ *
44
+ * @example Using the `error` callback type
45
+ * ```typescript
46
+ * Hooks.on("error", (...args) => {
47
+ * if (args[0] === "Canvas#draw")
48
+ * args[2].layer // CanvasLayer
49
+ * // [...]
50
+ * })
51
+ * ```
52
+ */
53
+ namespace Hooks {
54
+ interface OnOptions {
55
+ /** Only trigger the hooked function once */
56
+ once?: boolean;
57
+ }
58
+
59
+ interface StaticCallbacks {
60
+ /** Core lifecycle */
61
+
62
+ /**
63
+ * A hook event that fires as Foundry is initializing, right before any initialization tasks have begun.
64
+ * @remarks This is called by {@link Hooks.callAll}.
65
+ * @see {@link Game#initialize}
66
+ */
67
+ init: () => void;
68
+
69
+ /**
70
+ * A hook event that fires once Localization translations have been loaded and are ready for use.
71
+ * @remarks This is called by {@link Hooks.callAll}.
72
+ * @see {@link Localization#initialize}
73
+ */
74
+ i18nInit: () => void;
75
+
76
+ /**
77
+ * A hook event that fires when Foundry has finished initializing but
78
+ * before the game state has been set up. Fires before any Documents, UI
79
+ * applications, or the Canvas have been initialized.
80
+ * @remarks This is called by {@link Hooks.callAll}.
81
+ * @see {@link Game#setupGame}
82
+ */
83
+ setup: () => void;
84
+
85
+ /**
86
+ * A hook event that fires when the game is fully ready.
87
+ * @remarks This is called by {@link Hooks.callAll}.
88
+ * @see {@link Game#setupGame}
89
+ */
90
+ ready: () => void;
91
+
92
+ /**
93
+ * A hook event that fires whenever foundry experiences an error.
94
+ *
95
+ * @param location - The method where the error was caught.
96
+ * @param err - The error.
97
+ * @param data - Additional data that might be provided, based on the nature of the error.
98
+ * (default: `{}`)
99
+ * @remarks This is called by {@link Hooks.callAll}.
100
+ * @see {@link Hooks.onError}
101
+ */
102
+ error: (...args: ValueOf<ErrorCallbackParameters>) => void;
103
+
104
+ /** Game */
105
+
106
+ /**
107
+ * A hook event that fires when the game is paused or un-paused.
108
+ * @param paused - Is the game now paused (true) or un-paused (false)
109
+ * @remarks This is called by {@link Hooks.callAll}.
110
+ * @see {@link Game#togglePause}
111
+ */
112
+ pauseGame: (paused: boolean) => void;
113
+
114
+ /**
115
+ * A hook event that fires when the World time has been updated.
116
+ * @param worldTime - The new canonical World time
117
+ * @param delta - The time delta
118
+ * @remarks This is called by {@link Hooks.callAll}.
119
+ * @see {@link GameTime#onUpdateWorldTime}
120
+ */
121
+ updateWorldTime: (worldTime: number, delta: number) => void;
122
+
123
+ /** CanvasLifecycle */
124
+
125
+ /**
126
+ * A hook event that fires immediately prior to PIXI Application construction with the configuration parameters.
127
+ * @param canvasConfig - Canvas configuration parameters that will be used to initialize the PIXI.Application
128
+ * @remarks This is called by {@link Hooks.callAll}.
129
+ */
130
+ canvasConfig: (canvasConfig: ConstructorParameters<typeof PIXI.Application>[0]) => void;
131
+
132
+ /**
133
+ * A hook event that fires when the Canvas is initialized.
134
+ * @param canvas - the Canvas instance being initialized
135
+ * @remarks This is called by {@link Hooks.callAll}.
136
+ * @see {@link Canvas#draw}
137
+ */
138
+ canvasInit: (canvas: Canvas) => void;
139
+
140
+ /**
141
+ * A hook event that fires when the Canvas is panned.
142
+ * @param canvas - The Canvas instance
143
+ * @param view - The applied camera position
144
+ * @remarks When called during animated panning, the callback is called on every tick.
145
+ * @remarks This is called by {@link Hooks.callAll}.
146
+ * @see {@link Canvas#pan}
147
+ * @see {@link Canvas#animatePan}
148
+ */
149
+ canvasPan: (canvas: Canvas, view: Canvas.ViewPosition) => void;
150
+
151
+ /**
152
+ * A hook event that fires when the Canvas is ready.
153
+ * @param canvas - The Canvas which is now ready for use
154
+ * @remarks This is called by {@link Hooks.call}.
155
+ * @see {@link Canvas#draw}
156
+ */
157
+ canvasReady: (canvas: Canvas) => boolean | void;
158
+
159
+ /**
160
+ * A hook event that fires when the Canvas is deactivated.
161
+ * @param canvas - The Canvas instance being deactivated
162
+ * @remarks This is called by {@link Hooks.callAll}.
163
+ */
164
+ canvasTearDown: (canvas: Canvas) => void;
165
+
166
+ /**
167
+ * A hook event that fires when the Canvas is beginning to draw the canvas groups.
168
+ * @param canvas - The Canvas instance being drawn
169
+ * @remarks This is called by {@link Hooks.callAll}.
170
+ */
171
+ canvasDraw: (canvas: Canvas) => void;
172
+
173
+ /**
174
+ * A hook event that fires when some useful data is dropped onto the Canvas.
175
+ * @param canvas - The Canvas
176
+ * @param data - The data that has been dropped onto the Canvas
177
+ * @remarks This is called by {@link Hooks.call}.
178
+ * @remarks An explicit return value of `false` prevents the Document being created.
179
+ * @see {@link Canvas#_onDrop}
180
+ */
181
+ dropCanvasData: (canvas: Canvas, data: TokenLayer.DropData | NotesLayer.DropData) => boolean | void;
182
+
183
+ /**
184
+ * A hook event that fires when objects are highlighted on the canvas.
185
+ * Callers may use this hook to apply their own modifications or enhancements to highlighted objects.
186
+ * @param active - Is the highlight state now active
187
+ * @see {@link Canvas#highlightObjects}
188
+ */
189
+ highlightObjects: (active: boolean) => void;
190
+
191
+ /** Application */
192
+
193
+ /**
194
+ * A hook event that fires when the Scene controls are initialized.
195
+ * @param controls - The SceneControl configurations
196
+ * @remarks This is called by {@link Hooks.callAll}.
197
+ * @see {@link SceneControls#_getControlButtons}
198
+ */
199
+ getSceneControlButtons: (controls: SceneControl[]) => void;
200
+
201
+ /**
202
+ * A hook event that fires whenever data is dropped into a Hotbar slot.
203
+ * The hook provides a reference to the Hotbar application, the dropped data, and the target slot.
204
+ * Default handling of the drop event can be prevented by returning false within the hooked function.
205
+ * @param hotbar - The Hotbar application instance
206
+ * @param data - The dropped data object
207
+ * @param slot - The target hotbar slot
208
+ * @remarks This is called by {@link Hooks.call}.
209
+ * @remarks An explicit return value of `false` prevents the Document being created.
210
+ * @see {@link Hotbar#_onDrop}
211
+ */
212
+ hotbarDrop: (hotbar: Hotbar, data: DropData<Macro.ConfiguredInstance>, slot: number) => boolean | void;
213
+
214
+ /**
215
+ * A hook event that fires when the SceneNavigation menu is expanded or collapsed.
216
+ * @param nav - The SceneNavigation application
217
+ * @param collapsed - Whether the navigation is now collapsed or not
218
+ * @remarks This is called by {@link Hooks.callAll}.
219
+ * @see {@link SceneNavigation#expand}
220
+ * @see {@link SceneNavigation#collapse}
221
+ */
222
+ collapseSceneNavigation: (nav: SceneNavigation, collapsed: boolean) => void;
223
+
224
+ /**
225
+ * A hook event that fires when the Sidebar is collapsed or expanded.
226
+ * @param sidebar - The Sidebar application
227
+ * @param collapsed - Whether the Sidebar is now collapsed or not
228
+ * @remarks This is called by {@link Hooks.callAll}.
229
+ * @see {@link Sidebar#expand}
230
+ * @see {@link Sidebar#collapse}
231
+ */
232
+ collapseSidebar: (sidebar: Sidebar, collapsed: boolean) => void;
233
+
234
+ /**
235
+ * A hook event that fires when the Sidebar tab is changed.
236
+ * @param app - The SidebarTab application which is now active
237
+ * @remarks This is called by {@link Hooks.callAll}.
238
+ * @see {@link Sidebar#_onChangeTab}
239
+ */
240
+ changeSidebarTab: (app: SidebarTab) => void;
241
+
242
+ /** Active Effects */
243
+
244
+ /**
245
+ * A hook event that fires when a custom active effect is applied.
246
+ * @param actor - The actor the active effect is being applied to
247
+ * @param change - The change data being applied
248
+ * @remarks This is called by {@link Hooks.call}.
249
+ * @see {@link ActiveEffect#_applyCustom}
250
+ */
251
+ applyActiveEffect: (actor: Actor.ConfiguredInstance, change: EffectChangeData) => boolean | void;
252
+
253
+ /** Compendium */
254
+
255
+ /**
256
+ * A hook event that fires whenever the contents of a Compendium pack were modified.
257
+ * This hook fires for all connected clients after the update has been processed.
258
+ *
259
+ * @param pack - The Compendium pack being modified
260
+ * @param documents - The locally-cached Documents which were modified in the operation
261
+ * @param options - Additional options which modified the modification request
262
+ * @param userId - The ID of the User who triggered the modification workflow
263
+ * @remarks This is called by {@link Hooks.callAll}.
264
+ * @see {@link CompendiumCollection#_onModifyContents}
265
+ */
266
+ updateCompendium: (
267
+ pack: CompendiumCollection.Any,
268
+ documents: Document.Any[],
269
+ options: Document.OnUpdateOptions<Document.Any["documentName"]>,
270
+ userId: string,
271
+ ) => void;
272
+
273
+ /** Token */
274
+
275
+ /**
276
+ * A hook event that fires when a token {@link Token} should apply a specific status effect.
277
+ * @param token - The token affected
278
+ * @param statusId - The status effect ID being applied, from CONFIG.specialStatusEffects.
279
+ * @param active - Is the special status effect now active?
280
+ */
281
+ applyTokenStatusEffect: (token: Token.ConfiguredInstance, statusId: string, active: boolean) => void;
282
+
283
+ /**
284
+ * A hook event that fires when a chat bubble is initially configured.
285
+ * @param token - The speaking token
286
+ * @param html - The HTML for the chat bubble
287
+ * @param message - The spoken message text
288
+ * @param options - additional options
289
+ * @remarks This is called when creating a {@link ChatBubble}, but before displaying it.
290
+ * @remarks This is called by {@link Hooks.call}.
291
+ * @remarks An explicit return value of `false` prevents the chat bubble being shown.
292
+ * @see {@link ChatBubbles#say}
293
+ */
294
+ chatBubble: (
295
+ token: Token,
296
+ html: JQuery,
297
+ message: string,
298
+ options: {
299
+ /** Whether to style the speech bubble as an emote */
300
+ emote: boolean;
301
+ },
302
+ ) => boolean | void;
303
+
304
+ /**
305
+ * A hook event that fires when a token's resource bar attribute has been modified.
306
+ * @param data - A object describing the modification
307
+ * @param updates - The update delta that will be applied to the Token's actor
308
+ * @returns whether the Actor should be updated
309
+ * @remarks This is called by {@link Hooks.call}.
310
+ * @see {@link Actor#modifyTokenAttribute}
311
+ * @see {@link Actor#update}
312
+ */
313
+ modifyTokenAttribute: (
314
+ data: {
315
+ /** The attribute path */
316
+ attribute: string;
317
+
318
+ /** The target attribute value */
319
+ value: number;
320
+
321
+ /** Whether the number represents a relative change (true) or an absolute change (false) */
322
+ isDelta: boolean;
323
+
324
+ /** Whether the new value is part of an attribute bar, or just a direct value */
325
+ isBar: boolean;
326
+ },
327
+ updates: Record<string, number>,
328
+ ) => boolean;
329
+
330
+ /**
331
+ * A hook event that fires when a token is targeted or un-targeted.
332
+ * @param user - The User doing the targeting
333
+ * @param token - The targeted Token
334
+ * @param targeted - Whether the Token has been targeted or untargeted
335
+ * @remarks This is called by {@link Hooks.callAll}.
336
+ * @see {@link UserTargets#_hook}
337
+ */
338
+ targetToken: (
339
+ user: User.ConfiguredInstance,
340
+ token: Document.ConfiguredObjectClassForName<"Token">,
341
+ targeted: boolean,
342
+ ) => void;
343
+
344
+ /** Note */
345
+
346
+ /**
347
+ * A hook event that fires whenever a map note is double-clicked.
348
+ * The hook provides the note placeable and the arguments passed to the associated {@link JournalSheet} render call.
349
+ * Hooked functions may modify the render arguments or cancel the render by returning false.
350
+ * @param note - The note that was activated
351
+ * @param options - Options for rendering the associated {@link JournalSheet}
352
+ * @remarks This is called by {@link Hooks.call}.
353
+ */
354
+ activateNote: (note: Note.ConfiguredInstance, options: JournalSheet.RenderOptions) => boolean | false;
355
+
356
+ /** Cards */
357
+
358
+ /**
359
+ * A hook event that fires when Cards are dealt from a deck to other hands
360
+ * @param origin - The origin Cards document
361
+ * @param destinations - An array of destination Cards documents
362
+ * @param context - Additional context which describes the operation
363
+ * @remarks This is called by {@link Hooks.call}.
364
+ * @remarks An explicit return value of `false` prevents the operation.
365
+ */
366
+ dealCards: (
367
+ origin: Cards.ConfiguredInstance,
368
+ destinations: Cards.ConfiguredInstance[],
369
+ context: Cards.DealContext,
370
+ ) => boolean | void;
371
+
372
+ /**
373
+ * A hook event that fires when Cards are passed from one stack to another
374
+ * @param origin - The origin Cards document
375
+ * @param destination - The destination Cards document
376
+ * @param context - Additional context which describes the operation
377
+ * @remarks This is called by {@link Hooks.call}.
378
+ * @remarks An explicit return value of `false` prevents the operation.
379
+ */
380
+ passCards: (
381
+ origin: Cards.ConfiguredInstance,
382
+ destination: Cards.ConfiguredInstance,
383
+ context: Cards.DealContext,
384
+ ) => boolean | void;
385
+
386
+ /**
387
+ * A hook event that fires when a stack of Cards are returned to the decks they originally came from.
388
+ * @param origin - The origin Cards document.
389
+ * @param returned - The cards being returned.
390
+ * @param context - Additional context which describes the operation.
391
+ */
392
+ returnCards: (
393
+ origin: Cards.ConfiguredInstance,
394
+ returned: Card.ConfiguredInstance[],
395
+ context: Cards.ReturnContext,
396
+ ) => boolean | void;
397
+
398
+ /** Actor */
399
+
400
+ /**
401
+ * A hook even that fires when package-provided art is applied to a compendium Document.
402
+ * @param documentClass - The Document class.
403
+ * @param source - The Document's source data.
404
+ * @param pack - The Document's compendium.
405
+ * @param art - The art being applied.
406
+ * @remarks Called as part of _initializeSource, after data migration, cleaning, and shims
407
+ * @remarks Currently only called by Actor but comments are more generic
408
+ * @remarks This is called by {@link Hooks.callAll}.
409
+ */
410
+ applyCompendiumArt: (
411
+ documentClass: Actor.ConfiguredClass,
412
+ source: foundry.documents.BaseActor.ConstructorData,
413
+ pack: CompendiumCollection.Any,
414
+ art: CompendiumArtInfo,
415
+ ) => void;
416
+
417
+ /** ActorSheet */
418
+
419
+ /**
420
+ * A hook event that fires when some useful data is dropped onto an ActorSheet.
421
+ * @param actor - The Actor
422
+ * @param sheet - The ActorSheet application
423
+ * @param data - The data that has been dropped onto the sheet
424
+ * @remarks This is called by {@link Hooks.call}.
425
+ * @remarks An explicit return value of `false` prevents the Document being created.
426
+ * @see {@link ActorSheet#_onDrop}
427
+ */
428
+ dropActorSheetData: (
429
+ actor: Actor.ConfiguredInstance,
430
+ sheet: ActorSheet,
431
+ data: ActorSheet.DropData,
432
+ ) => boolean | void;
433
+
434
+ /** CanvasVisibility */
435
+
436
+ /**
437
+ * A hook event that fires when the set of vision sources are initialized.
438
+ * @param sources - The collection of current vision sources
439
+ * @remarks This is called by {@link Hooks.call}.
440
+ */
441
+ initializeVisionSources: (sources: Collection<PointVisionSource.Any>) => void;
442
+
443
+ /**
444
+ * A hook event that fires when the LightingLayer is refreshed.
445
+ * @param layer - the LightingLayer
446
+ * @remarks This is called by {@link Hooks.callAll}.
447
+ * @see {@link LightingLayer#refresh}
448
+ */
449
+ lightingRefresh: (layer: LightingLayer) => void;
450
+
451
+ /**
452
+ * A hook event that fires when visibility is refreshed.
453
+ * @param visibility - The CanvasVisibility instance
454
+ * @remarks This is called by {@link Hooks.callAll}.
455
+ */
456
+ visibilityRefresh: (visibility: CanvasVisibility) => void;
457
+
458
+ /**
459
+ * A hook event that fires during light source initialization.
460
+ * This hook can be used to add programmatic light sources to the Scene.
461
+ * @param source - The EffectsCanvasGroup where light sources are initialized
462
+ * @remarks This is called by {@link Hooks.callAll}.
463
+ * @see {@link EffectsCanvasGroup#initializeLightSources}
464
+ */
465
+ initializeLightSources: (group: EffectsCanvasGroup) => void;
466
+
467
+ /**
468
+ * A hook event that fires during darkness source initialization.
469
+ * This hook can be used to add programmatic darkness sources to the Scene.
470
+ * @param group - The EffectsCanvasGroup where darkness sources are initialized
471
+ * @remarks This is called by {@link Hooks.callAll}.
472
+ */
473
+ initializeDarknessSources: (group: EffectsCanvasGroup) => void;
474
+
475
+ /**
476
+ * A hook event that fires when the CanvasVisibility layer has been refreshed.
477
+ * @param visibility - The CanvasVisibility layer
478
+ * @remarks This is called by {@link Hooks.callAll}.
479
+ * @see {@link CanvasVisibility#restrictVisibility}
480
+ */
481
+ sightRefresh: (visibility: CanvasVisibility) => void;
482
+
483
+ /** Weather */
484
+
485
+ /**
486
+ * Initialize the weather container from a weather config object.
487
+ * @param weatherEffect - The weather effects canvas layer
488
+ * @param weatherEffectsConfig - The weather effects config object
489
+ * @remarks This is called by {@link Hooks.callAll}.
490
+ */
491
+ initializeWeatherEffects: (
492
+ weatherEffect: WeatherEffects,
493
+ weatherEffectsConfig?: WeatherEffects.WeatherEffectsConfig | null,
494
+ ) => void;
495
+
496
+ /** Adventure */
497
+
498
+ /**
499
+ * A hook event that fires when Adventure data is being prepared for import.
500
+ * Modules may return false from this hook to take over handling of the import workflow.
501
+ * @param adventure - The Adventure document from which content is being imported
502
+ * @param formData - Processed data from the importer form
503
+ * @param toCreate - Adventure data which needs to be created in the World
504
+ * @param toUpdate - Adventure data which needs to be updated in the World
505
+ * @returns False to prevent the core software from handling the import
506
+ * @remarks This is called by {@link Hooks.call}.
507
+ */
508
+ preImportAdventure: (
509
+ adventure: Adventure.ConfiguredInstance,
510
+ formData: object, // TODO: Improve this. Also relevant to `AdventureImporter#_updateObject`
511
+ toCreate: AdventureImportData["toCreate"],
512
+ toUpdate: AdventureImportData["toUpdate"],
513
+ ) => boolean | void;
514
+
515
+ /**
516
+ * A hook event that fires after an Adventure has been imported into the World.
517
+ * @param adventure - The Adventure document from which content is being imported
518
+ * @param formData - Processed data from the importer form
519
+ * @param toCreate - Adventure data which needs to be created in the World
520
+ * @param toUpdate - Adventure data which needs to be updated in the World
521
+ * @returns False to prevent the core software from handling the import
522
+ * @remarks This is called by {@link Hooks.callAll}.
523
+ */
524
+ importAdventure: (
525
+ adventure: Adventure.ConfiguredInstance,
526
+ formData: object, // TODO: Improve this. Also relevant to `AdventureImporter#_updateObject`
527
+ toCreate: AdventureImportData["toCreate"],
528
+ toUpdate: AdventureImportData["toUpdate"],
529
+ ) => void;
530
+
531
+ /** Socket */
532
+
533
+ /**
534
+ * A hook event that fires whenever some other User joins or leaves the game session.
535
+ * @param user - The User who connected or disconnected
536
+ * @param connected - Is the user now connected (true) or disconnected (false)
537
+ * @remarks This is called by {@link Hooks.callAll}.
538
+ */
539
+ userConnected: (user: User.ConfiguredInstance, connected: boolean) => void;
540
+
541
+ /** Combat */
542
+
543
+ /**
544
+ * A hook event which fires when the turn order of a Combat encounter is progressed.
545
+ * This event fires on all clients after the database update has occurred for the Combat.
546
+ * @param combat - The Combat encounter for which the turn order has changed
547
+ * @param prior - The prior turn state
548
+ * @param current - The new turn state
549
+ * @remarks This is called by {@link Hooks.callAll}.
550
+ */
551
+ combatTurnChange: (
552
+ combat: Combat.ConfiguredInstance,
553
+ prior: Combat.HistoryData,
554
+ current: Combat.HistoryData,
555
+ ) => void;
556
+
557
+ /**
558
+ * A hook event that fires when a Combat encounter is started.
559
+ * This event fires on the initiating client before any database update occurs.
560
+ * @param combat - The Combat encounter which is starting
561
+ * @param updateData - An object which contains Combat properties that will be updated. Can be mutated.
562
+ */
563
+ combatStart: (
564
+ combat: Combat.ConfiguredInstance,
565
+ updateData: {
566
+ /** The initial round */
567
+ round: number;
568
+ /** The initial turn */
569
+ turn: number;
570
+ },
571
+ ) => void;
572
+
573
+ /**
574
+ * A hook event that fires when the turn of the Combat encounter changes.
575
+ * This event fires on the initiating client before any database update occurs.
576
+ * @param combat - The Combat encounter which is advancing or rewinding its turn
577
+ * @param updateData - An object which contains Combat properties that will be updated. Can be mutated.
578
+ * @param updateOptions - An object which contains options provided to the update method. Can be mutated.
579
+ */
580
+ combatTurn: (
581
+ combat: Combat.ConfiguredInstance,
582
+ updateData: {
583
+ /** The current round of combat */
584
+ round: number;
585
+ /** The new turn number */
586
+ turn: number;
587
+ },
588
+ updateOptions: {
589
+ /** The amount of time in seconds that time is being advanced */
590
+ advanceTime: number;
591
+ /** A signed integer for whether the turn order is advancing or rewinding */
592
+ direction: number;
593
+ },
594
+ ) => void;
595
+
596
+ /**
597
+ * A hook event that fires when the round of the Combat encounter changes.
598
+ * @param combat - The Combat encounter which is advancing or rewinding its round
599
+ * @param updateData - An object which contains Combat properties that will be updated. Can be mutated.
600
+ * @param updateOptions - An object which contains options provided to the update method. Can be mutated.
601
+ */
602
+ combatRound: (
603
+ combat: Combat.ConfiguredInstance,
604
+ updateData: {
605
+ /** The new round of combat */
606
+ round: number;
607
+ /** The new turn number */
608
+ turn: number;
609
+ },
610
+ updateOptions: {
611
+ /** The amount of time in seconds that time is being advanced */
612
+ advanceTime: number;
613
+ /** A signed integer for whether the turn order is advancing or rewinding */
614
+ direction: number;
615
+ },
616
+ ) => void;
617
+
618
+ /** ProseMirror */
619
+
620
+ /**
621
+ * A hook even that fires when a ProseMirrorMenu's drop-downs are initialized.
622
+ * The hook provides the ProseMirrorMenu instance and an object of drop-down configuration data.
623
+ * Hooked functions may append their own drop-downs or append entries to existing drop-downs.
624
+ * @param menu - The ProseMirrorMenu instance.
625
+ * @param config - The drop-down config.
626
+ * @remarks This is called by {@link Hooks.callAll}.
627
+ */
628
+ getProseMirrorMenuDropdowns: (
629
+ menu: ProseMirrorMenu,
630
+ config: {
631
+ format: ProseMirrorDropDown.Config;
632
+ fonts: ProseMirrorDropDown.Config;
633
+ },
634
+ ) => void;
635
+
636
+ /**
637
+ * A hook even that fires when a ProseMirrorMenu's buttons are initialized.
638
+ * The hook provides the ProseMirrorMenu instance and an array of button configuration data.
639
+ * Hooked functions may append their own buttons to the list.
640
+ * @param menu - The ProseMirrorMenu instance
641
+ * @param config - The button configuration objects
642
+ * @remarks This is called by {@link Hooks.callAll}.
643
+ */
644
+ // TODO: Having trouble finding the appropriate typing for the menu items? Also, where is this even called?
645
+ getProseMirrorMenuItems: (menu: ProseMirrorMenu, config: unknown[]) => void;
646
+
647
+ /**
648
+ * A hook event that fires whenever a ProseMirror editor is created.
649
+ * The hook provides the ProseMirror instance UUID, a list of plugins, and an object containing the provisional
650
+ * editor state, and a reference to the menu plugin.
651
+ * Hooked functions may append their own plugins or replace the state or menu plugin by replacing their references
652
+ * in the final argument.
653
+ *
654
+ * @param uuid - A UUID that uniquely identifies this ProseMirror instance.
655
+ * @param plugins - A list of plugins that will be loaded.
656
+ * @param options - The provisional EditorState and ProseMirrorMenuPlugin.
657
+ * @remarks This is called by {@link Hooks.callAll}.
658
+ * @see {@link ProseMirrorEditor.create}
659
+ */
660
+ createProseMirrorEditor: (uuid: string, plugins: Record<string, Plugin>, options: { state: EditorState }) => void;
661
+
662
+ /** HotReload */
663
+
664
+ /**
665
+ * A hook event that fires when a package that is being watched by the hot reload system has a file changed.
666
+ * The hook provides the hot reload data related to the file change.
667
+ * Hooked functions may intercept the hot reload and prevent the core software from handling it by returning false.
668
+ * @param data - The hot reload data
669
+ * @remarks This is called by {@link Hooks.call}.
670
+ */
671
+ hotReload: (data: HotReloadData) => boolean | void;
672
+
673
+ /** Chat */
674
+
675
+ /**
676
+ * A hook event that fires when a user sends a message through the ChatLog.
677
+ * @param chatLog - The ChatLog instance
678
+ * @param message - The trimmed message content
679
+ * @param chatData - The basic chat data
680
+ * @remarks This is called by {@link Hooks.call}.
681
+ * @remarks An explicit return value of `false` prevents the chat message from being created.
682
+ * @see {@link ChatLog#processMessage}
683
+ */
684
+ chatMessage: (
685
+ chatLog: ChatLog,
686
+ message: string,
687
+ chatData: {
688
+ /** The id of the User sending the message */
689
+ user: string;
690
+
691
+ /** The identified speaker data, see {@link ChatMessage.getSpeaker} */
692
+ speaker: ReturnType<Document.ToConfiguredClass<typeof ChatMessage>["getSpeaker"]>;
693
+ },
694
+ ) => boolean | void;
695
+
696
+ /**
697
+ * A hook event that fires for each ChatMessage which is rendered for addition to the ChatLog.
698
+ * This hook allows for final customization of the message HTML before it is added to the log.
699
+ * @param message - The ChatMessage document being rendered
700
+ * @param html - The pending HTML as a jQuery object
701
+ * @param messageData - The input data provided for template rendering
702
+ * @remarks This is called by {@link Hooks.call}.
703
+ * @see {@link ChatMessage#render}
704
+ */
705
+ renderChatMessage: (
706
+ message: ChatMessage,
707
+ html: JQuery,
708
+ messageData: {
709
+ message: Document.ToObjectFalseType<ChatMessage.ConfiguredInstance>;
710
+ user: Game["user"];
711
+ author: ChatMessage.ConfiguredInstance["user"];
712
+ alias: ChatMessage.ConfiguredInstance["alias"];
713
+ cssClass: string;
714
+ isWhisper: boolean;
715
+ canDelete: boolean;
716
+ whisperTo: string;
717
+ borderColor?: string;
718
+ },
719
+ ) => boolean | void;
720
+
721
+ /** Audio-Video */
722
+
723
+ // Individually implemented all three options for globalVolumeChanged
724
+
725
+ /**
726
+ * A hook event that fires when the user modifies a global volume slider.
727
+ * @param volume - The new volume level
728
+ * @remarks This is called by {@link Hooks.callAll}.
729
+ * @see {@link AudioHelper#_onChangeGlobalVolume}
730
+ */
731
+ globalAmbientVolumeChanged: (volume: number) => void;
732
+ /**
733
+ * A hook event that fires when the user modifies a global volume slider.
734
+ * @param volume - The new volume level
735
+ * @remarks This is called by {@link Hooks.callAll}.
736
+ * @see {@link AudioHelper#_onChangeGlobalVolume}
737
+ */
738
+ globalInterfaceVolumeChanged: (volume: number) => void;
739
+ /**
740
+ * A hook event that fires when the user modifies a global volume slider.
741
+ * @param volume - The new volume level
742
+ * @remarks This is called by {@link Hooks.callAll}.
743
+ * @see {@link AudioHelper#_onChangeGlobalVolume}
744
+ */
745
+ globalPlaylistVolumeChanged: (volume: number) => void;
746
+
747
+ /**
748
+ * A hook event that fires when the AV settings are changed.
749
+ * @param settings - The AVSettings manager
750
+ * @param changed - The delta of the settings that have been changed
751
+ * @remarks This is called by {@link Hooks.callAll}.
752
+ * @see {@link AVSettings#_onSettingsChanged}
753
+ */
754
+ rtcSettingsChanged: (settings: AVSettings, changed: DeepPartial<AVSettings.Settings>) => void;
755
+
756
+ /** RollTableConfig */
757
+
758
+ /**
759
+ * A hook event that fires when some useful data is dropped onto a RollTableConfig.
760
+ * @param table - The RollTable
761
+ * @param config - The RollTableConfig application
762
+ * @param data - The data dropped onto the RollTableConfig
763
+ * @remarks This is called by {@link Hooks.call}.
764
+ * @remarks An explicit return value of `false` prevents the Document being created.
765
+ * @see {@link RollTableConfig#_onDrop}
766
+ */
767
+ dropRollTableSheetData: (
768
+ table: RollTable.ConfiguredInstance,
769
+ config: RollTableConfig,
770
+ data: object,
771
+ ) => boolean | void;
772
+
773
+ /**
774
+ * A hook event that allows to pass custom dynamic ring configurations.
775
+ * @param ringConfig - The ring configuration instance
776
+ * @remarks This is called by {@link Hooks.callAll}.
777
+ */
778
+ initializeDynamicTokenRingConfig: (ringConfig: foundry.canvas.tokens.TokenRingConfig) => void;
779
+
780
+ /** Specific implementations of GetEntryContext */
781
+
782
+ /**
783
+ * A hook event that fires when the context menu for a SceneNavigation entry is constructed.
784
+ * @param html - The HTML element to which the context options are attached
785
+ * @param entryOptions - The context menu entries
786
+ * @remarks This is called by {@link Hooks.call}.
787
+ * @see {@link SceneNavigation#activateListeners}
788
+ */
789
+ getSceneNavigationContext: (html: JQuery, entryOptions: ContextMenuEntry[]) => boolean | void;
790
+
791
+ /**
792
+ * A hook event that fires when the context menu for a PlayersList entry is constructed.
793
+ * @param html - The HTML element to which the context options are attached
794
+ * @param entryOptions - The context menu entries
795
+ * @remarks This is called by {@link Hooks.call}.
796
+ * @see {@link PlayerList#activateListeners}
797
+ */
798
+ getUserContextOptions: (html: JQuery, entryOptions: ContextMenuEntry[]) => boolean | void;
799
+ }
800
+
801
+ /** Application */
802
+
803
+ /**
804
+ * A hook event that fires whenever this Application is rendered.
805
+ * The hook provides the pending application HTML which will be added to the DOM.
806
+ * Hooked functions may modify that HTML or attach interactive listeners to it.
807
+ *
808
+ * @param app - The Application instance being rendered
809
+ * @param html - The inner HTML of the document that will be displayed and may be modified
810
+ * @param data - The object of data used when rendering the application
811
+ * @typeParam A - the type of the Application
812
+ * @remarks The name for this hook is dynamically created by joining "render" with the type name of the Application.
813
+ * @remarks This is called by {@link Hooks.callAll}.
814
+ * @see {@link Application#_render}
815
+ */
816
+ type RenderApplication<A extends Application = Application> = (
817
+ app: A,
818
+ html: JQuery,
819
+ data: ReturnType<A["getData"]> extends Promise<infer T> ? T : ReturnType<A["getData"]>,
820
+ ) => boolean | void;
821
+
822
+ /**
823
+ * A hook event that fires whenever this Application is first rendered to add buttons to its header.
824
+ * @param app - The Application instance being rendered
825
+ * @param buttons - The array of header buttons which will be displayed
826
+ * @typeParam A - the type of the Application
827
+ * @remarks The name for this hook is dynamically created by joining "get" with the type name of the Application and
828
+ * "HeaderButtons".
829
+ * @remarks This is called by {@link Hooks.call}.
830
+ * @see {@link Application#_getHeaderButtons}
831
+ */
832
+ type GetApplicationHeaderButtons<A extends Application = Application> = (
833
+ app: A,
834
+ buttons: Application.HeaderButton[],
835
+ ) => boolean | void;
836
+
837
+ /**
838
+ * A hook event that fires whenever this Application is closed.
839
+ * @param app - The Application instance being closed
840
+ * @param html - The application HTML when it is closed
841
+ * @typeParam A - the type of the Application
842
+ * @remarks The name for this hook is dynamically created by joining "close" with the type name of the Application.
843
+ * @remarks This is called by {@link Hooks.call}.
844
+ * @see {@link Application#close}
845
+ */
846
+ type CloseApplication<A extends Application = Application> = (app: A, html: JQuery) => boolean | void;
847
+
848
+ /** EffectsCanvasGroup */
849
+
850
+ /**
851
+ * A hook event that fires when a {@link CanvasGroup} is drawn.
852
+ * The dispatched event name replaces "Group" with the named CanvasGroup subclass, i.e. "drawPrimaryCanvasGroup".
853
+ * @param group - The group being drawn
854
+ */
855
+ type DrawGroup<
856
+ G extends ReturnType<typeof CanvasGroupMixin> = ReturnType<typeof CanvasGroupMixin<CanvasGroupMixin.BaseClass>>,
857
+ > = (group: G) => void;
858
+
859
+ /**
860
+ * A hook event that fires when a {@link CanvasGroup} is deconstructed.
861
+ * The dispatched event name replaces "Group" with the named CanvasGroup subclass, i.e. "tearDownPrimaryCanvasGroup".
862
+ * @param group - The group being deconstructed
863
+ */
864
+ type TearDownGroup<
865
+ G extends ReturnType<typeof CanvasGroupMixin> = ReturnType<typeof CanvasGroupMixin<CanvasGroupMixin.BaseClass>>,
866
+ > = (group: G) => void;
867
+
868
+ /** CanvasLayer */
869
+
870
+ /**
871
+ * A hook event that fires when a {@link CanvasLayer} is initially drawn.
872
+ * The dispatched event name replaces "Layer" with the named CanvasLayer subclass, i.e. "drawTokensLayer".
873
+ * @param layer - The layer being drawn
874
+ * @typeParam L - the type of the CanvasLayer
875
+ */
876
+ type DrawLayer<L extends CanvasLayer = CanvasLayer> = (layer: L) => void;
877
+
878
+ /**
879
+ * A hook event that fires when a {@link CanvasLayer} is deconstructed.
880
+ * The dispatched event name replaces "Layer" with the named CanvasLayer subclass, i.e. "tearDownTokensLayer".
881
+ * @param layer - The layer being deconstructed
882
+ * @typeParam L - the type of the CanvasLayer
883
+ */
884
+ type TearDownLayer<L extends CanvasLayer = CanvasLayer> = (layer: L) => void;
885
+
886
+ /**
887
+ * A hook event that fires when any PlaceableObject is pasted onto the
888
+ * Scene. Substitute the PlaceableObject name in the hook event to target a
889
+ * specific PlaceableObject type, for example "pasteToken".
890
+ * @param copied - The PlaceableObjects that were copied
891
+ * @param createData - The new objects that will be added to the Scene
892
+ * @typeParam P - the type of the PlaceableObject
893
+ * @remarks The name for this hook is dynamically created by joining "paste" with the type name of the
894
+ * PlaceableObject.
895
+ * @remarks This is called by {@link Hooks.call}.
896
+ * @see {@link PlaceablesLayer#pasteObjects}
897
+ */
898
+ type PastePlaceableObject<P extends PlaceableObject = PlaceableObject> = (
899
+ copied: P[],
900
+ createData: Array<P["document"]["_source"]>,
901
+ ) => boolean | void;
902
+ /** */
903
+
904
+ /** PlaceableObject */
905
+
906
+ /**
907
+ * A hook event that fires when a {@link PlaceableObject} is initially drawn.
908
+ * The dispatched event name replaces "Object" with the named PlaceableObject subclass, i.e. "drawToken".
909
+ * @param object - The object instance being drawn
910
+ * @typeParam P - the type of the PlaceableObject
911
+ * @remarks This is called by {@link Hooks.callAll}
912
+ */
913
+ type DrawObject<P extends PlaceableObject = PlaceableObject> = (object: P) => void;
914
+
915
+ /**
916
+ * A hook event that fires when a {@link PlaceableObject} is incrementally refreshed.
917
+ * The dispatched event name replaces "Object" with the named PlaceableObject subclass, i.e. "refreshToken".
918
+ * @param object - The object instance being refreshed
919
+ * @typeParam P - the type of the PlaceableObject
920
+ * @remarks This is called by {@link Hooks.callAll}
921
+ */
922
+ type RefreshObject<P extends PlaceableObject = PlaceableObject> = (object: P) => void;
923
+
924
+ /**
925
+ * A hook event that fires when a {@link PlaceableObject} is destroyed.
926
+ * The dispatched event name replaces "Object" with the named PlaceableObject subclass, i.e. "destroyToken".
927
+ * @param object - The object instance being destroyed
928
+ * @typeParam P - the type of the PlaceableObject
929
+ * @remarks This is called by {@link Hooks.callAll}
930
+ */
931
+ type DestroyObject<P extends PlaceableObject = PlaceableObject> = (object: P) => void;
932
+
933
+ /**
934
+ * A hook event that fires when any PlaceableObject is selected or
935
+ * deselected. Substitute the PlaceableObject name in the hook event to
936
+ * target a specific PlaceableObject type, for example "controlToken".
937
+ * @param object - The PlaceableObject
938
+ * @param controlled - Whether the PlaceableObject is selected or not
939
+ * @typeParam P - the type of the PlaceableObject
940
+ * @remarks The name for this hook is dynamically created by joining "control" and the type name of the
941
+ * PlaceableObject.
942
+ * @remarks This is called by {@link Hooks.callAll}.
943
+ * @see {@link PlaceableObject#control}
944
+ * @see {@link PlaceableObject#release}
945
+ */
946
+ type ControlObject<P extends PlaceableObject = PlaceableObject> = (object: P, controlled: boolean) => void;
947
+
948
+ /**
949
+ * A hook event that fires when any PlaceableObject is hovered over or out.
950
+ * Substitute the PlaceableObject name in the hook event to target a specific
951
+ * PlaceableObject type, for example "hoverToken".
952
+ * @param object - The PlaceableObject
953
+ * @param hover - Whether the PlaceableObject is hovered over or not
954
+ * @typeParam P - the type of the PlaceableObject
955
+ * @remarks The name for this hook is dynamically created by joining "hover" and the type name of the PlaceableObject.
956
+ * @remarks This is called by {@link Hooks.callAll}.
957
+ * @see {@link PlaceableObject#_onHoverIn}
958
+ * @see {@link PlaceableObject#_onHoverOut}
959
+ */
960
+ type HoverObject<P extends PlaceableObject = PlaceableObject> = (object: P, hover: boolean) => void;
961
+
962
+ /** Document */
963
+
964
+ /**
965
+ * A hook event that fires for every Document type before execution of a creation workflow. Substitute the
966
+ * Document name in the hook event to target a specific Document type, for example "preCreateActor". This hook
967
+ * only fires for the client who is initiating the creation request.
968
+ *
969
+ * The hook provides the pending document instance which will be used for the Document creation. Hooked functions
970
+ * may modify that data or prevent the workflow entirely by explicitly returning false.
971
+ *
972
+ * @param document - The pending document which is requested for creation
973
+ * @param data - The initial data object provided to the document creation request
974
+ * @param options - Additional options which modify the creation request
975
+ * @param userId - The ID of the requesting user, always game.user.id
976
+ * @typeParam D - the type of the Document constructor
977
+ * @returns Explicitly return false to prevent creation of this Document
978
+ * @remarks The name for this hook is dynamically created by joining "preCreate" with the name of the Document.
979
+ * @remarks This is called by {@link Hooks.call}.
980
+ * @see {@link ClientDatabaseBackend#_preCreateDocumentArray}
981
+ * @see {@link TokenDocument#_preUpdateTokenActor}
982
+ */
983
+ type PreCreateDocument<D extends Document.AnyConstructor = Document.AnyConstructor> = (
984
+ document: Document.ToConfiguredInstance<D>,
985
+ data: ConstructorParameters<D>[0],
986
+ options: Document.PreCreateOptions<InstanceType<D>["documentName"]>,
987
+ userId: string,
988
+ ) => boolean | void;
989
+
990
+ /**
991
+ * A hook event that fires for every Document type before execution of an update workflow. Substitute the Document
992
+ * name in the hook event to target a specific Document type, for example "preUpdateActor". This hook only fires
993
+ * for the client who is initiating the update request.
994
+ *
995
+ * The hook provides the differential data which will be used to update the Document. Hooked functions may modify
996
+ * that data or prevent the workflow entirely by explicitly returning false.
997
+ *
998
+ * @param document - The Document instance being updated
999
+ * @param changed - Differential data that will be used to update the document
1000
+ * @param options - Additional options which modify the update request
1001
+ * @param userId - The ID of the requesting user, always game.user.id
1002
+ * @typeParam D - the type of the Document constructor
1003
+ * @returns Explicitly return false to prevent update of this Document
1004
+ * @remarks The name for this hook is dynamically created by joining "preUpdate" with the type name of the Document.
1005
+ * @remarks This is called {@link Hooks.call}.
1006
+ * @see {@link ClientDatabaseBackend#_preUpdateDocumentArray}
1007
+ * @see {@link TokenDocument#_preUpdateTokenActor}
1008
+ */
1009
+ type PreUpdateDocument<D extends Document.AnyConstructor = Document.AnyConstructor> = (
1010
+ document: Document.ToConfiguredInstance<D>,
1011
+ changed: DeepPartial<ConstructorParameters<D>[0]>,
1012
+ options: Document.PreUpdateOptions<InstanceType<D>["documentName"]>,
1013
+ userId: string,
1014
+ ) => boolean | void;
1015
+
1016
+ /**
1017
+ * A hook event that fires for every Document type before execution of a deletion workflow. Substitute the
1018
+ * Document name in the hook event to target a specific Document type, for example "preDeleteActor". This hook
1019
+ * only fires for the client who is initiating the update request.
1020
+ *
1021
+ * The hook provides the Document instance which is requested for deletion. Hooked functions may prevent the
1022
+ * workflow entirely by explicitly returning false.
1023
+ *
1024
+ * @param document - The Document instance being deleted
1025
+ * @param options - Additional options which modify the deletion request
1026
+ * @param userId - The ID of the requesting user, always game.user.id
1027
+ * @typeParam D - the type of the Document constructor
1028
+ * @returns Explicitly return false to prevent deletion of this Document
1029
+ * @remarks The name for this hook is dynamically created by joining "preDelete" with the type name of the Document.
1030
+ * @remarks This is called by {@link Hooks.call}.
1031
+ * @see {@link ClientDatabaseBackend#_preDeleteDocumentArray}.
1032
+ * @see {@link TokenDocument#_preUpdateTokenActor}
1033
+ */
1034
+ type PreDeleteDocument<D extends Document.AnyConstructor = Document.AnyConstructor> = (
1035
+ document: Document.ToConfiguredInstance<D>,
1036
+ options: Document.PreDeleteOptions<InstanceType<D>["documentName"]>,
1037
+ userId: string,
1038
+ ) => boolean | void;
1039
+
1040
+ /**
1041
+ * A hook event that fires for every embedded Document type after conclusion of a creation workflow.
1042
+ * Substitute the Document name in the hook event to target a specific type, for example "createToken".
1043
+ * This hook fires for all connected clients after the creation has been processed.
1044
+ *
1045
+ * @param document - The new Document instance which has been created
1046
+ * @param options - Additional options which modified the creation request
1047
+ * @param userId - The ID of the User who triggered the creation workflow
1048
+ * @typeParam D - the type of the Document constructor
1049
+ * @remarks The name for this hook is dynamically created by joining "create" and the type name of the Document.
1050
+ * @remarks This is called by {@link Hooks.callAll}.
1051
+ * @see {@link ClientDatabaseBackend#_postCreateDocumentCallbacks}
1052
+ * @see {@link TokenDocument#_onUpdateTokenActor}
1053
+ */
1054
+ type CreateDocument<D extends Document.AnyConstructor = Document.AnyConstructor> = (
1055
+ document: Document.ToConfiguredInstance<D>,
1056
+ options: Document.OnCreateOptions<InstanceType<D>["documentName"]>,
1057
+ userId: string,
1058
+ ) => void;
1059
+
1060
+ /**
1061
+ * A hook event that fires for every Document type after conclusion of an update workflow.
1062
+ * Substitute the Document name in the hook event to target a specific Document type, for example "updateActor".
1063
+ * This hook fires for all connected clients after the update has been processed.
1064
+ *
1065
+ * @param document - The existing Document which was updated
1066
+ * @param change - Differential data that was used used to update the document
1067
+ * @param options - Additional options which modified the update request
1068
+ * @param userId - The ID of the User who triggered the update workflow
1069
+ * @typeParam D - the type of the Document constructor
1070
+ * @remarks The name for this hook is dynamically created by joining "update" with the type name of the Document.
1071
+ * @remarks This is called by {@link Hooks.callAll}.
1072
+ * @see {@link ClientDatabaseBackend#_postUpdateDocumentCallbacks}
1073
+ * @see {@link TokenDocument#_onUpdateTokenActor}
1074
+ */
1075
+ type UpdateDocument<D extends Document.AnyConstructor = Document.AnyConstructor> = (
1076
+ document: Document.ToConfiguredInstance<D>,
1077
+ change: DeepPartial<ConstructorParameters<D>[0]>,
1078
+ options: Document.OnUpdateOptions<InstanceType<D>["documentName"]>,
1079
+ userId: string,
1080
+ ) => void;
1081
+
1082
+ /**
1083
+ * A hook event that fires for every Document type after conclusion of an deletion workflow.
1084
+ * Substitute the Document name in the hook event to target a specific Document type, for example "deleteActor".
1085
+ * This hook fires for all connected clients after the deletion has been processed.
1086
+ *
1087
+ * @param document - The existing Document which was deleted
1088
+ * @param options - Additional options which modified the deletion request
1089
+ * @param userId - The ID of the User who triggered the deletion workflow
1090
+ * @typeParam D - the type of the Document constructor
1091
+ * @remarks The name for this hook is dynamically created by joining "delete" with the type name of the Document.
1092
+ * @remarks This is called by {@link Hooks.callAll}.
1093
+ * @see {@link ClientDatabaseBackend#_postDeleteDocumentCallbacks}
1094
+ * @see {@link TokenDocument#_onUpdateTokenActor}
1095
+ */
1096
+ type DeleteDocument<D extends Document.AnyConstructor = Document.AnyConstructor> = (
1097
+ document: Document.ToConfiguredInstance<D>,
1098
+ options: Document.OnDeleteOptions<InstanceType<D>["documentName"]>,
1099
+ userId: string,
1100
+ ) => void;
1101
+
1102
+ /** PointSource */
1103
+
1104
+ /**
1105
+ * A hook event that fires after RenderedPointSource shaders have initialized.
1106
+ * @param source - The RenderedEffectSource instance being initialized
1107
+ * @typeParam RPS - the type of the RenderedPointSource
1108
+ * @remarks The name for this hook is dynamically created by wrapping the type name of the shader in `initialize` and `Shaders`.
1109
+ * @remarks This is called by {@link Hooks.callAll}.
1110
+ */
1111
+ type InitializeRenderedEffectSourceShaders<RPS extends RenderedEffectSource.Any = RenderedEffectSource.Any> = (
1112
+ source: RPS,
1113
+ ) => void;
1114
+
1115
+ /** InteractionLayer */
1116
+
1117
+ /**
1118
+ * A hook event that fires with a {@link InteractionLayer} becomes active.
1119
+ * The dispatched event name replaces "Layer" with the named InteractionLayer subclass, i.e. "activateTokensLayer".
1120
+ * @param layer - The layer becoming active
1121
+ * @remarks This is called by {@link Hooks.callAll}.
1122
+ */
1123
+ type ActivateLayer<L extends InteractionLayer = InteractionLayer> = (layer: L) => void;
1124
+
1125
+ /**
1126
+ * A hook event that fires with a {@link InteractionLayer} becomes inactive.
1127
+ * The dispatched event name replaces "Layer" with the named InteractionLayer subclass, i.e. "deactivateTokensLayer".
1128
+ * @param layer - The layer becoming inactive
1129
+ * @remarks This is called by {@link Hooks.callAll}.
1130
+ */
1131
+ type DeactivateLayer<L extends InteractionLayer = InteractionLayer> = (layer: L) => void;
1132
+
1133
+ /**
1134
+ * A hook event that fires when the context menu for entries in an Application is constructed. Substitute the
1135
+ * Application name in the hook event to target a specific Application, for example
1136
+ * "getActorDirectoryEntryContext".
1137
+ * @param html - The HTML element to which the context options are attached
1138
+ * @param entryOptions - The context menu entries
1139
+ * @remarks This is called by {@link Hooks.call}.
1140
+ * @see {@link ContextMenu.create}
1141
+ */
1142
+ type GetEntryContext = (html: JQuery, entryOptions: ContextMenuEntry[]) => boolean | void;
1143
+
1144
+ /**
1145
+ * A hook event that fires when the context menu for a Sound in the PlaylistDirectory is constructed.
1146
+ * @param html - The HTML element to which the context options are attached
1147
+ * @param entryOptions - The context menu entries
1148
+ * @remarks The name for this hook is dynamically created by joining "get" with the type name of the PlaylistDirectory
1149
+ * and "SoundContext".
1150
+ * @remarks This is called by {@link Hooks.call}.
1151
+ * @see {@link PlaylistDirectory#_contextMenu}
1152
+ */
1153
+ type GetPlaylistDirectorySoundContext = (html: JQuery, entryOptions: ContextMenuEntry[]) => boolean | void;
1154
+
1155
+ /**
1156
+ * A hook event that fires when the context menu for folders in a SidebarTab
1157
+ * is constructed. Substitute the SidebarTab name in the hook event to target
1158
+ * a specific SidebarTab, for example "getActorDirectoryFolderContext".
1159
+ * @param html - The HTML element to which the context options are attached
1160
+ * @param entryOptions - The context menu entries
1161
+ * @remarks The name for this hook is dynamically created by joining "get" with the type name of the SidebarDirectory
1162
+ * and "FolderContext".
1163
+ * @remarks This is called by {@link Hooks.call}.
1164
+ * @see {@link SidebarDirectory#_contextMenu}
1165
+ */
1166
+ type GetSidebarDirectoryFolderContext = (html: JQuery, entryOptions: ContextMenuEntry[]) => boolean | void;
1167
+
1168
+ type DynamicCallbacks =
1169
+ | RenderApplication
1170
+ | GetApplicationHeaderButtons
1171
+ | CloseApplication
1172
+ | DrawGroup
1173
+ | TearDownGroup
1174
+ | DrawLayer
1175
+ | TearDownLayer
1176
+ | PastePlaceableObject
1177
+ | DrawObject
1178
+ | ControlObject
1179
+ | DestroyObject
1180
+ | HoverObject
1181
+ | PreCreateDocument
1182
+ | PreUpdateDocument
1183
+ | PreDeleteDocument
1184
+ | CreateDocument
1185
+ | UpdateDocument
1186
+ | DeleteDocument
1187
+ | InitializeRenderedEffectSourceShaders
1188
+ | ActivateLayer
1189
+ | DeactivateLayer
1190
+ | GetEntryContext
1191
+ | GetPlaylistDirectorySoundContext
1192
+ | GetSidebarDirectoryFolderContext
1193
+ | HoverObject;
1194
+
1195
+ interface ErrorCallbackParameters {
1196
+ "Canvas#draw": [location: "Canvas#draw", err: Error, data: { layer: CanvasLayer }];
1197
+ "Application#render": [location: "Application#render", err: Error, data: Application.RenderOptions];
1198
+ "Localization#_loadTranslationFile": [
1199
+ location: "Localization#_loadTranslationFile",
1200
+ err: Error,
1201
+ data: { src: string },
1202
+ ];
1203
+ "ClientDatabaseBackend#_preCreateDocumentArray": [
1204
+ location: "ClientDatabaseBackend#_preCreateDocumentArray",
1205
+ err: Error,
1206
+ data: { id: string },
1207
+ ];
1208
+ "ClientDatabaseBackend#_preUpdateDocumentArray": [
1209
+ location: "ClientDatabaseBackend#_preUpdateDocumentArray",
1210
+ err: Error,
1211
+ data: { id: string },
1212
+ ];
1213
+ "WorldCollection#_initialize": [location: "WorldCollection#_initialize", err: Error, data: { id: string }];
1214
+ "ClientDocumentMixin#_initialize": [
1215
+ location: "ClientDocumentMixin#_initialize",
1216
+ err: Error,
1217
+ data: { id: string },
1218
+ ];
1219
+ "Actor#getTokenImages": [location: "Actor#getTokenImages", err: Error, data: EmptyObject];
1220
+ "Macro#executeChat": [location: "Macro#executeChat", err: Error, data: { command: string }];
1221
+ "ChatMessage#roll": [location: "ChatMessage#roll", err: Error, data: { command: string }];
1222
+ "DefaultTokenConfig#_updateObject": [location: "DefaultTokenConfig#_updateObject", err: Error, data: EmptyObject];
1223
+ "SceneConfig#_updateObject": [location: "SceneConfig#_updateObject", err: Error, data: { scene: string }];
1224
+ "SidebarDirectory.setupFolders": [location: "SidebarDirectory.setupFolders", err: Error, data: EmptyObject];
1225
+ "Sidebar#_render": [location: "Sidebar#_render", err: Error, data: { name: string }];
1226
+ "Game#initializeCanvas": [location: "Game#initializeCanvas", err: Error, data: EmptyObject];
1227
+ "EmbeddedCollection#_initialize": [
1228
+ location: "EmbeddedCollection#_initialize",
1229
+ err: Error,
1230
+ data: { id: string; documentName: string },
1231
+ ];
1232
+ }
1233
+ }
1234
+ }