@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,3164 @@
1
+ import type { GetKey } from "../../types/helperTypes.d.mts";
2
+ import type * as CONST from "../common/constants.d.mts";
3
+ import type { DataModel, Document } from "../common/abstract/module.d.mts";
4
+ import type PointLightSource from "../client-esm/canvas/sources/point-light-source.d.mts";
5
+ import type { AnyObject, HandleEmptyObject, MaybePromise } from "../../types/utils.d.mts";
6
+
7
+ declare global {
8
+ namespace CONFIG {
9
+ namespace Dice {
10
+ interface FulfillmentConfiguration {
11
+ /** The die denominations available for configuration. */
12
+ dice: Record<string, FulfillmentDenomination>;
13
+
14
+ /** The methods available for fulfillment. */
15
+ methods: Record<string, FulfillmentMethod>;
16
+
17
+ /**
18
+ * Designate one of the methods to be used by default
19
+ * for dice fulfillment, if the user hasn't specified
20
+ * otherwise. Leave this blank to use the configured
21
+ * randomUniform to generate die rolls.
22
+ * @defaultValue `""`
23
+ */
24
+ defaultMethod: string;
25
+ }
26
+
27
+ interface FulfillmentDenomination {
28
+ /** The human-readable label for the die. */
29
+ label: string;
30
+
31
+ /** An icon to display on the configuration sheet. */
32
+ icon: string;
33
+ }
34
+
35
+ interface FulfillmentMethod {
36
+ /** The human-readable label for the fulfillment method. */
37
+ label: string;
38
+
39
+ /** An icon to represent the fulfillment method. */
40
+ icon?: string | undefined | null;
41
+
42
+ /** Whether this method requires input from the user or if it is fulfilled entirely programmatically. */
43
+ interactive?: boolean | undefined | null;
44
+
45
+ /** A function to invoke to programmatically fulfil a given term for non-interactive fulfillment methods. */
46
+ handler?: FulfillmentHandler | undefined | null;
47
+
48
+ /**
49
+ * A custom RollResolver implementation. If the only interactive methods
50
+ * the user has configured are this method and manual, this resolver
51
+ * will be used to resolve interactive rolls, instead of the default
52
+ * resolver. This resolver must therefore be capable of handling manual
53
+ * rolls.
54
+ */
55
+ resolver: typeof foundry.applications.dice.RollResolver;
56
+ }
57
+
58
+ /**
59
+ * Only used for non-interactive fulfillment methods. If a die configured to use this fulfillment method is rolled,
60
+ * this handler is called and awaited in order to produce the die roll result.
61
+ * @returns The fulfilled value, or undefined if it could not be fulfilled.
62
+ */
63
+ type FulfillmentHandler = (
64
+ /** The term being fulfilled. */
65
+ term: foundry.dice.terms.DiceTerm,
66
+ /** Additional options to configure fulfillment. */
67
+ options?: AnyObject,
68
+ ) => Promise<number | void>;
69
+
70
+ type RollFunction = (arg0: never, ...args: never[]) => MaybePromise<number>;
71
+ }
72
+
73
+ interface Dice {
74
+ /**
75
+ * The Dice types which are supported.
76
+ * @defaultValue `[foundry.dice.terms.Die, foundry.dice.terms.FateDie]`
77
+ */
78
+ types: Array<typeof foundry.dice.terms.DiceTerm>;
79
+
80
+ rollModes: CONFIG.Dice.RollModes;
81
+
82
+ /**
83
+ * Configured Roll class definitions
84
+ * @defaultValue `[Roll]`
85
+ */
86
+ rolls: Array<typeof foundry.dice.Roll>;
87
+
88
+ /**
89
+ * Configured DiceTerm class definitions
90
+ * @defaultValue
91
+ * ```typescript
92
+ * {
93
+ * DiceTerm: typeof foundry.dice.terms.DiceTerm,
94
+ * MathTerm: typeof foundry.dice.terms.MathTerm,
95
+ * NumericTerm: typeof foundry.dice.terms.NumericTerm,
96
+ * OperatorTerm: typeof foundry.dice.terms.OperatorTerm,
97
+ * ParentheticalTerm: typeof foundry.dice.terms.ParentheticalTerm,
98
+ * PoolTerm: typeof foundry.dice.terms.PoolTerm,
99
+ * StringTerm: typeof foundry.dice.terms.StringTerm
100
+ * }
101
+ * ```
102
+ */
103
+ termTypes: Record<string, typeof foundry.dice.terms.RollTerm>;
104
+
105
+ /** Configured roll terms and the classes they map to. */
106
+ terms: {
107
+ c: typeof foundry.dice.terms.Coin;
108
+ d: typeof foundry.dice.terms.Die;
109
+ f: typeof foundry.dice.terms.FateDie;
110
+ } & Record<string, typeof foundry.dice.terms.DiceTerm>;
111
+
112
+ /**
113
+ * A function used to provide random uniform values.
114
+ * @defaultValue `foundry.dice.MersenneTwister.random`
115
+ */
116
+ randomUniform: () => number;
117
+
118
+ /** A parser implementation for parsing Roll expressions. */
119
+ parser: typeof foundry.dice.RollParser;
120
+
121
+ /** A collection of custom functions that can be included in roll expressions.*/
122
+ functions: Record<string, CONFIG.Dice.RollFunction>;
123
+
124
+ /**
125
+ * Dice roll fulfillment configuration
126
+ */
127
+ fulfillment: CONFIG.Dice.FulfillmentConfiguration;
128
+ }
129
+
130
+ /**
131
+ * Configured status effects which are recognized by the game system
132
+ */
133
+ type StatusEffect = foundry.documents.BaseActiveEffect.ConstructorData & {
134
+ /**
135
+ * A string identifier for the effect
136
+ */
137
+ id: string;
138
+
139
+ /**
140
+ * Alias for ActiveEffectData#name
141
+ * @deprecated since v11, will be removed in v13
142
+ */
143
+ label?: string | undefined | null;
144
+
145
+ /**
146
+ * Alias for ActiveEffectData#img
147
+ * @deprecated since v12, will be removed in v14
148
+ */
149
+ icon?: string | undefined | null;
150
+
151
+ /**
152
+ * Should this effect be selectable in the Token HUD?
153
+ * This effect is only selectable in the Token HUD if the Token's Actor sub-type is one of the configured ones.
154
+ * @defaultValue `true`
155
+ */
156
+ hud?: boolean | { actorTypes: string[] } | undefined | null;
157
+ };
158
+ }
159
+
160
+ /**
161
+ * Runtime configuration settings for Foundry VTT which exposes a large number of variables which determine how
162
+ * aspects of the software behaves.
163
+ *
164
+ * Unlike the CONST analog which is frozen and immutable, the CONFIG object may be updated during the course of a
165
+ * session or modified by system and module developers to adjust how the application behaves.
166
+ */
167
+ interface CONFIG {
168
+ /**
169
+ * Configure debugging flags to display additional information
170
+ */
171
+ debug: {
172
+ /** @defaultValue `false` */
173
+ applications: boolean;
174
+
175
+ /** @defaultValue `false` */
176
+ audio: boolean;
177
+
178
+ /** @defaultValue `false` */
179
+ dice: boolean;
180
+
181
+ /** @defaultValue `false` */
182
+ documents: boolean;
183
+
184
+ fog: {
185
+ /** @defaultValue `false` */
186
+ extractor: boolean;
187
+
188
+ /** @defaultValue `false` */
189
+ manager: boolean;
190
+ };
191
+
192
+ /** @defaultValue `false` */
193
+ hooks: boolean;
194
+
195
+ /** @defaultValue `false` */
196
+ av: boolean;
197
+
198
+ /** @defaultValue `false` */
199
+ avclient: boolean;
200
+
201
+ /** @defaultValue `false` */
202
+ mouseInteraction: boolean;
203
+
204
+ /** @defaultValue `false` */
205
+ time: boolean;
206
+
207
+ /** @defaultValue `false` */
208
+ keybindings: boolean;
209
+
210
+ /** @defaultValue `false` */
211
+ polygons: boolean;
212
+
213
+ /** @defaultValue `false` */
214
+ gamepad: boolean;
215
+
216
+ canvas: {
217
+ primary: {
218
+ /** @defaultValue `false` */
219
+ bounds: boolean;
220
+ };
221
+ };
222
+
223
+ /** @defaultValue `false` */
224
+ rollParsing: boolean;
225
+ };
226
+
227
+ /**
228
+ * Configure the verbosity of compatibility warnings generated throughout the software.
229
+ * The compatibility mode defines the logging level of any displayed warnings.
230
+ * The includePatterns and excludePatterns arrays provide a set of regular expressions which can either only
231
+ * include or specifically exclude certain file paths or warning messages.
232
+ * Exclusion rules take precedence over inclusion rules.
233
+ *
234
+ * @see {@link CONST.COMPATIBILITY_MODES}
235
+ *
236
+ * @example Include Specific Errors
237
+ * ```js
238
+ * const includeRgx = new RegExp("/systems/dnd5e/module/documents/active-effect.mjs");
239
+ * CONFIG.compatibility.includePatterns.push(includeRgx);
240
+ * ```
241
+ *
242
+ * @example Exclude Specific Errors
243
+ * ```js
244
+ * const excludeRgx = new RegExp("/systems/dnd5e/");
245
+ * CONFIG.compatibility.excludePatterns.push(excludeRgx);
246
+ * ```
247
+ *
248
+ * @example Both Include and Exclude
249
+ * ```js
250
+ * const includeRgx = new RegExp("/systems/dnd5e/module/actor/");
251
+ * const excludeRgx = new RegExp("/systems/dnd5e/module/actor/sheets/base.js");
252
+ * CONFIG.compatibility.includePatterns.push(includeRgx);
253
+ * CONFIG.compatibility.excludePatterns.push(excludeRgx);
254
+ * ```
255
+ *
256
+ * @example Targeting more than filenames
257
+ * ```js
258
+ * const includeRgx = new RegExp("applyActiveEffects");
259
+ * CONFIG.compatibility.includePatterns.push(includeRgx);
260
+ * ```
261
+ */
262
+ compatibility: {
263
+ mode: CONST.COMPATIBILITY_MODES;
264
+ includePatterns: RegExp[];
265
+ excludePatterns: RegExp[];
266
+ };
267
+
268
+ compendium: {
269
+ /**
270
+ * Configure a table of compendium UUID redirects. Must be configured before the game *ready* hook is fired.
271
+ *
272
+ * @example Re-map individual UUIDs
273
+ * ```js
274
+ * CONFIG.compendium.uuidRedirects["Compendium.system.heroes.Actor.Tf0JDPzHOrIxz6BH"] = "Compendium.system.villains.Actor.DKYLeIliXXzlAZ2G";
275
+ * ```
276
+ *
277
+ * @example Redirect UUIDs from one compendium to another.
278
+ * ```js
279
+ * CONFIG.compendium.uuidRedirects["Compendium.system.heroes"] = "Compendium.system.villains";
280
+ * ```
281
+ */
282
+ uuidRedirects: Record<string, string>;
283
+ };
284
+
285
+ /**
286
+ * Configure the DatabaseBackend used to perform Document operations
287
+ * @defaultValue `new foundry.data.ClientDatabaseBackend()`
288
+ */
289
+ DatabaseBackend: foundry.data.ClientDatabaseBackend;
290
+
291
+ /**
292
+ * Configuration for the Actor document
293
+ */
294
+ Actor: {
295
+ /** @defaultValue `Actor` */
296
+ documentClass: Document.ConfiguredClassForName<"Actor">;
297
+
298
+ /** @defaultValue `Actors` */
299
+ collection: typeof Actors;
300
+
301
+ /** @defaultValue `[]` */
302
+ compendiumIndexFields: string[];
303
+
304
+ /** @defaultValue `"ui/banners/actor-banner.webp"` */
305
+ compendiumBanner: string;
306
+
307
+ /** @defaultValue `"fas fa-user"` */
308
+ sidebarIcon: string;
309
+
310
+ /**
311
+ * @defaultValue `{}`
312
+ * @remarks `TypeDataModel` is preferred to `DataModel` per core Foundry team
313
+ */
314
+ dataModels: Record<string, typeof DataModel<any, Actor>>;
315
+
316
+ /**
317
+ * @remarks Added by `DocumentSheetConfig._registerDefaultSheets` in `tail.js`
318
+ */
319
+ sheetClasses: Record<foundry.documents.BaseActor.TypeNames, Record<string, SheetClassConfig>>;
320
+
321
+ /**
322
+ * @defaultValue `{}`
323
+ * @remarks Initialized by `Localization#initialize`, is an empty object until `i18nInit`
324
+ */
325
+ typeLabels: Record<foundry.documents.BaseActor.TypeNames, string>;
326
+
327
+ /** @defaultValue `{}` */
328
+ typeIcons: Record<string, string>;
329
+
330
+ /** @defaultValue `{}` */
331
+ trackableAttributes: Record<string, string>;
332
+ };
333
+
334
+ /**
335
+ * Configuration for the Adventure document.
336
+ * Currently for internal use only.
337
+ * @internal
338
+ */
339
+ Adventure: {
340
+ /** @defaultValue `foundry.documents.BaseAdventure` */
341
+ documentClass: Document.ConfiguredClassForName<"Adventure">;
342
+
343
+ /**
344
+ * @remarks Added by `DocumentSheetConfig._registerDefaultSheets` in `tail.js`
345
+ */
346
+ sheetClasses: Record<"base", Record<string, SheetClassConfig>>;
347
+
348
+ /**
349
+ * @remarks Initialized by `Localization#initialize`, is undefined until `i18nInit`
350
+ */
351
+ typeLabels?: Record<"base", string>;
352
+
353
+ /** @defaultValue `[]` */
354
+ compendiumIndexFields: string[];
355
+
356
+ /** @defaultValue `"ui/banners/adventure-banner.webp"` */
357
+ compendiumBanner: string;
358
+
359
+ /** @defaultValue `"fa-solid fa-treasure-chest"` */
360
+ sidebarIcon: string;
361
+ };
362
+
363
+ /**
364
+ * Configuration for the Cards primary Document type
365
+ */
366
+ Cards: {
367
+ /** @defaultValue `CardStacks` */
368
+ collection: typeof CardStacks;
369
+
370
+ /** @defaultValue `[]` */
371
+ compendiumIndexFields: string[];
372
+
373
+ /** @defaultValue `Cards` */
374
+ documentClass: Document.ConfiguredClassForName<"Cards">;
375
+
376
+ /** @defaultValue `"fa-solid fa-cards"` */
377
+ sidebarIcon: string;
378
+
379
+ /**
380
+ * @defaultValue `{}`
381
+ * @remarks `TypeDataModel` is preferred to `DataModel` per core Foundry team
382
+ */
383
+ dataModels: Record<string, typeof DataModel<any, Cards>>;
384
+
385
+ /**
386
+ * @defaultValue
387
+ * ```typescript
388
+ * {
389
+ * pokerDark: {
390
+ * type: "deck",
391
+ * label: "CARDS.DeckPresetPokerDark",
392
+ * src: "cards/poker-deck-dark.json"
393
+ * },
394
+ * pokerLight: {
395
+ * type: "deck",
396
+ * label: "CARDS.DeckPresetPokerLight",
397
+ * src: "cards/poker-deck-light.json"
398
+ * }
399
+ * }
400
+ * ```
401
+ */
402
+ presets: Record<string, CONFIG.Cards.Preset>;
403
+
404
+ /**
405
+ * @remarks Added by `DocumentSheetConfig._registerDefaultSheets` in `tail.js`
406
+ */
407
+ sheetClasses: Record<foundry.documents.BaseCards.TypeNames, Record<string, SheetClassConfig>>;
408
+
409
+ /**
410
+ * @defaultValue `{}`
411
+ * @remarks Initialized by `Localization#initialize`, is an empty object until `i18nInit`
412
+ */
413
+ typeLabels: Record<foundry.documents.BaseCards.TypeNames, string>;
414
+
415
+ typeIcons: {
416
+ /** @defaultValue `"fas fa-cards"` */
417
+ deck: string;
418
+ /** @defaultValue `"fa-duotone fa-cards"` */
419
+ hand: string;
420
+ /** @defaultValue `"fa-duotone fa-layer-group"` */
421
+ pile: string;
422
+
423
+ [x: string]: string;
424
+ };
425
+ };
426
+
427
+ /**
428
+ * Configuration for the ChatMessage document
429
+ */
430
+ ChatMessage: {
431
+ /** @defaultValue `ChatMessage` */
432
+ documentClass: Document.ConfiguredClassForName<"ChatMessage">;
433
+
434
+ /** @defaultValue `Messages` */
435
+ collection: typeof Messages;
436
+
437
+ /** @defaultValue `"templates/sidebar/chat-message.html"` */
438
+ template: string;
439
+
440
+ /** @defaultValue `"fas fa-comments"` */
441
+ sidebarIcon: string;
442
+
443
+ /**
444
+ * @defaultValue `{}`
445
+ * @remarks `TypeDataModel` is preferred to `DataModel` per core Foundry team
446
+ */
447
+ dataModels: Record<string, typeof DataModel<any, ChatMessage>>;
448
+
449
+ /**
450
+ * @remarks Added by `DocumentSheetConfig._registerDefaultSheets` in `tail.js`
451
+ */
452
+ sheetClasses: Record<foundry.documents.BaseChatMessage.TypeNames, Record<string, SheetClassConfig>>;
453
+
454
+ /**
455
+ * @defaultValue `{}`
456
+ * @remarks Initialized by `Localization#initialize`, is an empty object until `i18nInit`
457
+ */
458
+ typeLabels: Record<foundry.documents.BaseChatMessage.TypeNames, string>;
459
+
460
+ /** @defaultValue `{}` */
461
+ typeIcons: Record<string, string>;
462
+
463
+ /** @defaultValue `100` */
464
+ batchSize: number;
465
+ };
466
+
467
+ /**
468
+ * Configuration for the Combat document
469
+ */
470
+ Combat: {
471
+ /** @defaultValue `Combat` */
472
+ documentClass: Document.ConfiguredClassForName<"Combat">;
473
+
474
+ /** @defaultValue `CombatEncounters` */
475
+ collection: typeof CombatEncounters;
476
+
477
+ /** @defaultValue `"fas fa-swords"` */
478
+ sidebarIcon: string;
479
+
480
+ /**
481
+ * @defaultValue `{}`
482
+ * @remarks `TypeDataModel` is preferred to `DataModel` per core Foundry team
483
+ */
484
+ dataModels: Record<string, typeof DataModel<any, Combat>>;
485
+
486
+ /**
487
+ * @remarks Added by `DocumentSheetConfig._registerDefaultSheets` in `tail.js`
488
+ */
489
+ sheetClasses: Record<foundry.documents.BaseCombat.TypeNames, Record<string, SheetClassConfig>>;
490
+
491
+ /**
492
+ * @defaultValue `{}`
493
+ * @remarks Initialized by `Localization#initialize`, is an empty object until `i18nInit`
494
+ */
495
+ typeLabels: Record<foundry.documents.BaseCombat.TypeNames, string>;
496
+
497
+ /** @defaultValue `{}` */
498
+ typeIcons: Record<string, string>;
499
+
500
+ initiative: {
501
+ /** @defaultValue `null` */
502
+ formula: string | null;
503
+
504
+ /** @defaultValue `2` */
505
+ decimals: number;
506
+ };
507
+
508
+ /**
509
+ * @defaultValue
510
+ * ```typescript
511
+ * {
512
+ * "epic": {
513
+ * label: "COMBAT.Sounds.Epic",
514
+ * startEncounter: ["sounds/combat/epic-start-3hit.ogg", "sounds/combat/epic-start-horn.ogg"],
515
+ * nextUp: ["sounds/combat/epic-next-horn.ogg"],
516
+ * yourTurn: ["sounds/combat/epic-turn-1hit.ogg", "sounds/combat/epic-turn-2hit.ogg"]
517
+ * },
518
+ * "mc": {
519
+ * label: "COMBAT.Sounds.MC",
520
+ * startEncounter: ["sounds/combat/mc-start-battle.ogg", "sounds/combat/mc-start-begin.ogg", "sounds/combat/mc-start-fight.ogg", "sounds/combat/mc-start-fight2.ogg"],
521
+ * nextUp: ["sounds/combat/mc-next-itwillbe.ogg", "sounds/combat/mc-next-makeready.ogg", "sounds/combat/mc-next-youare.ogg"],
522
+ * yourTurn: ["sounds/combat/mc-turn-itisyour.ogg", "sounds/combat/mc-turn-itsyour.ogg"]
523
+ * }
524
+ * }
525
+ * ```
526
+ */
527
+ sounds: CONFIG.Combat.Sounds;
528
+ };
529
+
530
+ /**
531
+ * Configuration for dice rolling behaviors in the Foundry Virtual Tabletop client
532
+ */
533
+ Dice: CONFIG.Dice;
534
+
535
+ /**
536
+ * Configuration for the FogExploration document
537
+ */
538
+ FogExploration: {
539
+ /** @defaultValue `FogExploration` */
540
+ documentClass: Document.ConfiguredClassForName<"FogExploration">;
541
+
542
+ /**
543
+ * @remarks Added by `DocumentSheetConfig._registerDefaultSheets` in `tail.js`
544
+ */
545
+ sheetClasses: Record<"base", Record<string, SheetClassConfig>>;
546
+
547
+ /**
548
+ * @remarks Initialized by `Localization#initialize`, is undefined until `i18nInit`
549
+ */
550
+ typeLabels?: Record<"base", string>;
551
+
552
+ /** @defaultValue `FogExplorations` */
553
+ collection: typeof FogExplorations;
554
+ };
555
+
556
+ /**
557
+ * Configuration for the Folder entity
558
+ */
559
+ Folder: {
560
+ /** @defaultValue `Folder` */
561
+ documentClass: Document.ConfiguredClassForName<"Folder">;
562
+
563
+ /** @defaultValue `Folders` */
564
+ collection: typeof Folders;
565
+
566
+ /** @defaultValue `"fas fa-folder"` */
567
+ sidebarIcon: string;
568
+
569
+ /**
570
+ * @remarks Added by `DocumentSheetConfig._registerDefaultSheets` in `tail.js`
571
+ */
572
+ sheetClasses: Record<foundry.CONST.FOLDER_DOCUMENT_TYPES, Record<string, SheetClassConfig>>;
573
+
574
+ /**
575
+ * @remarks Initialized by `Localization#initialize`, is undefined until `i18nInit`
576
+ */
577
+ typeLabels?: Record<foundry.CONST.FOLDER_DOCUMENT_TYPES, string>;
578
+ };
579
+
580
+ /**
581
+ * Configuration for the default Item entity class
582
+ */
583
+ Item: {
584
+ /** @defaultValue `Item` */
585
+ documentClass: Document.ConfiguredClassForName<"Item">;
586
+
587
+ /** @defaultValue `Items` */
588
+ collection: typeof Items;
589
+
590
+ /** @defaultValue `[]` */
591
+ compendiumIndexFields: string[];
592
+
593
+ /** @defaultValue `"ui/banners/item-banner.webp"` */
594
+ compendiumBanner: string;
595
+
596
+ /** @defaultValue `"fas fa-suitcase"` */
597
+ sidebarIcon: string;
598
+
599
+ /**
600
+ * @defaultValue `{}`
601
+ * @remarks `TypeDataModel` is preferred to `DataModel` per core Foundry team
602
+ */
603
+ dataModels: Record<string, typeof DataModel<any, Item>>;
604
+
605
+ /**
606
+ * @defaultValue `{}`
607
+ * @remarks Initialized by `Localization#initialize`, is an empty object until `i18nInit`
608
+ */
609
+ typeLabels: Record<foundry.documents.BaseItem.TypeNames, string>;
610
+
611
+ /**
612
+ * @remarks Added by `DocumentSheetConfig._registerDefaultSheets` in `tail.js`
613
+ */
614
+ sheetClasses: Record<foundry.documents.BaseItem.TypeNames, Record<string, SheetClassConfig>>;
615
+ };
616
+
617
+ /**
618
+ * Configuration for the JournalEntry entity
619
+ */
620
+ JournalEntry: {
621
+ /** @defaultValue `JournalEntry` */
622
+ documentClass: Document.ConfiguredClassForName<"JournalEntry">;
623
+
624
+ /**
625
+ * @remarks Added by `DocumentSheetConfig._registerDefaultSheets` in `tail.js`
626
+ */
627
+ sheetClasses: Record<"base", Record<string, SheetClassConfig>>;
628
+
629
+ /**
630
+ * @remarks Initialized by `Localization#initialize`, is undefined until `i18nInit`
631
+ */
632
+ typeLabels?: Record<"base", string>;
633
+
634
+ /** @defaultValue `Journal` */
635
+ collection: typeof Journal;
636
+
637
+ /** @defaultValue `[]` */
638
+ compendiumIndexFields: string[];
639
+
640
+ /** @defaultValue `"ui/banners/journalentry-banner.webp"` */
641
+ compendiumBanner: string;
642
+
643
+ noteIcons: {
644
+ /** @defaultValue `"icons/svg/anchor.svg"` */
645
+ Anchor: string;
646
+
647
+ /** @defaultValue `"icons/svg/barrel.svg"` */
648
+ Barrel: string;
649
+
650
+ /** @defaultValue `"icons/svg/book.svg"` */
651
+ Book: string;
652
+
653
+ /** @defaultValue `"icons/svg/bridge.svg"` */
654
+ Bridge: string;
655
+
656
+ /** @defaultValue `"icons/svg/cave.svg"` */
657
+ Cave: string;
658
+
659
+ /** @defaultValue `"icons/svg/castle.svg"` */
660
+ Castle: string;
661
+
662
+ /** @defaultValue `"icons/svg/chest.svg"` */
663
+ Chest: string;
664
+
665
+ /** @defaultValue `"icons/svg/city.svg"` */
666
+ City: string;
667
+
668
+ /** @defaultValue `"icons/svg/coins.svg"` */
669
+ Coins: string;
670
+
671
+ /** @defaultValue `"icons/svg/fire.svg"` */
672
+ Fire: string;
673
+
674
+ /** @defaultValue `"icons/svg/hanging-sign.svg"` */
675
+ "Hanging Sign": string;
676
+
677
+ /** @defaultValue `"icons/svg/house.svg"` */
678
+ House: string;
679
+
680
+ /** @defaultValue `"icons/svg/mountain.svg"` */
681
+ Mountain: string;
682
+
683
+ /** @defaultValue `"icons/svg/oak.svg"` */
684
+ "Oak Tree": string;
685
+
686
+ /** @defaultValue `"icons/svg/obelisk.svg"` */
687
+ Obelisk: string;
688
+
689
+ /** @defaultValue `"icons/svg/pawprint.svg"` */
690
+ Pawprint: string;
691
+
692
+ /** @defaultValue `"icons/svg/ruins.svg"` */
693
+ Ruins: string;
694
+
695
+ /** @defaultValue `"icons/svg/skull.svg"` */
696
+ Skull: string;
697
+
698
+ /** @defaultValue `"icons/svg/statue.svg"` */
699
+ Statue: string;
700
+
701
+ /** @defaultValue `"icons/svg/sword.svg"` */
702
+ Sword: string;
703
+
704
+ /** @defaultValue `"icons/svg/tankard.svg"` */
705
+ Tankard: string;
706
+
707
+ /** @defaultValue `"icons/svg/temple.svg"` */
708
+ Temple: string;
709
+
710
+ /** @defaultValue `"icons/svg/tower.svg"` */
711
+ Tower: string;
712
+
713
+ /** @defaultValue `"icons/svg/trap.svg"` */
714
+ Trap: string;
715
+
716
+ /** @defaultValue `"icons/svg/village.svg"` */
717
+ Village: string;
718
+
719
+ /** @defaultValue `"icons/svg/waterfall.svg"` */
720
+ Waterfall: string;
721
+
722
+ /** @defaultValue `"icons/svg/windmill.svg"` */
723
+ Windmill: string;
724
+ } & Record<string, string>;
725
+
726
+ /** @defaultValue `"fas fa-book-open"` */
727
+ sidebarIcon: string;
728
+ };
729
+
730
+ /**
731
+ * Configuration for the Macro entity
732
+ */
733
+ Macro: {
734
+ /** @defaultValue `Macro` */
735
+ documentClass: Document.ConfiguredClassForName<"Macro">;
736
+
737
+ /**
738
+ * @remarks Added by `DocumentSheetConfig._registerDefaultSheets` in `tail.js`
739
+ */
740
+ sheetClasses: Record<foundry.documents.BaseMacro.TypeNames, Record<string, SheetClassConfig>>;
741
+
742
+ /**
743
+ * @remarks Initialized by `Localization#initialize`, is undefined until `i18nInit`
744
+ */
745
+ typeLabels?: Record<foundry.documents.BaseMacro.TypeNames, string>;
746
+
747
+ /** @defaultValue `Macros` */
748
+ collection: typeof Macros;
749
+
750
+ /** @defaultValue `[]` */
751
+ compendiumIndexFields: string[];
752
+
753
+ /** @defaultValue `"ui/banners/macro-banner.webp"` */
754
+ compendiumBanner: string;
755
+
756
+ /** @defaultValue `"fas fa-code"` */
757
+ sidebarIcon: string;
758
+ };
759
+
760
+ /**
761
+ * Configuration for the default Playlist entity class
762
+ */
763
+ Playlist: {
764
+ /** @defaultValue `Playlist` */
765
+ documentClass: Document.ConfiguredClassForName<"Playlist">;
766
+
767
+ /**
768
+ * @remarks Added by `DocumentSheetConfig._registerDefaultSheets` in `tail.js`
769
+ */
770
+ sheetClasses: Record<"base", Record<string, SheetClassConfig>>;
771
+
772
+ /**
773
+ * @remarks Initialized by `Localization#initialize`, is undefined until `i18nInit`
774
+ */
775
+ typeLabels?: Record<"base", string>;
776
+
777
+ /** @defaultValue `Playlists` */
778
+ collection: typeof Playlists;
779
+
780
+ /** @defaultValue `[]` */
781
+ compendiumIndexFields: string[];
782
+
783
+ /** @defaultValue `"ui/banners/playlist-banner.webp"` */
784
+ compendiumBanner: string;
785
+
786
+ /** @defaultValue `"fas fa-music"` */
787
+ sidebarIcon: string;
788
+
789
+ /** @defaultValue `20` */
790
+ autoPreloadSeconds: number;
791
+ };
792
+
793
+ /**
794
+ * Configuration for RollTable random draws
795
+ */
796
+ RollTable: {
797
+ /** @defaultValue `RollTable` */
798
+ documentClass: Document.ConfiguredClassForName<"RollTable">;
799
+
800
+ /**
801
+ * @remarks Added by `DocumentSheetConfig._registerDefaultSheets` in `tail.js`
802
+ */
803
+ sheetClasses: Record<"base", Record<string, SheetClassConfig>>;
804
+
805
+ /**
806
+ * @remarks Initialized by `Localization#initialize`, is undefined until `i18nInit`
807
+ */
808
+ typeLabels?: Record<"base", string>;
809
+
810
+ /** @defaultValue `RollTables` */
811
+ collection: typeof RollTables;
812
+
813
+ /** @defaultValue `["formula"]` */
814
+ compendiumIndexFields: string[];
815
+
816
+ /** @defaultValue `"ui/banners/rolltable-banner.webp"` */
817
+ compendiumBanner: string;
818
+
819
+ /** @defaultValue `"fas fa-th-list"` */
820
+ sidebarIcon: string;
821
+
822
+ /** @defaultValue `"icons/svg/d20-black.svg"` */
823
+ resultIcon: string;
824
+
825
+ /** @defaultValue `"templates/dice/table-result.html"` */
826
+ resultTemplate: string;
827
+ };
828
+
829
+ /**
830
+ * Configuration for the default Scene entity class
831
+ */
832
+ Scene: {
833
+ /** @defaultValue `Scene` */
834
+ documentClass: Document.ConfiguredClassForName<"Scene">;
835
+
836
+ /**
837
+ * @remarks Added by `DocumentSheetConfig._registerDefaultSheets` in `tail.js`
838
+ */
839
+ sheetClasses: Record<"base", Record<string, SheetClassConfig>>;
840
+
841
+ /**
842
+ * @remarks Initialized by `Localization#initialize`, is undefined until `i18nInit`
843
+ */
844
+ typeLabels?: Record<"base", string>;
845
+
846
+ /** @defaultValue `Scenes` */
847
+ collection: typeof Scenes;
848
+
849
+ /** @defaultValue `[]` */
850
+ compendiumIndexFields: string[];
851
+
852
+ /** @defaultValue `"ui/banners/scene-banner.webp"` */
853
+ compendiumBanner: string;
854
+
855
+ /** @defaultValue `"fas fa-map"` */
856
+ sidebarIcon: string;
857
+ };
858
+
859
+ Setting: {
860
+ /** @defaultValue `Setting` */
861
+ documentClass: Document.ConfiguredClassForName<"Setting">;
862
+
863
+ /**
864
+ * @remarks Added by `DocumentSheetConfig._registerDefaultSheets` in `tail.js`
865
+ */
866
+ sheetClasses: Record<"base", Record<string, SheetClassConfig>>;
867
+
868
+ /**
869
+ * @remarks Initialized by `Localization#initialize`, is undefined until `i18nInit`
870
+ */
871
+ typeLabels?: Record<"base", string>;
872
+
873
+ /** @defaultValue `WorldSettings` */
874
+ collection: typeof WorldSettings;
875
+ };
876
+
877
+ /**
878
+ * Configuration for the User entity, it's roles, and permissions
879
+ */
880
+ User: {
881
+ /** @defaultValue `User` */
882
+ documentClass: Document.ConfiguredClassForName<"User">;
883
+
884
+ /**
885
+ * @remarks Added by `DocumentSheetConfig._registerDefaultSheets` in `tail.js`
886
+ */
887
+ sheetClasses: Record<"base", Record<string, SheetClassConfig>>;
888
+
889
+ /**
890
+ * @remarks Initialized by `Localization#initialize`, is undefined until `i18nInit`
891
+ */
892
+ typeLabels?: Record<"base", string>;
893
+
894
+ /** @defaultValue `Users` */
895
+ collection: typeof Users;
896
+ };
897
+
898
+ /**
899
+ * Configuration settings for the Canvas and its contained layers and objects
900
+ */
901
+ Canvas: {
902
+ /** @defaultValue `8` */
903
+ blurStrength: number;
904
+
905
+ /** @defaultValue `4` */
906
+ blurQuality: number;
907
+
908
+ /** @defaultValue `0x303030` */
909
+ darknessColor: number;
910
+
911
+ /** @defaultValue `0xeeeeee` */
912
+ daylightColor: number;
913
+
914
+ /** @defaultValue `0xffffff` */
915
+ brightestColor: number;
916
+
917
+ chatBubblesClass: typeof ChatBubbles;
918
+
919
+ /** @defaultValue `0.25` */
920
+ darknessLightPenalty: number;
921
+
922
+ dispositionColors: {
923
+ /** @defaultValue `0xe72124` */
924
+ HOSTILE: number;
925
+
926
+ /** @defaultValue `0xf1d836` */
927
+ NEUTRAL: number;
928
+
929
+ /** @defaultValue `0x43dfdf` */
930
+ FRIENDLY: number;
931
+
932
+ /** @defaultValue `0x555555` */
933
+ INACTIVE: number;
934
+
935
+ /** @defaultValue `0x33bc4e` */
936
+ PARTY: number;
937
+
938
+ /** @defaultValue `0xff9829` */
939
+ CONTROLLED: number;
940
+
941
+ /** @defaultValue `0xA612D4` */
942
+ SECRET: number;
943
+ };
944
+
945
+ /**
946
+ * The class used to render door control icons
947
+ */
948
+ doorControlClass: typeof DoorControl;
949
+
950
+ /** @defaultValue `0x000000` */
951
+ exploredColor: number;
952
+
953
+ /** @defaultValue `0x000000` */
954
+ unexploredColor: number;
955
+
956
+ /** @defaultValue `10000` */
957
+ darknessToDaylightAnimationMS: number;
958
+
959
+ /** @defaultValue `10000` */
960
+ daylightToDarknessAnimationMS: number;
961
+
962
+ darknessSourceClass: typeof foundry.canvas.sources.PointDarknessSource;
963
+
964
+ lightSourceClass: typeof foundry.canvas.sources.PointLightSource;
965
+
966
+ globalLightSourceClass: typeof foundry.canvas.sources.GlobalLightSource;
967
+
968
+ visionSourceClass: typeof foundry.canvas.sources.PointVisionSource;
969
+
970
+ soundSourceClass: typeof foundry.canvas.sources.PointSoundSource;
971
+
972
+ groups: CONFIG.Canvas.Groups;
973
+
974
+ layers: CONFIG.Canvas.Layers;
975
+
976
+ lightLevels: {
977
+ /** @defaultValue `0` */
978
+ dark: number;
979
+
980
+ /** @defaultValue `0.5` */
981
+ halfdark: number;
982
+
983
+ /** @defaultValue `0.25` */
984
+ dim: number;
985
+
986
+ /** @defaultValue `1.0` */
987
+ bright: number;
988
+ };
989
+
990
+ /** @defaultValue `FogManager` */
991
+ fogManager: typeof FogManager;
992
+
993
+ polygonBackends: {
994
+ /** @defaultValue `typeof ClockwiseSweepPolygon` */
995
+ sight: typeof PointSourcePolygon;
996
+ /** @defaultValue `typeof ClockwiseSweepPolygon` */
997
+ light: typeof PointSourcePolygon;
998
+ /** @defaultValue `typeof ClockwiseSweepPolygon` */
999
+ sound: typeof PointSourcePolygon;
1000
+ /** @defaultValue `typeof ClockwiseSweepPolygon` */
1001
+ move: typeof PointSourcePolygon;
1002
+ };
1003
+
1004
+ /** @defaultValue `number` */
1005
+ darknessSourcePaddingMultiplier: number;
1006
+
1007
+ visibilityFilter: typeof VisibilityFilter;
1008
+
1009
+ visualEffectsMaskingFilter: typeof VisualEffectsMaskingFilter;
1010
+
1011
+ /** @defaultValue `Ruler` */
1012
+ rulerClass: typeof Ruler;
1013
+
1014
+ /** @defaultValue `0.8` */
1015
+ dragSpeedModifier: number;
1016
+
1017
+ /** @defaultValue `3.0` */
1018
+ maxZoom: number;
1019
+
1020
+ /** @defaultValue `4` */
1021
+ objectBorderThickness: number;
1022
+
1023
+ gridStyles: Record<string, CONFIG.Canvas.GridStyle>;
1024
+
1025
+ lightAnimations: CONFIG.Canvas.LightSourceAnimationConfig & {
1026
+ flame: {
1027
+ /** @defaultValue `"LIGHT.AnimationFame"` */
1028
+ label: string;
1029
+
1030
+ /** @defaultValue `foundry.canvas.sources.LightSource.prototype.animateFlickering` */
1031
+ animation: CONFIG.Canvas.LightAnimationFunction;
1032
+
1033
+ /** @defaultValue `FlameIlluminationShader` */
1034
+ illuminationShader: typeof AbstractBaseShader;
1035
+
1036
+ /** @defaultValue `FlameColorationShader` */
1037
+ colorationShader: typeof AbstractBaseShader;
1038
+ };
1039
+
1040
+ torch: {
1041
+ /** @defaultValue `"LIGHT.AnimationTorch"` */
1042
+ label: string;
1043
+
1044
+ /** @defaultValue `foundry.canvas.sources.LightSource.prototype.animateTorch` */
1045
+ animation: CONFIG.Canvas.LightAnimationFunction;
1046
+
1047
+ /** @defaultValue `TorchIlluminationShader` */
1048
+ illuminationShader: typeof AbstractBaseShader;
1049
+
1050
+ /** @defaultValue `TorchColorationShader` */
1051
+ colorationShader: typeof AbstractBaseShader;
1052
+ };
1053
+
1054
+ revolving: {
1055
+ /** @defaultValue `"LIGHT.AnimationRevolving"` */
1056
+ label: string;
1057
+
1058
+ /** @defaultValue `foundry.canvas.sources.LightSource.prototype.animateTime` */
1059
+ animation: CONFIG.Canvas.LightAnimationFunction;
1060
+
1061
+ /** @defaultValue `RevolvingColorationShader` */
1062
+ colorationShader: typeof AbstractBaseShader;
1063
+ };
1064
+
1065
+ siren: {
1066
+ /** @defaultValue `"LIGHT.AnimationSiren"` */
1067
+ label: string;
1068
+
1069
+ /** @defaultValue `foundry.canvas.sources.LightSource.prototype.animateTorch` */
1070
+ animation: CONFIG.Canvas.LightAnimationFunction;
1071
+
1072
+ /** @defaultValue `SirenIlluminationShader` */
1073
+ illuminationShader: typeof AbstractBaseShader;
1074
+
1075
+ /** @defaultValue `SirenIlluminationShader` */
1076
+ colorationShader: typeof AbstractBaseShader;
1077
+ };
1078
+
1079
+ pulse: {
1080
+ /** @defaultValue `"LIGHT.AnimationPulse"` */
1081
+ label: string;
1082
+
1083
+ /** @defaultValue `foundry.canvas.sources.LightSource.prototype.animatePulse` */
1084
+ animation: CONFIG.Canvas.LightAnimationFunction;
1085
+
1086
+ /** @defaultValue `PulseIlluminationShader` */
1087
+ illuminationShader: typeof AbstractBaseShader;
1088
+
1089
+ /** @defaultValue `PulseColorationShader` */
1090
+ colorationShader: typeof AbstractBaseShader;
1091
+ };
1092
+
1093
+ chroma: {
1094
+ /** @defaultValue `"LIGHT.AnimationChroma"` */
1095
+ label: string;
1096
+
1097
+ /** @defaultValue `foundry.canvas.sources.LightSource.prototype.animateTime` */
1098
+ animation: CONFIG.Canvas.LightAnimationFunction;
1099
+
1100
+ /** @defaultValue `ChromaColorationShader` */
1101
+ colorationShader: typeof AbstractBaseShader;
1102
+ };
1103
+
1104
+ wave: {
1105
+ /** @defaultValue `"LIGHT.AnimationWave"` */
1106
+ label: string;
1107
+
1108
+ /** @defaultValue `foundry.canvas.sources.LightSource.prototype.animateTime` */
1109
+ animation: CONFIG.Canvas.LightAnimationFunction;
1110
+
1111
+ /** @defaultValue `WaveIlluminationShader` */
1112
+ illuminationShader: typeof AbstractBaseShader;
1113
+
1114
+ /** @defaultValue `WaveColorationShader` */
1115
+ colorationShader: typeof AbstractBaseShader;
1116
+ };
1117
+
1118
+ fog: {
1119
+ /** @defaultValue `"LIGHT.AnimationFog"` */
1120
+ label: string;
1121
+
1122
+ /** @defaultValue `foundry.canvas.sources.LightSource.prototype.animateTime` */
1123
+ animation: CONFIG.Canvas.LightAnimationFunction;
1124
+
1125
+ /** @defaultValue `FogColorationShader` */
1126
+ colorationShader: typeof AbstractBaseShader;
1127
+ };
1128
+
1129
+ sunburst: {
1130
+ /** @defaultValue `"LIGHT.AnimationSunburst"` */
1131
+ label: string;
1132
+
1133
+ /** @defaultValue `foundry.canvas.sources.LightSource.prototype.animateTime` */
1134
+ animation: CONFIG.Canvas.LightAnimationFunction;
1135
+
1136
+ /** @defaultValue `SunburstIlluminationShader` */
1137
+ illuminationShader: typeof AbstractBaseShader;
1138
+
1139
+ /** @defaultValue `SunburstColorationShader` */
1140
+ colorationShader: typeof AbstractBaseShader;
1141
+ };
1142
+
1143
+ dome: {
1144
+ /** @defaultValue `"LIGHT.AnimationLightDome"` */
1145
+ label: string;
1146
+
1147
+ /** @defaultValue `foundry.canvas.sources.LightSource.prototype.animateTime` */
1148
+ animation: CONFIG.Canvas.LightAnimationFunction;
1149
+
1150
+ /** @defaultValue `LightDomeColorationShader` */
1151
+ colorationShader: typeof AbstractBaseShader;
1152
+ };
1153
+
1154
+ emanation: {
1155
+ /** @defaultValue `"LIGHT.AnimationEmanation"` */
1156
+ label: string;
1157
+
1158
+ /** @defaultValue `foundry.canvas.sources.LightSource.prototype.animateTime` */
1159
+ animation: CONFIG.Canvas.LightAnimationFunction;
1160
+
1161
+ /** @defaultValue `EmanationColorationShader` */
1162
+ colorationShader: typeof AbstractBaseShader;
1163
+ };
1164
+
1165
+ hexa: {
1166
+ /** @defaultValue `"LIGHT.AnimationHexaDome";` */
1167
+ label: string;
1168
+
1169
+ /** @defaultValue `foundry.canvas.sources.LightSource.prototype.animateTime` */
1170
+ animation: CONFIG.Canvas.LightAnimationFunction;
1171
+
1172
+ /** @defaultValue `HexaDomeColorationShader` */
1173
+ colorationShader: typeof AbstractBaseShader;
1174
+ };
1175
+
1176
+ ghost: {
1177
+ /** @defaultValue `"LIGHT.AnimationGhostLight"` */
1178
+ label: string;
1179
+
1180
+ /** @defaultValue `foundry.canvas.sources.LightSource.prototype.animateTime` */
1181
+ animation: CONFIG.Canvas.LightAnimationFunction;
1182
+
1183
+ /** @defaultValue `GhostLightIlluminationShader` */
1184
+ illuminationShader: typeof AbstractBaseShader;
1185
+
1186
+ /** @defaultValue `GhostLightColorationShader` */
1187
+ colorationShader: typeof AbstractBaseShader;
1188
+ };
1189
+
1190
+ energy: {
1191
+ /** @defaultValue `"LIGHT.AnimationEnergyField"` */
1192
+ label: string;
1193
+
1194
+ /** @defaultValue `foundry.canvas.sources.LightSource.prototype.animateTime` */
1195
+ animation: CONFIG.Canvas.LightAnimationFunction;
1196
+
1197
+ /** @defaultValue `EnergyFieldColorationShader` */
1198
+ colorationShader: typeof AbstractBaseShader;
1199
+ };
1200
+
1201
+ vortex: {
1202
+ /** @defaultValue `"LIGHT.AnimationVortex"` */
1203
+ label: string;
1204
+
1205
+ /** @defaultValue `foundry.canvas.sources.LightSource.prototype.animateTime` */
1206
+ animation: CONFIG.Canvas.LightAnimationFunction;
1207
+
1208
+ /** @defaultValue `VortexIlluminationShader` */
1209
+ illuminationShader: typeof AbstractBaseShader;
1210
+
1211
+ /** @defaultValue `VortexColorationShader` */
1212
+ colorationShader: typeof AbstractBaseShader;
1213
+ };
1214
+
1215
+ witchwave: {
1216
+ /** @defaultValue `"LIGHT.AnimationBewitchingWave"` */
1217
+ label: string;
1218
+
1219
+ /** @defaultValue `foundry.canvas.sources.LightSource.prototype.animateTime` */
1220
+ animation: CONFIG.Canvas.LightAnimationFunction;
1221
+
1222
+ /** @defaultValue `BewitchingWaveIlluminationShader` */
1223
+ illuminationShader: typeof AbstractBaseShader;
1224
+
1225
+ /** @defaultValue `BewitchingWaveColorationShader` */
1226
+ colorationShader: typeof AbstractBaseShader;
1227
+ };
1228
+
1229
+ rainbowswirl: {
1230
+ /** @defaultValue `"LIGHT.AnimationSwirlingRainbow"` */
1231
+ label: string;
1232
+
1233
+ /** @defaultValue `foundry.canvas.sources.LightSource.prototype.animateTime` */
1234
+ animation: CONFIG.Canvas.LightAnimationFunction;
1235
+
1236
+ /** @defaultValue `SwirlingRainbowColorationShader` */
1237
+ colorationShader: typeof AbstractBaseShader;
1238
+ };
1239
+
1240
+ radialrainbow: {
1241
+ /** @defaultValue `"LIGHT.AnimationRadialRainbow"` */
1242
+ label: string;
1243
+
1244
+ /** @defaultValue `foundry.canvas.sources.LightSource.prototype.animateTime` */
1245
+ animation: CONFIG.Canvas.LightAnimationFunction;
1246
+
1247
+ /** @defaultValue `RadialRainbowColorationShader` */
1248
+ colorationShader: typeof AbstractBaseShader;
1249
+ };
1250
+
1251
+ fairy: {
1252
+ /** @defaultValue `"LIGHT.AnimationFairyLight"` */
1253
+ label: string;
1254
+
1255
+ /** @defaultValue `foundry.canvas.sources.LightSource.prototype.animateTime` */
1256
+ animation: CONFIG.Canvas.LightAnimationFunction;
1257
+
1258
+ /** @defaultValue `FairyLightIlluminationShader` */
1259
+ illuminationShader: typeof AbstractBaseShader;
1260
+
1261
+ /** @defaultValue `FairyLightColorationShader` */
1262
+ colorationShader: typeof AbstractBaseShader;
1263
+ };
1264
+ };
1265
+
1266
+ darknessAnimations: CONFIG.Canvas.DarknessSourceAnimationConfig;
1267
+
1268
+ /**
1269
+ * A registry of Scenes which are managed by a specific SceneManager class.
1270
+ */
1271
+ managedScenes: Record<string, typeof foundry.canvas.SceneManager>;
1272
+
1273
+ pings: {
1274
+ types: {
1275
+ /** @defaultValue `"pulse"` */
1276
+ PULSE: string;
1277
+
1278
+ /** @defaultValue `"alert"` */
1279
+ ALERT: string;
1280
+
1281
+ /** @defaultValue `"chevron"` */
1282
+ PULL: string;
1283
+
1284
+ /** @defaultValue `"arrow"` */
1285
+ ARROW: string;
1286
+ };
1287
+ styles: {
1288
+ /** @defaultValue `{ class: AlertPing, color: "#ff0000", size: 1.5, duration: 900 }` */
1289
+ alert: CONFIG.Canvas.Pings.Style;
1290
+
1291
+ /** @defaultValue `{ class: ArrowPing, size: 1, duration: 900 }` */
1292
+ arrow: CONFIG.Canvas.Pings.Style;
1293
+
1294
+ /** @defaultValue `{ class: ChevronPing, size: 1, duration: 2000 }` */
1295
+ chevron: CONFIG.Canvas.Pings.Style;
1296
+
1297
+ /** @defaultValue `{ class: PulsePing, size: 1.5, duration: 900 }` */
1298
+ pulse: CONFIG.Canvas.Pings.Style;
1299
+
1300
+ [key: string]: CONFIG.Canvas.Pings.Style;
1301
+ };
1302
+
1303
+ /** @defaultValue `700` */
1304
+ pullSpeed: number;
1305
+ };
1306
+
1307
+ targeting: {
1308
+ /** @defaultValue `.15` */
1309
+ size: number;
1310
+ };
1311
+
1312
+ /**
1313
+ * The hover-fading configuration.
1314
+ */
1315
+ hoverFade: {
1316
+ /**
1317
+ * The delay in milliseconds before the (un)faded animation starts on (un)hover.
1318
+ * @defaultValue `250`
1319
+ */
1320
+ delay: number;
1321
+
1322
+ /**
1323
+ * The duration in milliseconds of the (un)fade animation on (un)hover.
1324
+ * @defaultValue `750`
1325
+ */
1326
+ duration: number;
1327
+ };
1328
+
1329
+ /**
1330
+ * Allow specific transcoders for assets
1331
+ * @defaultValue `{ basis: false }`
1332
+ */
1333
+ transCoders: Record<string, boolean>;
1334
+
1335
+ /**
1336
+ * The set of VisionMode definitions which are available to be used for Token vision.
1337
+ */
1338
+ visionModes: {
1339
+ [key: string]: VisionMode;
1340
+
1341
+ /**
1342
+ * Default (Basic) Vision
1343
+ * @defaultValue
1344
+ * ```typescript
1345
+ * new VisionMode({
1346
+ * id: "basic",
1347
+ * label: "VISION.ModeBasicVision",
1348
+ * vision: {
1349
+ * defaults: { attenuation: 0, contrast: 0, saturation: 0, brightness: 0 }
1350
+ * preferred: true // Takes priority over other vision modes
1351
+ * }
1352
+ * })
1353
+ * ```
1354
+ */
1355
+ basic: VisionMode;
1356
+
1357
+ /**
1358
+ * Darkvision
1359
+ * @defaultValue
1360
+ * ```typescript
1361
+ * new VisionMode({
1362
+ * id: "darkvision",
1363
+ * label: "VISION.ModeDarkvision",
1364
+ * canvas: {
1365
+ * shader: ColorAdjustmentsSamplerShader,
1366
+ * uniforms: { contrast: 0, saturation: -1.0, brightness: 0 }
1367
+ * },
1368
+ * lighting: {
1369
+ * levels: {
1370
+ * [VisionMode.LIGHTING_LEVELS.DIM]: VisionMode.LIGHTING_LEVELS.BRIGHT
1371
+ * },
1372
+ * background: { visibility: VisionMode.LIGHTING_VISIBILITY.REQUIRED }
1373
+ * },
1374
+ * vision: {
1375
+ * darkness: { adaptive: false },
1376
+ * defaults: { attenuation: 0, contrast: 0, saturation: -1.0, brightness: 0 }
1377
+ * }
1378
+ * })
1379
+ * ```
1380
+ */
1381
+ darkvision: VisionMode;
1382
+
1383
+ /**
1384
+ * Darkvision
1385
+ * @defaultValue
1386
+ * ```typescript
1387
+ * new VisionMode({
1388
+ * id: "monochromatic",
1389
+ * label: "VISION.ModeMonochromatic",
1390
+ * canvas: {
1391
+ * shader: ColorAdjustmentsSamplerShader,
1392
+ * uniforms: { contrast: 0, saturation: -1.0, brightness: 0 }
1393
+ * },
1394
+ * lighting: {
1395
+ * background: {
1396
+ * postProcessingModes: ["SATURATION"],
1397
+ * uniforms: { saturation: -1.0, tint: [1, 1, 1] }
1398
+ * },
1399
+ * illumination: {
1400
+ * postProcessingModes: ["SATURATION"],
1401
+ * uniforms: { saturation: -1.0, tint: [1, 1, 1] }
1402
+ * },
1403
+ * coloration: {
1404
+ * postProcessingModes: ["SATURATION"],
1405
+ * uniforms: { saturation: -1.0, tint: [1, 1, 1] }
1406
+ * }
1407
+ * },
1408
+ * vision: {
1409
+ * darkness: { adaptive: false },
1410
+ * defaults: { attenuation: 0, contrast: 0, saturation: -1, brightness: 0 }
1411
+ * }
1412
+ * })
1413
+ * ```
1414
+ */
1415
+ monochromatic: VisionMode;
1416
+
1417
+ /**
1418
+ * Blindness
1419
+ * @defaultValue
1420
+ * ```typescript
1421
+ * new VisionMode({
1422
+ * id: "blindness",
1423
+ * label: "VISION.ModeBlindness",
1424
+ * tokenConfig: false,
1425
+ * canvas: {
1426
+ * shader: ColorAdjustmentsSamplerShader,
1427
+ * uniforms: { contrast: -0.75, saturation: -1, exposure: -0.3 }
1428
+ * },
1429
+ * lighting: {
1430
+ * background: { visibility: VisionMode.LIGHTING_VISIBILITY.DISABLED },
1431
+ * illumination: { visibility: VisionMode.LIGHTING_VISIBILITY.DISABLED },
1432
+ * coloration: { visibility: VisionMode.LIGHTING_VISIBILITY.DISABLED }
1433
+ * },
1434
+ * vision: {
1435
+ * darkness: { adaptive: false },
1436
+ * defaults: { color: null, attenuation: 0, contrast: -0.5, saturation: -1, brightness: -1 }
1437
+ * }
1438
+ * }),
1439
+ * ```
1440
+ */
1441
+ blindness: VisionMode;
1442
+
1443
+ /**
1444
+ * Tremorsense
1445
+ * @defaultValue
1446
+ * ```typescript
1447
+ * new VisionMode({
1448
+ * id: "tremorsense",
1449
+ * label: "VISION.ModeTremorsense",
1450
+ * canvas: {
1451
+ * shader: ColorAdjustmentsSamplerShader,
1452
+ * uniforms: { contrast: 0, saturation: -0.8, exposure: -0.65 }
1453
+ * },
1454
+ * lighting: {
1455
+ * background: { visibility: VisionMode.LIGHTING_VISIBILITY.DISABLED },
1456
+ * illumination: { visibility: VisionMode.LIGHTING_VISIBILITY.DISABLED },
1457
+ * coloration: { visibility: VisionMode.LIGHTING_VISIBILITY.DISABLED },
1458
+ * darkness: { visibility: VisionMode.LIGHTING_VISIBILITY.DISABLED }
1459
+ * },
1460
+ * vision: {
1461
+ * darkness: { adaptive: false },
1462
+ * defaults: { attenuation: 0, contrast: 0.2, saturation: -0.3, brightness: 1 },
1463
+ * background: { shader: WaveBackgroundVisionShader },
1464
+ * coloration: { shader: WaveColorationVisionShader }
1465
+ * }
1466
+ * }, {animated: true})
1467
+ * ```
1468
+ */
1469
+ tremorsense: VisionMode;
1470
+
1471
+ /**
1472
+ * Light Amplification
1473
+ * @defaultValue
1474
+ * ```typescript
1475
+ * new VisionMode({
1476
+ * id: "lightAmplification",
1477
+ * label: "VISION.ModeLightAmplification",
1478
+ * canvas: {
1479
+ * shader: AmplificationSamplerShader,
1480
+ * uniforms: { saturation: -0.5, tint: [0.38, 0.8, 0.38] }
1481
+ * },
1482
+ * lighting: {
1483
+ * background: {
1484
+ * visibility: VisionMode.LIGHTING_VISIBILITY.REQUIRED,
1485
+ * postProcessingModes: ["SATURATION", "EXPOSURE"],
1486
+ * uniforms: { saturation: -0.5, exposure: 1.5, tint: [0.38, 0.8, 0.38] }
1487
+ * },
1488
+ * illumination: {
1489
+ * postProcessingModes: ["SATURATION"],
1490
+ * uniforms: { saturation: -0.5 }
1491
+ * },
1492
+ * coloration: {
1493
+ * postProcessingModes: ["SATURATION", "EXPOSURE"],
1494
+ * uniforms: { saturation: -0.5, exposure: 1.5, tint: [0.38, 0.8, 0.38] }
1495
+ * },
1496
+ * levels: {
1497
+ * [VisionMode.LIGHTING_LEVELS.DIM]: VisionMode.LIGHTING_LEVELS.BRIGHT,
1498
+ * [VisionMode.LIGHTING_LEVELS.BRIGHT]: VisionMode.LIGHTING_LEVELS.BRIGHTEST
1499
+ * }
1500
+ * },
1501
+ * vision: {
1502
+ * darkness: { adaptive: false },
1503
+ * defaults: { attenuation: 0, contrast: 0, saturation: -0.5, brightness: 1 },
1504
+ * background: { shader: AmplificationBackgroundVisionShader }
1505
+ * }
1506
+ * })
1507
+ * ```
1508
+ */
1509
+ lightAmplification: VisionMode;
1510
+ };
1511
+
1512
+ /**
1513
+ * The set of DetectionMode definitions which are available to be used for visibility detection.
1514
+ */
1515
+ detectionModes: {
1516
+ [key: string]: DetectionMode;
1517
+
1518
+ lightPerception: DetectionModeLightPerception;
1519
+
1520
+ basicSight: DetectionModeBasicSight;
1521
+
1522
+ seeInvisibility: DetectionModeInvisibility;
1523
+
1524
+ senseInvisibility: DetectionModeInvisibility;
1525
+
1526
+ feelTremor: DetectionModeTremor;
1527
+
1528
+ seeAll: DetectionModeAll;
1529
+
1530
+ senseAll: DetectionModeAll;
1531
+ };
1532
+ };
1533
+
1534
+ /**
1535
+ * Configure the default Token text style so that it may be reused and overridden by modules
1536
+ * @defaultValue
1537
+ * ```typescript
1538
+ * new PIXI.TextStyle({
1539
+ * fontFamily: "Signika",
1540
+ * fontSize: 36,
1541
+ * fill: "#FFFFFF",
1542
+ * stroke: "#111111",
1543
+ * strokeThickness: 1,
1544
+ * dropShadow: true,
1545
+ * dropShadowColor: "#000000",
1546
+ * dropShadowBlur: 2,
1547
+ * dropShadowAngle: 0,
1548
+ * dropShadowDistance: 0,
1549
+ * align: "center",
1550
+ * wordWrap: false,
1551
+ * padding: 1
1552
+ * })
1553
+ * ```
1554
+ **/
1555
+ canvasTextStyle: PIXI.TextStyle;
1556
+
1557
+ /**
1558
+ * Available Weather Effects implementations
1559
+ */
1560
+ weatherEffects: {
1561
+ [key: string]: CONFIG.WeatherAmbienceConfiguration;
1562
+
1563
+ /**
1564
+ * @defaultValue
1565
+ * ```ts
1566
+ * {
1567
+ * id: "leaves",
1568
+ * label: "WEATHER.AutumnLeaves",
1569
+ * effects: [{
1570
+ * id: "leavesParticles",
1571
+ * effectClass: AutumnLeavesWeatherEffect
1572
+ * }]
1573
+ * }
1574
+ * ```
1575
+ */
1576
+ leaves: CONFIG.WeatherAmbienceConfiguration;
1577
+
1578
+ /**
1579
+ * @defaultValue
1580
+ * ```ts
1581
+ * {
1582
+ * id: "rain",
1583
+ * label: "WEATHER.Rain",
1584
+ * filter: {
1585
+ * enabled: false
1586
+ * },
1587
+ * effects: [{
1588
+ * id: "rainShader",
1589
+ * effectClass: WeatherShaderEffect,
1590
+ * shaderClass: RainShader,
1591
+ * blendMode: PIXI.BLEND_MODES.SCREEN,
1592
+ * config: {
1593
+ * opacity: 0.25,
1594
+ * tint: [0.7, 0.9, 1.0],
1595
+ * intensity: 1,
1596
+ * strength: 1,
1597
+ * rotation: 0.2618,
1598
+ * speed: 0.2,
1599
+ * }
1600
+ * }]
1601
+ * }
1602
+ * ```
1603
+ */
1604
+ rain: CONFIG.WeatherAmbienceConfiguration;
1605
+
1606
+ /**
1607
+ * @defaultValue
1608
+ * ```
1609
+ * {
1610
+ * id: "rainStorm",
1611
+ * label: "WEATHER.RainStorm",
1612
+ * filter: {
1613
+ * enabled: false
1614
+ * },
1615
+ * effects: [{
1616
+ * id: "fogShader",
1617
+ * effectClass: WeatherShaderEffect,
1618
+ * shaderClass: FogShader,
1619
+ * blendMode: PIXI.BLEND_MODES.SCREEN,
1620
+ * performanceLevel: 2,
1621
+ * config: {
1622
+ * slope: 1.5,
1623
+ * intensity: 0.050,
1624
+ * speed: -55.0,
1625
+ * scale: 25,
1626
+ * }
1627
+ * },
1628
+ * {
1629
+ * id: "rainShader",
1630
+ * effectClass: WeatherShaderEffect,
1631
+ * shaderClass: RainShader,
1632
+ * blendMode: PIXI.BLEND_MODES.SCREEN,
1633
+ * config: {
1634
+ * opacity: 0.45,
1635
+ * tint: [0.7, 0.9, 1.0],
1636
+ * intensity: 1.5,
1637
+ * strength: 1.5,
1638
+ * rotation: 0.5236,
1639
+ * speed: 0.30,
1640
+ * }
1641
+ * }]
1642
+ * }
1643
+ * ```
1644
+ */
1645
+ rainStorm: CONFIG.WeatherAmbienceConfiguration;
1646
+
1647
+ /**
1648
+ * @defaultValue
1649
+ * ```
1650
+ * {
1651
+ * id: "fog",
1652
+ * label: "WEATHER.Fog",
1653
+ * filter: {
1654
+ * enabled: false
1655
+ * },
1656
+ * effects: [{
1657
+ * id: "fogShader",
1658
+ * effectClass: WeatherShaderEffect,
1659
+ * shaderClass: FogShader,
1660
+ * blendMode: PIXI.BLEND_MODES.SCREEN,
1661
+ * config: {
1662
+ * slope: 0.45,
1663
+ * intensity: 0.4,
1664
+ * speed: 0.4,
1665
+ * }
1666
+ * }]
1667
+ * }
1668
+ * ```
1669
+ */
1670
+ fog: CONFIG.WeatherAmbienceConfiguration;
1671
+
1672
+ /**
1673
+ * @defaultValue
1674
+ * ```
1675
+ * {
1676
+ * id: "snow",
1677
+ * label: "WEATHER.Snow",
1678
+ * filter: {
1679
+ * enabled: false
1680
+ * },
1681
+ * effects: [{
1682
+ * id: "snowShader",
1683
+ * effectClass: WeatherShaderEffect,
1684
+ * shaderClass: SnowShader,
1685
+ * blendMode: PIXI.BLEND_MODES.SCREEN,
1686
+ * config: {
1687
+ * tint: [0.85, 0.95, 1],
1688
+ * direction: 0.5,
1689
+ * speed: 2,
1690
+ * scale: 2.5,
1691
+ * }
1692
+ * }]
1693
+ * }
1694
+ * ```
1695
+ * */
1696
+ snow: CONFIG.WeatherAmbienceConfiguration;
1697
+
1698
+ /**
1699
+ * @defaultValue
1700
+ * ```
1701
+ * {
1702
+ * id: "blizzard",
1703
+ * label: "WEATHER.Blizzard",
1704
+ * filter: {
1705
+ * enabled: false
1706
+ * },
1707
+ * effects: [{
1708
+ * id: "snowShader",
1709
+ * effectClass: WeatherShaderEffect,
1710
+ * shaderClass: SnowShader,
1711
+ * blendMode: PIXI.BLEND_MODES.SCREEN,
1712
+ * config: {
1713
+ * tint: [0.95, 1, 1],
1714
+ * direction: 0.80,
1715
+ * speed: 8,
1716
+ * scale: 2.5,
1717
+ * }
1718
+ * },
1719
+ * {
1720
+ * id: "fogShader",
1721
+ * effectClass: WeatherShaderEffect,
1722
+ * shaderClass: FogShader,
1723
+ * blendMode: PIXI.BLEND_MODES.SCREEN,
1724
+ * performanceLevel: 2,
1725
+ * config: {
1726
+ * slope: 1.0,
1727
+ * intensity: 0.15,
1728
+ * speed: -4.0,
1729
+ * }
1730
+ * }]
1731
+ * }
1732
+ * ```
1733
+ */
1734
+ blizzard: CONFIG.WeatherAmbienceConfiguration;
1735
+ };
1736
+
1737
+ /**
1738
+ * The control icons used for rendering common HUD operations
1739
+ */
1740
+ controlIcons: {
1741
+ /** @defaultValue `"icons/svg/combat.svg"` */
1742
+ combat: string;
1743
+
1744
+ /** @defaultValue `"icons/svg/cowled.svg"` */
1745
+ visibility: string;
1746
+
1747
+ /** @defaultValue `"icons/svg/aura.svg"` */
1748
+ effects: string;
1749
+
1750
+ /** @defaultValue `"icons/svg/padlock.svg"` */
1751
+ lock: string;
1752
+
1753
+ /** @defaultValue `"icons/svg/up.svg"` */
1754
+ up: string;
1755
+
1756
+ /** @defaultValue `"icons/svg/down.svg"` */
1757
+ down: string;
1758
+
1759
+ /** @defaultValue `"icons/svg/skull.svg"` */
1760
+ defeated: string;
1761
+
1762
+ /** @defaultValue `"icons/svg/light.svg"` */
1763
+ light: string;
1764
+
1765
+ /** @defaultValue `"icons/svg/light-off.svg"` */
1766
+ lightOff: string;
1767
+
1768
+ /** @defaultValue `"icons/svg/explosion.svg"` */
1769
+ template: string;
1770
+
1771
+ /** @defaultValue `"icons/svg/sound.svg"` */
1772
+ sound: string;
1773
+
1774
+ /** @defaultValue `"icons/svg/sound-off.svg"` */
1775
+ soundOff: string;
1776
+
1777
+ /** @defaultValue `"icons/svg/door-closed-outline.svg"` */
1778
+ doorClosed: string;
1779
+
1780
+ /** @defaultValue `"icons/svg/door-open-outline.svg"` */
1781
+ doorOpen: string;
1782
+
1783
+ /** @defaultValue `"icons/svg/door-secret-outline.svg"` */
1784
+ doorSecret: string;
1785
+
1786
+ /** @defaultValue `"icons/svg/door-locked-outline.svg"` */
1787
+ doorLocked: string;
1788
+
1789
+ /** @defaultValue `"icons/svg/wall-direction.svg"` */
1790
+ wallDirection: string;
1791
+ } & Record<string, string>;
1792
+
1793
+ /**
1794
+ * A collection of fonts to load either from the user's local system, or remotely.
1795
+ * @defaultValue
1796
+ * ```typescript
1797
+ * {
1798
+ * Arial: { editor: true; fonts: [] };
1799
+ * Amiri: {
1800
+ * editor: true,
1801
+ * fonts: [
1802
+ * {urls: ["fonts/amiri/amiri-regular.woff2"]},
1803
+ * {urls: ["fonts/amiri/amiri-bold.woff2"], weight: 700}
1804
+ * ]
1805
+ * },
1806
+ * "Bruno Ace": {editor: true, fonts: [
1807
+ * {urls: ["fonts/bruno-ace/bruno-ace.woff2"]}
1808
+ * ]},
1809
+ * Courier: { editor: true; fonts: [] };
1810
+ * "Courier New": { editor: true; fonts: [] };
1811
+ * "Modesto Condensed": {
1812
+ * editor: true;
1813
+ * fonts: [
1814
+ * { urls: ["fonts/modesto-condensed/modesto-condensed.woff2"] },
1815
+ * { urls: ["fonts/modesto-condensed/modesto-condensed-bold.woff2"]; weight: 700 }
1816
+ * ];
1817
+ * };
1818
+ * Signika: {
1819
+ * editor: true;
1820
+ * fonts: [
1821
+ * { urls: ["fonts/signika/signika-regular.woff2"] },
1822
+ * { urls: ["fonts/signika/signika-bold.woff2"]; weight: 700 }
1823
+ * ];
1824
+ * };
1825
+ * Times: { editor: true; fonts: [] };
1826
+ * "Times New Roman": { editor: true; fonts: [] };
1827
+ * }
1828
+ * ```
1829
+ */
1830
+ fontDefinitions: Record<string, CONFIG.Font.FamilyDefinition>;
1831
+
1832
+ /**
1833
+ * The default font family used for text labels on the PIXI Canvas
1834
+ * @defaultValue `"Signika"`
1835
+ */
1836
+ defaultFontFamily: string;
1837
+
1838
+ /**
1839
+ * The array of status effect icons which can be applied to an Actor
1840
+ * @defaultValue
1841
+ * ```js
1842
+ * [
1843
+ * {
1844
+ * id: "dead";
1845
+ * name: "EFFECT.StatusDead";
1846
+ * img: "icons/svg/skull.svg";
1847
+ * },
1848
+ * {
1849
+ * id: "unconscious";
1850
+ * name: "EFFECT.StatusUnconscious";
1851
+ * img: "icons/svg/unconscious.svg";
1852
+ * },
1853
+ * {
1854
+ * id: "sleep";
1855
+ * name: "EFFECT.StatusAsleep";
1856
+ * img: "icons/svg/sleep.svg";
1857
+ * },
1858
+ * {
1859
+ * id: "stun";
1860
+ * name: "EFFECT.StatusStunned";
1861
+ * img: "icons/svg/daze.svg";
1862
+ * },
1863
+ * {
1864
+ * id: "prone";
1865
+ * name: "EFFECT.StatusProne";
1866
+ * img: "icons/svg/falling.svg";
1867
+ * },
1868
+ * {
1869
+ * id: "restrain";
1870
+ * name: "EFFECT.StatusRestrained";
1871
+ * img: "icons/svg/net.svg";
1872
+ * },
1873
+ * {
1874
+ * id: "paralysis";
1875
+ * name: "EFFECT.StatusParalysis";
1876
+ * img: "icons/svg/paralysis.svg";
1877
+ * },
1878
+ * {
1879
+ * id: "fly";
1880
+ * name: "EFFECT.StatusFlying";
1881
+ * img: "icons/svg/wing.svg";
1882
+ * },
1883
+ * {
1884
+ * id: "blind";
1885
+ * name: "EFFECT.StatusBlind";
1886
+ * img: "icons/svg/blind.svg";
1887
+ * },
1888
+ * {
1889
+ * id: "deaf";
1890
+ * name: "EFFECT.StatusDeaf";
1891
+ * img: "icons/svg/deaf.svg";
1892
+ * },
1893
+ * {
1894
+ * id: "silence";
1895
+ * name: "EFFECT.StatusSilenced";
1896
+ * img: "icons/svg/silenced.svg";
1897
+ * },
1898
+ * {
1899
+ * id: "fear";
1900
+ * name: "EFFECT.StatusFear";
1901
+ * img: "icons/svg/terror.svg";
1902
+ * },
1903
+ * {
1904
+ * id: "burning";
1905
+ * name: "EFFECT.StatusBurning";
1906
+ * img: "icons/svg/fire.svg";
1907
+ * },
1908
+ * {
1909
+ * id: "frozen";
1910
+ * name: "EFFECT.StatusFrozen";
1911
+ * img: "icons/svg/frozen.svg";
1912
+ * },
1913
+ * {
1914
+ * id: "shock";
1915
+ * name: "EFFECT.StatusShocked";
1916
+ * img: "icons/svg/lightning.svg";
1917
+ * },
1918
+ * {
1919
+ * id: "corrode";
1920
+ * name: "EFFECT.StatusCorrode";
1921
+ * img: "icons/svg/acid.svg";
1922
+ * },
1923
+ * {
1924
+ * id: "bleeding";
1925
+ * name: "EFFECT.StatusBleeding";
1926
+ * img: "icons/svg/blood.svg";
1927
+ * },
1928
+ * {
1929
+ * id: "disease";
1930
+ * name: "EFFECT.StatusDisease";
1931
+ * img: "icons/svg/biohazard.svg";
1932
+ * },
1933
+ * {
1934
+ * id: "poison";
1935
+ * name: "EFFECT.StatusPoison";
1936
+ * img: "icons/svg/poison.svg";
1937
+ * },
1938
+ * {
1939
+ * id: "curse";
1940
+ * name: "EFFECT.StatusCursed";
1941
+ * img: "icons/svg/sun.svg";
1942
+ * },
1943
+ * {
1944
+ * id: "regen";
1945
+ * name: "EFFECT.StatusRegen";
1946
+ * img: "icons/svg/regen.svg";
1947
+ * },
1948
+ * {
1949
+ * id: "degen";
1950
+ * name: "EFFECT.StatusDegen";
1951
+ * img: "icons/svg/degen.svg";
1952
+ * },
1953
+ * {
1954
+ * id: "hover";
1955
+ * name: "EFFECT.StatusHover";
1956
+ * img: "icons/svg/wingfoot.svg";
1957
+ * },
1958
+ * {
1959
+ * id: "burrow";
1960
+ * name: "EFFECT.StatusBurrow";
1961
+ * img: "icons/svg/mole.svg";
1962
+ * },
1963
+ * {
1964
+ * id: "upgrade";
1965
+ * name: "EFFECT.StatusUpgrade";
1966
+ * img: "icons/svg/upgrade.svg";
1967
+ * },
1968
+ * {
1969
+ * id: "downgrade";
1970
+ * name: "EFFECT.StatusDowngrade";
1971
+ * img: "icons/svg/downgrade.svg";
1972
+ * },
1973
+ * {
1974
+ * id: "invisible",
1975
+ * name: "EFFECT.StatusInvisible",
1976
+ * img: "icons/svg/invisible.svg"
1977
+ * },
1978
+ * {
1979
+ * id: "target";
1980
+ * name: "EFFECT.StatusTarget";
1981
+ * img: "icons/svg/target.svg";
1982
+ * },
1983
+ * {
1984
+ * id: "eye";
1985
+ * name: "EFFECT.StatusMarked";
1986
+ * img: "icons/svg/eye.svg";
1987
+ * },
1988
+ * {
1989
+ * id: "bless";
1990
+ * name: "EFFECT.StatusBlessed";
1991
+ * img: "icons/svg/angel.svg";
1992
+ * },
1993
+ * {
1994
+ * id: "fireShield";
1995
+ * name: "EFFECT.StatusFireShield";
1996
+ * img: "icons/svg/fire-shield.svg";
1997
+ * },
1998
+ * {
1999
+ * id: "coldShield";
2000
+ * name: "EFFECT.StatusIceShield";
2001
+ * img: "icons/svg/ice-shield.svg";
2002
+ * },
2003
+ * {
2004
+ * id: "magicShield";
2005
+ * name: "EFFECT.StatusMagicShield";
2006
+ * img: "icons/svg/mage-shield.svg";
2007
+ * },
2008
+ * {
2009
+ * id: "holyShield";
2010
+ * name: "EFFECT.StatusHolyShield";
2011
+ * img: "icons/svg/holy-shield.svg";
2012
+ * }
2013
+ * ]
2014
+ * ```
2015
+ */
2016
+ statusEffects: CONFIG.StatusEffect[];
2017
+
2018
+ /**
2019
+ * A mapping of status effect IDs which provide some additional mechanical integration.
2020
+ * @defaultValue `{ DEFEATED: "dead", INVISIBLE: "invisible", BLIND: "blind", BURROW: "burrow", HOVER: "hover", FLY: "fly" }`
2021
+ */
2022
+ specialStatusEffects: HandleEmptyObject<CONFIG.SpecialStatusEffects, CONFIG.DefaultSpecialStatusEffects>;
2023
+
2024
+ /**
2025
+ * A mapping of core audio effects used which can be replaced by systems or mods
2026
+ */
2027
+ sounds: {
2028
+ /** @defaultValue `"sounds/dice.wav"` */
2029
+ dice: string;
2030
+
2031
+ /** @defaultValue `"sounds/lock.wav"` */
2032
+ lock: string;
2033
+
2034
+ /** @defaultValue `"sounds/notify.wav"` */
2035
+ notification: string;
2036
+
2037
+ /** @defaultValue `"sounds/drums.wav"` */
2038
+ combat: string;
2039
+ };
2040
+
2041
+ /**
2042
+ * Define the set of supported languages for localization
2043
+ * @defaultValue `{ en: "English" }`
2044
+ */
2045
+ supportedLanguages: {
2046
+ en: string;
2047
+ } & Record<string, string>;
2048
+
2049
+ /**
2050
+ * Localization constants.
2051
+ */
2052
+ i18n: {
2053
+ /**
2054
+ * In operations involving the document index, search prefixes must have at least this many characters to avoid too
2055
+ * large a search space. Languages that have hundreds or thousands of characters will typically have very shallow
2056
+ * search trees, so it should be safe to lower this number in those cases.
2057
+ * @defaultValue `4`
2058
+ */
2059
+ searchMinimumCharacterLength: number;
2060
+ };
2061
+
2062
+ /**
2063
+ * Configuration for time tracking
2064
+ */
2065
+ time: {
2066
+ /** @defaultValue `0` */
2067
+ turnTime: number;
2068
+
2069
+ /** @defaultValue `0` */
2070
+ roundTime: number;
2071
+ };
2072
+
2073
+ /**
2074
+ * Configuration for the ActiveEffect embedded document type
2075
+ */
2076
+ ActiveEffect: {
2077
+ /** @defaultValue `ActiveEffect` */
2078
+ documentClass: Document.ConfiguredClassForName<"ActiveEffect">;
2079
+
2080
+ /**
2081
+ * @defaultValue `{}`
2082
+ * @remarks `TypeDataModel` is preferred to `DataModel` per core Foundry team
2083
+ */
2084
+ dataModels: Record<string, typeof DataModel<any, ChatMessage>>;
2085
+
2086
+ /**
2087
+ * @remarks Added by `DocumentSheetConfig._registerDefaultSheets` in `tail.js`
2088
+ */
2089
+ sheetClasses: Record<foundry.documents.BaseActiveEffect.TypeNames, Record<string, SheetClassConfig>>;
2090
+
2091
+ /**
2092
+ * @defaultValue `{}`
2093
+ * @remarks Initialized by `Localization#initialize`, is an empty object until `i18nInit`
2094
+ */
2095
+ typeLabels: Record<foundry.documents.BaseActiveEffect.TypeNames, string>;
2096
+
2097
+ /** @defaultValue `{}` */
2098
+ typeIcons: Record<string, string>;
2099
+
2100
+ /**
2101
+ * If true, Active Effects on Items will be copied to the Actor when the Item is created on the Actor if the
2102
+ * Active Effect's transfer property is true, and will be deleted when that Item is deleted from the Actor.
2103
+ * If false, Active Effects are never copied to the Actor, but will still apply to the Actor from within the Item
2104
+ * if the transfer property on the Active Effect is true.
2105
+ * @remarks Foundry states "\@deprecated since v11" but this is misleading for actual use
2106
+ */
2107
+ legacyTransferral: boolean;
2108
+ };
2109
+
2110
+ /**
2111
+ * Configuration for the ActorDelta embedded document type.
2112
+ */
2113
+ ActorDelta: {
2114
+ /** @defaultValue `ActorDelta` */
2115
+ documentClass: Document.ConfiguredClassForName<"ActorDelta">;
2116
+
2117
+ /**
2118
+ * @remarks Added by `DocumentSheetConfig._registerDefaultSheets` in `tail.js`
2119
+ */
2120
+ sheetClasses: Record<"base", Record<string, SheetClassConfig>>;
2121
+
2122
+ /**
2123
+ * @remarks Initialized by `Localization#initialize`, is undefined until `i18nInit`
2124
+ */
2125
+ typeLabels?: Record<"base", string>;
2126
+ };
2127
+
2128
+ /**
2129
+ * Configuration for the Card embedded Document type
2130
+ */
2131
+ Card: {
2132
+ /** @defaultValue `Card` */
2133
+ documentClass: Document.ConfiguredClassForName<"Card">;
2134
+
2135
+ /**
2136
+ * @defaultValue `{}`
2137
+ * @remarks `TypeDataModel` is preferred to `DataModel` per core Foundry team
2138
+ */
2139
+ dataModels: Record<string, typeof DataModel<any, Card>>;
2140
+
2141
+ /**
2142
+ * @remarks Added by `DocumentSheetConfig._registerDefaultSheets` in `tail.js`
2143
+ */
2144
+ sheetClasses: Record<foundry.documents.BaseCard.TypeNames, Record<string, SheetClassConfig>>;
2145
+
2146
+ /**
2147
+ * @defaultValue `{}`
2148
+ * @remarks Initialized by `Localization#initialize`, is an empty object until `i18nInit`
2149
+ */
2150
+ typeLabels: Record<foundry.documents.BaseCard.TypeNames, string>;
2151
+
2152
+ /** @defaultValue `{}` */
2153
+ typeIcons: Record<string, string>;
2154
+ };
2155
+
2156
+ /**
2157
+ * Configuration for the TableResult embedded document type
2158
+ */
2159
+ TableResult: {
2160
+ /** @defaultValue `TableResult` */
2161
+ documentClass: Document.ConfiguredClassForName<"TableResult">;
2162
+
2163
+ /**
2164
+ * @remarks Added by `DocumentSheetConfig._registerDefaultSheets` in `tail.js`
2165
+ */
2166
+ sheetClasses: Record<foundry.documents.BaseTableResult.TypeNames, Record<string, SheetClassConfig>>;
2167
+
2168
+ /**
2169
+ * @remarks Initialized by `Localization#initialize`, is undefined until `i18nInit`
2170
+ */
2171
+ typeLabels?: Record<foundry.documents.BaseTableResult.TypeNames, string>;
2172
+ };
2173
+
2174
+ JournalEntryPage: {
2175
+ /** @defaultValue `JournalEntryPage` */
2176
+ documentClass: Document.ConfiguredClassForName<"JournalEntryPage">;
2177
+
2178
+ /**
2179
+ * @defaultValue `{}`
2180
+ * @remarks `TypeDataModel` is preferred to `DataModel` per core Foundry team
2181
+ */
2182
+ dataModels: Record<string, typeof DataModel<any, JournalEntryPage>>;
2183
+
2184
+ /**
2185
+ * @remarks Added by `DocumentSheetConfig._registerDefaultSheets` in `tail.js`
2186
+ */
2187
+ sheetClasses: Record<foundry.documents.BaseJournalEntryPage.TypeNames, Record<string, SheetClassConfig>>;
2188
+
2189
+ /**
2190
+ * @defaultValue `{}`
2191
+ * @remarks Initialized by `Localization#initialize`, is an empty object until `i18nInit`
2192
+ */
2193
+ typeLabels: Record<foundry.documents.BaseJournalEntryPage.TypeNames, string>;
2194
+
2195
+ typeIcons: {
2196
+ [type: string]: string;
2197
+
2198
+ /** @defaultValue `"fas fa-file-image"` */
2199
+ image: string;
2200
+ /** @defaultValue `"fas fa-file-pdf"` */
2201
+ pdf: string;
2202
+ /** @defaultValue `"fas fa-file-lines"` */
2203
+ text: string;
2204
+ /** @defaultValue `"fas fa-file-video"` */
2205
+ video: string;
2206
+ };
2207
+
2208
+ /** @defaultValue `"text"` */
2209
+ defaultType: string;
2210
+
2211
+ /** @defaultValue `"fas fa-book-open"` */
2212
+ sidebarIcon: string;
2213
+ };
2214
+
2215
+ /**
2216
+ * Configuration for the ActiveEffect embedded document type
2217
+ */
2218
+ PlaylistSound: {
2219
+ /** @defaultValue `PlaylistSound` */
2220
+ documentClass: Document.ConfiguredClassForName<"PlaylistSound">;
2221
+
2222
+ /**
2223
+ * @remarks Added by `DocumentSheetConfig._registerDefaultSheets` in `tail.js`
2224
+ */
2225
+ sheetClasses: Record<"base", Record<string, SheetClassConfig>>;
2226
+
2227
+ /**
2228
+ * @remarks Initialized by `Localization#initialize`, is undefined until `i18nInit`
2229
+ */
2230
+ typeLabels?: Record<"base", string>;
2231
+ };
2232
+
2233
+ /**
2234
+ * Configuration for the AmbientLight embedded document type and its representation on the game Canvas
2235
+ */
2236
+ AmbientLight: {
2237
+ /** @defaultValue `AmbientLightDocument` */
2238
+ documentClass: Document.ConfiguredClassForName<"AmbientLight">;
2239
+
2240
+ /**
2241
+ * @remarks Added by `DocumentSheetConfig._registerDefaultSheets` in `tail.js`
2242
+ */
2243
+ sheetClasses: Record<"base", Record<string, SheetClassConfig>>;
2244
+
2245
+ /**
2246
+ * @remarks Initialized by `Localization#initialize`, is undefined until `i18nInit`
2247
+ */
2248
+ typeLabels?: Record<"base", string>;
2249
+
2250
+ /** @defaultValue `AmbientLightDocument` */
2251
+ objectClass: ConfiguredObjectClassOrDefault<typeof AmbientLight>;
2252
+
2253
+ /** @defaultValue `LightingLayer` */
2254
+ layerClass: typeof LightingLayer;
2255
+ };
2256
+
2257
+ /**
2258
+ * Configuration for the AmbientSound embedded document type and its representation on the game Canvas
2259
+ */
2260
+ AmbientSound: {
2261
+ /** @defaultValue `AmbientSoundDocument` */
2262
+ documentClass: Document.ConfiguredClassForName<"AmbientSound">;
2263
+
2264
+ /**
2265
+ * @remarks Added by `DocumentSheetConfig._registerDefaultSheets` in `tail.js`
2266
+ */
2267
+ sheetClasses: Record<"base", Record<string, SheetClassConfig>>;
2268
+
2269
+ /**
2270
+ * @remarks Initialized by `Localization#initialize`, is undefined until `i18nInit`
2271
+ */
2272
+ typeLabels?: Record<"base", string>;
2273
+
2274
+ /** @defaultValue `AmbientSound` */
2275
+ objectClass: ConfiguredObjectClassOrDefault<typeof AmbientSound>;
2276
+
2277
+ /** @defaultValue `SoundsLayer` */
2278
+ layerClass: typeof SoundsLayer;
2279
+ };
2280
+
2281
+ /**
2282
+ * Configuration for the Combatant embedded document type within a Combat document
2283
+ */
2284
+ Combatant: {
2285
+ /** @defaultValue `Combatant` */
2286
+ documentClass: Document.ConfiguredClassForName<"Combatant">;
2287
+
2288
+ /**
2289
+ * @defaultValue `{}`
2290
+ * @remarks `TypeDataModel` is preferred to `DataModel` per core Foundry team
2291
+ */
2292
+ dataModels: Record<string, typeof DataModel<any, ChatMessage>>;
2293
+
2294
+ /**
2295
+ * @remarks Added by `DocumentSheetConfig._registerDefaultSheets` in `tail.js`
2296
+ */
2297
+ sheetClasses: Record<foundry.documents.BaseCombatant.TypeNames, Record<string, SheetClassConfig>>;
2298
+
2299
+ /**
2300
+ * @defaultValue `{}`
2301
+ * @remarks Initialized by `Localization#initialize`, is an empty object until `i18nInit`
2302
+ */
2303
+ typeLabels: Record<foundry.documents.BaseCombatant.TypeNames, string>;
2304
+
2305
+ /** @defaultValue `{}` */
2306
+ typeIcons: Record<string, string>;
2307
+ };
2308
+
2309
+ /**
2310
+ * Configuration for the Drawing embedded document type and its representation on the game Canvas
2311
+ */
2312
+ Drawing: {
2313
+ /** @defaultValue `DrawingDocument` */
2314
+ documentClass: Document.ConfiguredClassForName<"Drawing">;
2315
+
2316
+ /**
2317
+ * @remarks Added by `DocumentSheetConfig._registerDefaultSheets` in `tail.js`
2318
+ */
2319
+ sheetClasses: Record<"base", Record<string, SheetClassConfig>>;
2320
+
2321
+ /**
2322
+ * @remarks Initialized by `Localization#initialize`, is undefined until `i18nInit`
2323
+ */
2324
+ typeLabels?: Record<"base", string>;
2325
+
2326
+ /** @defaultValue `Drawing` */
2327
+ objectClass: ConfiguredObjectClassOrDefault<typeof Drawing>;
2328
+
2329
+ /** @defaultValue `DrawingsLayer` */
2330
+ layerClass: typeof DrawingsLayer;
2331
+
2332
+ /** @defaultValue `DrawingHUD` */
2333
+ hudClass: typeof DrawingHUD;
2334
+ };
2335
+
2336
+ /**
2337
+ * Configuration for the MeasuredTemplate embedded document type and its representation on the game Canvas
2338
+ */
2339
+ MeasuredTemplate: {
2340
+ defaults: {
2341
+ /** @defaultValue `53.13` */
2342
+ angle: number;
2343
+
2344
+ /** @defaultValue `1` */
2345
+ width: number;
2346
+ };
2347
+
2348
+ types: {
2349
+ /** @defaultValue `"Circle"` */
2350
+ circle: string;
2351
+
2352
+ /** @defaultValue `"Cone"` */
2353
+ cone: string;
2354
+
2355
+ /** @defaultValue `"Rectangle"` */
2356
+ rect: string;
2357
+
2358
+ /** @defaultValue `"Ray"` */
2359
+ ray: string;
2360
+ };
2361
+
2362
+ /** @defaultValue `MeasuredTemplateDocument` */
2363
+ documentClass: Document.ConfiguredClassForName<"MeasuredTemplate">;
2364
+
2365
+ /**
2366
+ * @remarks Added by `DocumentSheetConfig._registerDefaultSheets` in `tail.js`
2367
+ */
2368
+ sheetClasses: Record<"base", Record<string, SheetClassConfig>>;
2369
+
2370
+ /**
2371
+ * @remarks Initialized by `Localization#initialize`, is undefined until `i18nInit`
2372
+ */
2373
+ typeLabels?: Record<"base", string>;
2374
+
2375
+ /** @defaultValue `MeasuredTemplate` */
2376
+ objectClass: ConfiguredObjectClassOrDefault<typeof MeasuredTemplate>;
2377
+
2378
+ /** @defaultValue `TemplateLayer` */
2379
+ layerClass: typeof TemplateLayer;
2380
+ };
2381
+
2382
+ /**
2383
+ * Configuration for the Note embedded document type and its representation on the game Canvas
2384
+ */
2385
+ Note: {
2386
+ /** @defaultValue `NoteDocument` */
2387
+ documentClass: Document.ConfiguredClassForName<"Note">;
2388
+
2389
+ /**
2390
+ * @remarks Added by `DocumentSheetConfig._registerDefaultSheets` in `tail.js`
2391
+ */
2392
+ sheetClasses: Record<"base", Record<string, SheetClassConfig>>;
2393
+
2394
+ /**
2395
+ * @remarks Initialized by `Localization#initialize`, is undefined until `i18nInit`
2396
+ */
2397
+ typeLabels?: Record<"base", string>;
2398
+
2399
+ /** @defaultValue `Note` */
2400
+ objectClass: ConfiguredObjectClassOrDefault<typeof Note>;
2401
+
2402
+ /** @defaultValue `NotesLayer` */
2403
+ layerClass: typeof NotesLayer;
2404
+ };
2405
+
2406
+ // TODO: Regions
2407
+
2408
+ /**
2409
+ * Configuration for the Tile embedded document type and its representation on the game Canvas
2410
+ */
2411
+ Tile: {
2412
+ /** @defaultValue `TileDocument` */
2413
+ documentClass: Document.ConfiguredClassForName<"Tile">;
2414
+
2415
+ /**
2416
+ * @remarks Added by `DocumentSheetConfig._registerDefaultSheets` in `tail.js`
2417
+ */
2418
+ sheetClasses: Record<"base", Record<string, SheetClassConfig>>;
2419
+
2420
+ /**
2421
+ * @remarks Initialized by `Localization#initialize`, is undefined until `i18nInit`
2422
+ */
2423
+ typeLabels?: Record<"base", string>;
2424
+
2425
+ /** @defaultValue `Tile` */
2426
+ objectClass: ConfiguredObjectClassOrDefault<typeof Tile>;
2427
+
2428
+ /** @defaultValue `TilesLayer` */
2429
+ layerClass: typeof TilesLayer;
2430
+
2431
+ /** @defaultValue `TileHUD` */
2432
+ hudClass: typeof TileHUD;
2433
+ };
2434
+
2435
+ /**
2436
+ * Configuration for the Token embedded document type and its representation on the game Canvas
2437
+ */
2438
+ Token: {
2439
+ /** @defaultValue `TokenDocument` */
2440
+ documentClass: Document.ConfiguredClassForName<"Token">;
2441
+
2442
+ /**
2443
+ * @remarks Added by `DocumentSheetConfig._registerDefaultSheets` in `tail.js`
2444
+ */
2445
+ sheetClasses: Record<"base", Record<string, SheetClassConfig>>;
2446
+
2447
+ /**
2448
+ * @remarks Initialized by `Localization#initialize`, is undefined until `i18nInit`
2449
+ */
2450
+ typeLabels?: Record<"base", string>;
2451
+
2452
+ /** @defaultValue `Token` */
2453
+ objectClass: ConfiguredObjectClassOrDefault<typeof Token>;
2454
+
2455
+ /** @defaultValue `TokenLayer` */
2456
+ layerClass: typeof TokenLayer;
2457
+
2458
+ /** @defaultValue `TokenConfig` */
2459
+ prototypeSheetClass: typeof TokenConfig;
2460
+
2461
+ /** @defaultValue `TokenHUD` */
2462
+ hudClass: typeof TokenHUD;
2463
+
2464
+ /** @defaultValue `"TOKEN.Adjectives"` */
2465
+ adjectivesPrefix: string;
2466
+
2467
+ /**
2468
+ * @defaultValue `foundry.canvas.tokens.TokenRingConfig`
2469
+ * @remarks `"ring property is initialized in foundry.canvas.tokens.TokenRingConfig.initialize"`
2470
+ */
2471
+ ring?: foundry.canvas.tokens.TokenRingConfig;
2472
+ };
2473
+
2474
+ /**
2475
+ * Configuration for the Wall embedded document type and its representation on the game Canvas
2476
+ */
2477
+ Wall: {
2478
+ /** @defaultValue `WallDocument` */
2479
+ documentClass: Document.ConfiguredClassForName<"Wall">;
2480
+
2481
+ /**
2482
+ * @remarks Added by `DocumentSheetConfig._registerDefaultSheets` in `tail.js`
2483
+ */
2484
+ sheetClasses: Record<"base", Record<string, SheetClassConfig>>;
2485
+
2486
+ /**
2487
+ * @remarks Initialized by `Localization#initialize`, is undefined until `i18nInit`
2488
+ */
2489
+ typeLabels?: Record<"base", string>;
2490
+
2491
+ /** @defaultValue `Wall` */
2492
+ objectClass: ConfiguredObjectClassOrDefault<typeof Wall>;
2493
+
2494
+ /** @defaultValue `WallsLayer` */
2495
+ layerClass: typeof WallsLayer;
2496
+
2497
+ /** @defaultValue `1` */
2498
+ thresholdAttenuationMultiplier: number;
2499
+
2500
+ doorSounds: {
2501
+ [sound: string]: CONFIG.WallDoorSound;
2502
+
2503
+ /**
2504
+ * @defaultValue
2505
+ * ```ts
2506
+ * {
2507
+ * label: "WALLS.DoorSound.FuturisticFast",
2508
+ * close: "sounds/doors/futuristic/close-fast.ogg",
2509
+ * lock: "sounds/doors/futuristic/lock.ogg",
2510
+ * open: "sounds/doors/futuristic/open-fast.ogg",
2511
+ * test: "sounds/doors/futuristic/test.ogg",
2512
+ * unlock: "sounds/doors/futuristic/unlock.ogg"
2513
+ * }
2514
+ * ```
2515
+ */
2516
+ futuristicFast: CONFIG.WallDoorSound;
2517
+
2518
+ /**
2519
+ * @defaultValue
2520
+ * ```ts
2521
+ * {
2522
+ * label: "WALLS.DoorSound.FuturisticHydraulic",
2523
+ * close: "sounds/doors/futuristic/close-hydraulic.ogg",
2524
+ * lock: "sounds/doors/futuristic/lock.ogg",
2525
+ * open: "sounds/doors/futuristic/open-hydraulic.ogg",
2526
+ * test: "sounds/doors/futuristic/test.ogg",
2527
+ * unlock: "sounds/doors/futuristic/unlock.ogg"
2528
+ * }
2529
+ * ```
2530
+ */
2531
+ futuristicHydraulic: CONFIG.WallDoorSound;
2532
+
2533
+ /**
2534
+ * @defaultValue
2535
+ * ```ts
2536
+ * {
2537
+ * label: "WALLS.DoorSound.FuturisticForcefield",
2538
+ * close: "sounds/doors/futuristic/close-forcefield.ogg",
2539
+ * lock: "sounds/doors/futuristic/lock.ogg",
2540
+ * open: "sounds/doors/futuristic/open-forcefield.ogg",
2541
+ * test: "sounds/doors/futuristic/test-forcefield.ogg",
2542
+ * unlock: "sounds/doors/futuristic/unlock.ogg"
2543
+ * }
2544
+ * ```
2545
+ */
2546
+ futuristicForcefield: CONFIG.WallDoorSound;
2547
+
2548
+ /**
2549
+ * @defaultValue
2550
+ * ```ts
2551
+ * {
2552
+ * label: "WALLS.DoorSound.Industrial",
2553
+ * close: "sounds/doors/industrial/close.ogg",
2554
+ * lock: "sounds/doors/industrial/lock.ogg",
2555
+ * open: "sounds/doors/industrial/open.ogg",
2556
+ * test: "sounds/doors/industrial/test.ogg",
2557
+ * unlock: "sounds/doors/industrial/unlock.ogg"
2558
+ * }
2559
+ * ```
2560
+ */
2561
+ industrial: CONFIG.WallDoorSound;
2562
+
2563
+ /**
2564
+ * @defaultValue
2565
+ * ```ts
2566
+ * {
2567
+ * label: "WALLS.DoorSound.IndustrialCreaky",
2568
+ * close: "sounds/doors/industrial/close-creaky.ogg",
2569
+ * lock: "sounds/doors/industrial/lock.ogg",
2570
+ * open: "sounds/doors/industrial/open-creaky.ogg",
2571
+ * test: "sounds/doors/industrial/test.ogg",
2572
+ * unlock: "sounds/doors/industrial/unlock.ogg"
2573
+ * }
2574
+ * ```
2575
+ */
2576
+ industrialCreaky: CONFIG.WallDoorSound;
2577
+
2578
+ /**
2579
+ * @defaultValue
2580
+ * ```ts
2581
+ * {
2582
+ * label: "WALLS.DoorSound.Jail",
2583
+ * close: "sounds/doors/jail/close.ogg",
2584
+ * lock: "sounds/doors/jail/lock.ogg",
2585
+ * open: "sounds/doors/jail/open.ogg",
2586
+ * test: "sounds/doors/jail/test.ogg",
2587
+ * unlock: "sounds/doors/jail/unlock.ogg"
2588
+ * }
2589
+ * ```
2590
+ */
2591
+ jail: CONFIG.WallDoorSound;
2592
+
2593
+ /**
2594
+ * @defaultValue
2595
+ * ```ts
2596
+ * {
2597
+ * label: "WALLS.DoorSound.MagicDoor",
2598
+ * close: "sounds/doors/magic/door-close.ogg",
2599
+ * lock: "sounds/doors/magic/lock.ogg",
2600
+ * open: "sounds/doors/magic/door-open.ogg",
2601
+ * test: "sounds/doors/magic/test.ogg",
2602
+ * unlock: "sounds/doors/magic/unlock.ogg"
2603
+ * }
2604
+ * ```
2605
+ */
2606
+ magicDoor: CONFIG.WallDoorSound;
2607
+
2608
+ /**
2609
+ * @defaultValue
2610
+ * ```ts
2611
+ * {
2612
+ * label: "WALLS.DoorSound.MagicWall",
2613
+ * close: "sounds/doors/magic/wall-close.ogg",
2614
+ * lock: "sounds/doors/magic/lock.ogg",
2615
+ * open: "sounds/doors/magic/wall-open.ogg",
2616
+ * test: "sounds/doors/magic/test.ogg",
2617
+ * unlock: "sounds/doors/magic/unlock.ogg"
2618
+ * }
2619
+ * ```
2620
+ */
2621
+ magicWall: CONFIG.WallDoorSound;
2622
+
2623
+ /**
2624
+ * @defaultValue
2625
+ * ```ts
2626
+ * {
2627
+ * label: "WALLS.DoorSound.Metal",
2628
+ * close: "sounds/doors/metal/close.ogg",
2629
+ * lock: "sounds/doors/metal/lock.ogg",
2630
+ * open: "sounds/doors/metal/open.ogg",
2631
+ * test: "sounds/doors/metal/test.ogg",
2632
+ * unlock: "sounds/doors/metal/unlock.ogg"
2633
+ * }
2634
+ * ```
2635
+ */
2636
+ metal: CONFIG.WallDoorSound;
2637
+
2638
+ /**
2639
+ * @defaultValue
2640
+ * ```ts
2641
+ * {
2642
+ * label: "WALLS.DoorSound.SlidingMetal",
2643
+ * close: "sounds/doors/shutter/close.ogg",
2644
+ * lock: "sounds/doors/shutter/lock.ogg",
2645
+ * open: "sounds/doors/shutter/open.ogg",
2646
+ * test: "sounds/doors/shutter/test.ogg",
2647
+ * unlock: "sounds/doors/shutter/unlock.ogg"
2648
+ * }
2649
+ * ```
2650
+ */
2651
+ slidingMetal: CONFIG.WallDoorSound;
2652
+
2653
+ /**
2654
+ * @defaultValue
2655
+ * ```ts
2656
+ * {
2657
+ * label: "WALLS.DoorSound.SlidingModern",
2658
+ * close: "sounds/doors/sliding/close.ogg",
2659
+ * lock: "sounds/doors/sliding/lock.ogg",
2660
+ * open: "sounds/doors/sliding/open.ogg",
2661
+ * test: "sounds/doors/sliding/test.ogg",
2662
+ * unlock: "sounds/doors/sliding/unlock.ogg"
2663
+ * }
2664
+ * ```
2665
+ */
2666
+ slidingModern: CONFIG.WallDoorSound;
2667
+
2668
+ /**
2669
+ * @defaultValue
2670
+ * ```ts
2671
+ * {
2672
+ * label: "WALLS.DoorSound.SlidingWood",
2673
+ * close: "sounds/doors/sliding/close-wood.ogg",
2674
+ * lock: "sounds/doors/sliding/lock.ogg",
2675
+ * open: "sounds/doors/sliding/open-wood.ogg",
2676
+ * test: "sounds/doors/sliding/test.ogg",
2677
+ * unlock: "sounds/doors/sliding/unlock.ogg"
2678
+ * }
2679
+ * ```
2680
+ */
2681
+ slidingWood: CONFIG.WallDoorSound;
2682
+
2683
+ /**
2684
+ * @defaultValue
2685
+ * ```ts
2686
+ * {
2687
+ * label: "WALLS.DoorSound.StoneBasic",
2688
+ * close: "sounds/doors/stone/close.ogg",
2689
+ * lock: "sounds/doors/stone/lock.ogg",
2690
+ * open: "sounds/doors/stone/open.ogg",
2691
+ * test: "sounds/doors/stone/test.ogg",
2692
+ * unlock: "sounds/doors/stone/unlock.ogg"
2693
+ * }
2694
+ * ```
2695
+ */
2696
+ stoneBasic: CONFIG.WallDoorSound;
2697
+
2698
+ /**
2699
+ * @defaultValue
2700
+ * ```ts
2701
+ * {
2702
+ * label: "WALLS.DoorSound.StoneRocky",
2703
+ * close: "sounds/doors/stone/close-rocky.ogg",
2704
+ * lock: "sounds/doors/stone/lock.ogg",
2705
+ * open: "sounds/doors/stone/open-rocky.ogg",
2706
+ * test: "sounds/doors/stone/test.ogg",
2707
+ * unlock: "sounds/doors/stone/unlock.ogg"
2708
+ * }
2709
+ * ```
2710
+ */
2711
+ stoneRocky: CONFIG.WallDoorSound;
2712
+
2713
+ /**
2714
+ * @defaultValue
2715
+ * ```ts
2716
+ * {
2717
+ * label: "WALLS.DoorSound.StoneSandy",
2718
+ * close: "sounds/doors/stone/close-sandy.ogg",
2719
+ * lock: "sounds/doors/stone/lock.ogg",
2720
+ * open: "sounds/doors/stone/open-sandy.ogg",
2721
+ * test: "sounds/doors/stone/test.ogg",
2722
+ * unlock: "sounds/doors/stone/unlock.ogg"
2723
+ * }
2724
+ * ```
2725
+ */
2726
+ stoneSandy: CONFIG.WallDoorSound;
2727
+
2728
+ /**
2729
+ * @defaultValue
2730
+ * ```ts
2731
+ * {
2732
+ * label: "WALLS.DoorSound.WoodBasic",
2733
+ * close: "sounds/doors/wood/close.ogg",
2734
+ * lock: "sounds/doors/wood/lock.ogg",
2735
+ * open: "sounds/doors/wood/open.ogg",
2736
+ * test: "sounds/doors/wood/test.ogg",
2737
+ * unlock: "sounds/doors/wood/unlock.ogg"
2738
+ * }
2739
+ * ```
2740
+ */
2741
+ woodBasic: CONFIG.WallDoorSound;
2742
+
2743
+ /**
2744
+ * @defaultValue
2745
+ * ```ts
2746
+ * {
2747
+ * label: "WALLS.DoorSound.WoodCreaky",
2748
+ * close: "sounds/doors/wood/close-creaky.ogg",
2749
+ * lock: "sounds/doors/wood/lock.ogg",
2750
+ * open: "sounds/doors/wood/open-creaky.ogg",
2751
+ * test: "sounds/doors/wood/test.ogg",
2752
+ * unlock: "sounds/doors/wood/unlock.ogg"
2753
+ * }
2754
+ * ```
2755
+ */
2756
+ woodCreaky: CONFIG.WallDoorSound;
2757
+
2758
+ /**
2759
+ * @defaultValue
2760
+ * ```ts
2761
+ * {
2762
+ * label: "WALLS.DoorSound.WoodHeavy",
2763
+ * close: "sounds/doors/wood/close-heavy.ogg",
2764
+ * lock: "sounds/doors/wood/lock.ogg",
2765
+ * open: "sounds/doors/wood/open-heavy.ogg",
2766
+ * test: "sounds/doors/wood/test.ogg",
2767
+ * unlock: "sounds/doors/wood/unlock.ogg"
2768
+ * }
2769
+ * ```
2770
+ */
2771
+ woodHeavy: CONFIG.WallDoorSound;
2772
+ };
2773
+ };
2774
+
2775
+ /**
2776
+ * An enumeration of sound effects which can be applied to Sound instances.
2777
+ */
2778
+ soundEffects: {
2779
+ lowPass: { label: string; effectClass: typeof AudioNode };
2780
+ highpass: { label: string; effectClass: typeof AudioNode };
2781
+ reverb: { label: string; effectClass: typeof AudioNode };
2782
+ };
2783
+
2784
+ /**
2785
+ * Default configuration options for TinyMCE editors
2786
+ */
2787
+ TinyMCE: tinyMCE.RawEditorOptions;
2788
+
2789
+ /**
2790
+ * Rich text editing configuration.
2791
+ */
2792
+ TextEditor: {
2793
+ /**
2794
+ * A collection of custom enrichers that can be applied to text content, allowing for the matching and handling of
2795
+ * custom patterns.
2796
+ */
2797
+ enrichers: TextEditor.EnricherConfig[];
2798
+ };
2799
+
2800
+ /**
2801
+ * Configuration for the WebRTC implementation class
2802
+ */
2803
+ WebRTC: {
2804
+ /** @defaultValue `SimplePeerAVClient` */
2805
+ clientClass: GetKey<WebRTCConfig, "clientClass", typeof SimplePeerAVClient>;
2806
+
2807
+ /** @defaultValue `50` */
2808
+ detectPeerVolumeInterval: number;
2809
+
2810
+ /** @defaultValue `20` */
2811
+ detectSelfVolumeInterval: number;
2812
+
2813
+ /** @defaultValue `25` */
2814
+ emitVolumeInterval: number;
2815
+
2816
+ /** @defaultValue `2` */
2817
+ speakingThresholdEvents: number;
2818
+
2819
+ /** @defaultValue `10` */
2820
+ speakingHistoryLength: number;
2821
+
2822
+ /** @defaultValue `8` */
2823
+ connectedUserPollIntervalS: number;
2824
+ };
2825
+
2826
+ /**
2827
+ * Configure the Application classes used to render various core UI elements in the application
2828
+ */
2829
+ ui: CONFIG.UI;
2830
+ }
2831
+
2832
+ namespace CONFIG {
2833
+ interface UI {
2834
+ /** @defaultValue `MainMenu` */
2835
+ menu: typeof MainMenu;
2836
+
2837
+ /** @defaultValue `Sidebar` */
2838
+ sidebar: typeof Sidebar;
2839
+
2840
+ /** @defaultValue `Pause` */
2841
+ pause: typeof Pause;
2842
+
2843
+ /** @defaultValue `SceneNavigation` */
2844
+ nav: typeof SceneNavigation;
2845
+
2846
+ /** @defaultValue `Notifications` */
2847
+ notifications: typeof Notifications;
2848
+
2849
+ /** @defaultValue `ActorDirectory` */
2850
+ actors: typeof ActorDirectory;
2851
+
2852
+ /** @defaultValue `CardsDirectory` */
2853
+ cards: typeof CardsDirectory;
2854
+
2855
+ /** @defaultValue `ChatLog` */
2856
+ chat: typeof ChatLog;
2857
+
2858
+ /** @defaultValue `CombatTracker` */
2859
+ combat: typeof CombatTracker;
2860
+
2861
+ /** @defaultValue `CompendiumDirectory` */
2862
+ compendium: typeof CompendiumDirectory;
2863
+
2864
+ /** @defaultValue `SceneControls` */
2865
+ controls: typeof SceneControls;
2866
+
2867
+ /** @defaultValue `Hotbar` */
2868
+ hotbar: typeof Hotbar;
2869
+
2870
+ /** @defaultValue `ItemDirectory` */
2871
+ items: typeof ItemDirectory;
2872
+
2873
+ /** @defaultValue `JournalDirectory` */
2874
+ journal: typeof JournalDirectory;
2875
+
2876
+ /** @defaultValue `MacroDirectory` */
2877
+ macros: typeof MacroDirectory;
2878
+
2879
+ /** @defaultValue `PlayerList` */
2880
+ players: typeof PlayerList;
2881
+
2882
+ /** @defaultValue `PlaylistDirectory` */
2883
+ playlists: typeof PlaylistDirectory;
2884
+
2885
+ /** @defaultValue `SceneDirectory` */
2886
+ scenes: typeof SceneDirectory;
2887
+
2888
+ /** @defaultValue `Settings` */
2889
+ settings: typeof Settings;
2890
+
2891
+ /** @defaultValue `RollTableDirectory` */
2892
+ tables: typeof RollTableDirectory;
2893
+
2894
+ /** @defaultValue `CameraViews` */
2895
+ webrtc: typeof CameraViews;
2896
+ }
2897
+
2898
+ namespace Canvas {
2899
+ interface Groups {
2900
+ /** @defaultValue `{ groupClass: HiddenCanvasGroup, parent: "stage" }` */
2901
+ hidden: CONFIG.Canvas.GroupDefinition<typeof HiddenCanvasGroup>;
2902
+
2903
+ /** @defaultValue `{ groupClass: RenderedCanvasGroup, parent: "stage" }` */
2904
+ rendered: CONFIG.Canvas.GroupDefinition<typeof RenderedCanvasGroup>;
2905
+
2906
+ /** @defaultValue `{ groupClass: EnvironmentCanvasGroup, parent: "rendered" }` */
2907
+ environment: CONFIG.Canvas.GroupDefinition<typeof EnvironmentCanvasGroup>;
2908
+
2909
+ /** @defaultValue `{ groupClass: PrimaryCanvasGroup, parent: "environment" }` */
2910
+ primary: CONFIG.Canvas.GroupDefinition<typeof PrimaryCanvasGroup>;
2911
+
2912
+ /** @defaultValue `{ groupClass: EffectsCanvasGroup, parent: "environment" }` */
2913
+ effects: CONFIG.Canvas.GroupDefinition<typeof EffectsCanvasGroup>;
2914
+
2915
+ /** @defaultValue `{ groupClass: CanvasVisibility, parent: "rendered" }` */
2916
+ visibility: CONFIG.Canvas.GroupDefinition<typeof CanvasVisibility>;
2917
+
2918
+ /** @defaultValue `{ groupClass: InterfaceCanvasGroup, parent: "rendered", zIndexDrawings: 500, zIndexScrollingText: 1100 }` */
2919
+ interface: CONFIG.Canvas.GroupDefinition<typeof InterfaceCanvasGroup>;
2920
+
2921
+ /** @defaultValue `{ groupClass: OverlayCanvasGroup, parent: "stage" }` */
2922
+ overlay: CONFIG.Canvas.GroupDefinition<typeof OverlayCanvasGroup>;
2923
+
2924
+ [key: string]: CONFIG.Canvas.GroupDefinition;
2925
+ }
2926
+
2927
+ interface Layers {
2928
+ /** @defaultValue `{ layerClass: WeatherLayer, group: "primary" }` */
2929
+ weather: LayerDefinition<typeof WeatherEffects>;
2930
+
2931
+ /** @defaultValue `{ layerClass: GridLayer, group: "interface" }` */
2932
+ grid: LayerDefinition<typeof GridLayer>;
2933
+
2934
+ /** @defaultValue `{ layerClass: RegionLayer, group: "interface" }` */
2935
+ // regions: LayerDefinition<typeof RegionLayer>;
2936
+
2937
+ /** @defaultValue `{ layerClass: DrawingsLayer, group: "interface" }` */
2938
+ drawings: LayerDefinition<typeof DrawingsLayer>;
2939
+
2940
+ /** @defaultValue `{ layerClass: TemplateLayer, group: "interface" }` */
2941
+ templates: LayerDefinition<typeof TemplateLayer>;
2942
+
2943
+ /** @defaultValue `{ layerClass: TokenLayer, group: "interface" }` */
2944
+ tiles: LayerDefinition<typeof TilesLayer>;
2945
+
2946
+ /** @defaultValue `{ layerClass: WallsLayer, group: "interface" }` */
2947
+ walls: LayerDefinition<typeof WallsLayer>;
2948
+
2949
+ /** @defaultValue `{ layerClass: TokenLayer, group: "interface" }` */
2950
+ tokens: LayerDefinition<typeof TokenLayer>;
2951
+
2952
+ /** @defaultValue `{ layerClass: SoundsLayer, group: "interface" }` */
2953
+ sounds: LayerDefinition<typeof SoundsLayer>;
2954
+
2955
+ /** @defaultValue `{ layerClass: LightingLayer, group: "interface" }` */
2956
+ lighting: LayerDefinition<typeof LightingLayer>;
2957
+
2958
+ /** @defaultValue `{ layerClass: NotesLayer, group: "interface" }` */
2959
+ notes: LayerDefinition<typeof NotesLayer>;
2960
+
2961
+ /** @defaultValue `{ layerClass: ControlsLayer, group: "interface" }` */
2962
+ controls: LayerDefinition<typeof ControlsLayer>;
2963
+
2964
+ [key: string]: LayerDefinition;
2965
+ }
2966
+
2967
+ interface GroupDefinition<
2968
+ GroupClass extends ToSpriteConstructor<CanvasGroupConstructor> = ToSpriteConstructor<CanvasGroupConstructor>,
2969
+ > {
2970
+ groupClass: GroupClass;
2971
+ parent: string;
2972
+ zIndexDrawings?: number;
2973
+ zIndexScrollingText?: number;
2974
+ }
2975
+
2976
+ interface LayerDefinition<LayerClass extends typeof CanvasLayer = typeof CanvasLayer> {
2977
+ layerClass: LayerClass;
2978
+ group: keyof CONFIG["Canvas"]["groups"];
2979
+ }
2980
+
2981
+ interface GridStyle {
2982
+ label: string;
2983
+ shaderClass: typeof GridShader;
2984
+ shaderOptions: {
2985
+ style: number;
2986
+ };
2987
+ }
2988
+
2989
+ /**
2990
+ * A light source animation configuration object.
2991
+ */
2992
+ type LightSourceAnimationConfig = Record<
2993
+ string,
2994
+ {
2995
+ label: string;
2996
+ animation: LightAnimationFunction;
2997
+ backgroundShader?: typeof AdaptiveBackgroundShader;
2998
+ illuminationShader?: typeof AbstractBaseShader;
2999
+ colorationShader?: typeof AbstractBaseShader;
3000
+ }
3001
+ >;
3002
+
3003
+ /**
3004
+ * A darkness source animation configuration object.
3005
+ */
3006
+ type DarknessSourceAnimationConfig = Record<
3007
+ string,
3008
+ { label: string; animation: LightAnimationFunction; darknessShader: typeof AdaptiveDarknessShader }
3009
+ >;
3010
+
3011
+ type LightAnimationFunction = (
3012
+ // `this` is technically not a `PointLightSource`.
3013
+ // Instead it is `foundry.canvas.sources.Pointfoundry.canvas.sources.LightSource.prototype`.
3014
+ // However differentiating this would be a lot of work for little gain as nothing critical happens in the constructor.
3015
+ this: PointLightSource,
3016
+ dt: number,
3017
+ properties?: { speed?: number; intensity?: number; reverse?: false },
3018
+ ) => void;
3019
+
3020
+ namespace Pings {
3021
+ interface Style {
3022
+ class: unknown;
3023
+ color?: string;
3024
+ size: number;
3025
+ duration: number;
3026
+ }
3027
+ }
3028
+ }
3029
+
3030
+ interface WeatherAmbienceConfiguration {
3031
+ id: string;
3032
+ label: string;
3033
+ filter: {
3034
+ enabled: boolean;
3035
+ blendMode: PIXI.BLEND_MODES;
3036
+ };
3037
+ effects: WeatherEffectConfiguration;
3038
+ }
3039
+
3040
+ interface WeatherEffectConfiguration {
3041
+ id: string;
3042
+ effectClass: typeof ParticleEffect | typeof WeatherShaderEffect;
3043
+ blendMode: PIXI.BLEND_MODES;
3044
+ config: Record<string, unknown>;
3045
+ }
3046
+
3047
+ // The point of this interface is to be declaration merged into so you can override `DefaultSpecialStatusEffects` and remove existing keys. It's never used when empty.
3048
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
3049
+ interface SpecialStatusEffects {}
3050
+
3051
+ interface DefaultSpecialStatusEffects {
3052
+ DEFEATED: string;
3053
+ INVISIBLE: string;
3054
+ BLIND: string;
3055
+ BURROW: string;
3056
+ HOVER: string;
3057
+ FLY: string;
3058
+ }
3059
+
3060
+ namespace Cards {
3061
+ interface Preset {
3062
+ type: string;
3063
+ label: string;
3064
+ src: string;
3065
+ }
3066
+ }
3067
+ namespace Combat {
3068
+ interface SoundPreset {
3069
+ label: string;
3070
+ startEncounter: string[];
3071
+ nextUp: string[];
3072
+ yourTurn: string[];
3073
+ }
3074
+ }
3075
+
3076
+ namespace Font {
3077
+ interface Definition extends FontFaceDescriptors {
3078
+ url: string[];
3079
+ }
3080
+
3081
+ interface FamilyDefinition {
3082
+ editor: boolean;
3083
+ fonts: Definition[];
3084
+ }
3085
+ }
3086
+
3087
+ interface WallDoorSound {
3088
+ /** A localization string label */
3089
+ label: string;
3090
+
3091
+ /** A sound path when the door is closed */
3092
+ close: string;
3093
+
3094
+ /** A sound path when the door becomes locked */
3095
+ lock: string;
3096
+
3097
+ /** A sound path when opening the door */
3098
+ open: string;
3099
+
3100
+ /** A sound path when attempting to open a locked door */
3101
+ test: string;
3102
+
3103
+ /** A sound path when the door becomes unlocked */
3104
+ unlock: string;
3105
+ }
3106
+
3107
+ namespace Dice {
3108
+ interface RollModes extends Record<foundry.CONST.DICE_ROLL_MODES, string> {}
3109
+ }
3110
+
3111
+ namespace Combat {
3112
+ interface Sounds {
3113
+ epic: CONFIG.Combat.SoundPreset;
3114
+ mc: CONFIG.Combat.SoundPreset;
3115
+ }
3116
+ }
3117
+ }
3118
+
3119
+ const CONFIG: CONFIG;
3120
+ }
3121
+
3122
+ type ConfiguredObjectClassOrDefault<Fallback extends PlaceableObject.AnyConstructor> = GetKey<
3123
+ PlaceableObjectClassConfig,
3124
+ Fallback["embeddedName"],
3125
+ Fallback
3126
+ >;
3127
+
3128
+ interface SheetClassConfig {
3129
+ canBeDefault: boolean;
3130
+
3131
+ canConfigure: boolean;
3132
+
3133
+ cls: typeof DocumentSheet;
3134
+
3135
+ default: boolean;
3136
+
3137
+ id: string;
3138
+
3139
+ label: string;
3140
+ }
3141
+
3142
+ type PixiContainerConstructor = typeof PIXI.Container;
3143
+ interface CanvasGroup extends PIXI.Container {
3144
+ sortableChildren: boolean;
3145
+ }
3146
+
3147
+ interface CanvasGroupConstructor extends PixiContainerConstructor {
3148
+ new (): CanvasGroup;
3149
+
3150
+ /**
3151
+ * The name of this canvas group
3152
+ * @remarks Not used in EffectsCanvasGroup in v11
3153
+ */
3154
+ groupName?: string;
3155
+ }
3156
+
3157
+ type AnySpriteClass = abstract new (sprite?: SpriteMesh) => unknown;
3158
+
3159
+ type ToSpriteConstructor<Class extends AnySpriteClass> = ToSpriteConstructorInterface<Class>;
3160
+
3161
+ // @ts-expect-error - Ignore the "incorrectly extends interface" error inherent to this pattern.
3162
+ interface ToSpriteConstructorInterface<T extends AnySpriteClass> extends T {
3163
+ new (sprite: SpriteMesh): InstanceType<T>;
3164
+ }