@league-of-foundry-developers/foundry-vtt-types 12.331.4-beta → 12.331.5

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 (377) hide show
  1. package/package.json +18 -1
  2. package/src/configuration/configuration.d.mts +1 -1
  3. package/src/foundry/client/apps/app.d.mts +1 -1
  4. package/src/foundry/client/apps/av/av-config.d.mts +1 -1
  5. package/src/foundry/client/apps/av/cameras.d.mts +1 -1
  6. package/src/foundry/client/apps/dice/dice-config.d.mts +1 -1
  7. package/src/foundry/client/apps/form.d.mts +1 -1
  8. package/src/foundry/client/apps/forms/actor.d.mts +1 -1
  9. package/src/foundry/client/apps/forms/adventure-exporter.d.mts +1 -1
  10. package/src/foundry/client/apps/forms/adventure-importer.d.mts +1 -1
  11. package/src/foundry/client/apps/forms/base-sheet.d.mts +1 -1
  12. package/src/foundry/client/apps/forms/card-config.d.mts +1 -1
  13. package/src/foundry/client/apps/forms/cards-config.d.mts +1 -1
  14. package/src/foundry/client/apps/forms/combat-config.d.mts +1 -1
  15. package/src/foundry/client/apps/forms/effect-config.d.mts +1 -1
  16. package/src/foundry/client/apps/forms/folder-config.d.mts +7 -2
  17. package/src/foundry/client/apps/forms/fonts.d.mts +1 -1
  18. package/src/foundry/client/apps/forms/grid-config.d.mts +1 -1
  19. package/src/foundry/client/apps/forms/image-popout.d.mts +1 -1
  20. package/src/foundry/client/apps/forms/item.d.mts +1 -1
  21. package/src/foundry/client/apps/forms/journal-page-sheet.d.mts +1 -1
  22. package/src/foundry/client/apps/forms/journal-sheet.d.mts +1 -1
  23. package/src/foundry/client/apps/forms/macro-config.d.mts +1 -1
  24. package/src/foundry/client/apps/forms/measure-template.d.mts +1 -1
  25. package/src/foundry/client/apps/forms/ownership.d.mts +1 -1
  26. package/src/foundry/client/apps/forms/playlist-config.d.mts +1 -1
  27. package/src/foundry/client/apps/forms/playlist-sound-config.d.mts +1 -1
  28. package/src/foundry/client/apps/forms/roll-table-config.d.mts +1 -1
  29. package/src/foundry/client/apps/forms/scene-config.d.mts +1 -1
  30. package/src/foundry/client/apps/forms/sheet-config.d.mts +1 -1
  31. package/src/foundry/client/apps/forms/user-config.d.mts +1 -1
  32. package/src/foundry/client/apps/hud/chatbubble.d.mts +1 -1
  33. package/src/foundry/client/apps/hud/container.d.mts +1 -1
  34. package/src/foundry/client/apps/hud/controls.d.mts +1 -1
  35. package/src/foundry/client/apps/hud/hotbar.d.mts +1 -1
  36. package/src/foundry/client/apps/hud/hud.d.mts +1 -1
  37. package/src/foundry/client/apps/hud/menu.d.mts +1 -1
  38. package/src/foundry/client/apps/hud/navigation.d.mts +1 -1
  39. package/src/foundry/client/apps/hud/pause.d.mts +1 -1
  40. package/src/foundry/client/apps/hud/players.d.mts +1 -1
  41. package/src/foundry/client/apps/placeables/drawing-config.d.mts +1 -1
  42. package/src/foundry/client/apps/placeables/drawing-hud.d.mts +1 -1
  43. package/src/foundry/client/apps/placeables/note-config.d.mts +1 -1
  44. package/src/foundry/client/apps/placeables/tile-config.d.mts +1 -1
  45. package/src/foundry/client/apps/placeables/tile-hud.d.mts +1 -1
  46. package/src/foundry/client/apps/placeables/token-config.d.mts +1 -1
  47. package/src/foundry/client/apps/placeables/token-hud.d.mts +1 -1
  48. package/src/foundry/client/apps/placeables/wall-config.d.mts +1 -1
  49. package/src/foundry/client/apps/sidebar/apps/keybindings-config.d.mts +1 -1
  50. package/src/foundry/client/apps/sidebar/apps/module-management.d.mts +1 -1
  51. package/src/foundry/client/apps/sidebar/apps/support-details.d.mts +1 -1
  52. package/src/foundry/client/apps/sidebar/apps/tours-management.d.mts +1 -1
  53. package/src/foundry/client/apps/sidebar/apps/world-config.d.mts +1 -1
  54. package/src/foundry/client/apps/sidebar/directory-tab-mixin.d.mts +1 -1
  55. package/src/foundry/client/apps/sidebar/package-configuration.d.mts +1 -1
  56. package/src/foundry/client/apps/sidebar/sidebar.d.mts +1 -1
  57. package/src/foundry/client/apps/sidebar/tabs/actors-directory.d.mts +1 -1
  58. package/src/foundry/client/apps/sidebar/tabs/cards-directory.d.mts +1 -1
  59. package/src/foundry/client/apps/sidebar/tabs/chat-log.d.mts +1 -1
  60. package/src/foundry/client/apps/sidebar/tabs/combat-tracker.d.mts +1 -1
  61. package/src/foundry/client/apps/sidebar/tabs/compendium-directory.d.mts +1 -1
  62. package/src/foundry/client/apps/sidebar/tabs/items-directory.d.mts +1 -1
  63. package/src/foundry/client/apps/sidebar/tabs/journal-directory.d.mts +1 -1
  64. package/src/foundry/client/apps/sidebar/tabs/macros-directory.d.mts +1 -1
  65. package/src/foundry/client/apps/sidebar/tabs/playlists-directory.d.mts +1 -1
  66. package/src/foundry/client/apps/sidebar/tabs/roll-table-directory.d.mts +1 -1
  67. package/src/foundry/client/apps/sidebar/tabs/scenes-directory.d.mts +1 -1
  68. package/src/foundry/client/apps/sidebar/tabs/settings.d.mts +1 -1
  69. package/src/foundry/client/av/client.d.mts +1 -1
  70. package/src/foundry/client/av/clients/simplepeer.d.mts +1 -1
  71. package/src/foundry/client/av/master.d.mts +1 -1
  72. package/src/foundry/client/av/settings.d.mts +1 -1
  73. package/src/foundry/client/config.d.mts +1 -1
  74. package/src/foundry/client/core/hooks.d.mts +1 -1
  75. package/src/foundry/client/core/image.d.mts +1 -1
  76. package/src/foundry/client/core/keybindings.d.mts +1 -1
  77. package/src/foundry/client/core/packages.d.mts +4 -2
  78. package/src/foundry/client/core/settings.d.mts +1 -1
  79. package/src/foundry/client/core/socket.d.mts +1 -1
  80. package/src/foundry/client/core/tooltip.d.mts +1 -1
  81. package/src/foundry/client/core/tour.d.mts +1 -1
  82. package/src/foundry/client/core/utils.d.mts +1 -1
  83. package/src/foundry/client/core/workers.d.mts +1 -1
  84. package/src/foundry/client/data/abstract/canvas-document.d.mts +9 -20
  85. package/src/foundry/client/data/abstract/client-document.d.mts +133 -71
  86. package/src/foundry/client/data/abstract/directory-collection-mixin.d.mts +2 -2
  87. package/src/foundry/client/data/abstract/document-collection.d.mts +1 -1
  88. package/src/foundry/client/data/abstract/world-collection.d.mts +8 -1
  89. package/src/foundry/client/data/collections/actors.d.mts +1 -1
  90. package/src/foundry/client/data/collections/cards.d.mts +1 -1
  91. package/src/foundry/client/data/collections/combats.d.mts +1 -1
  92. package/src/foundry/client/data/collections/compendium-collection.d.mts +5 -4
  93. package/src/foundry/client/data/collections/fog.d.mts +1 -1
  94. package/src/foundry/client/data/collections/folder.d.mts +1 -1
  95. package/src/foundry/client/data/collections/items.d.mts +1 -1
  96. package/src/foundry/client/data/collections/journal.d.mts +1 -1
  97. package/src/foundry/client/data/collections/macros.d.mts +1 -1
  98. package/src/foundry/client/data/collections/messages.d.mts +1 -1
  99. package/src/foundry/client/data/collections/playlists.d.mts +1 -1
  100. package/src/foundry/client/data/collections/scenes.d.mts +1 -1
  101. package/src/foundry/client/data/collections/settings.d.mts +1 -1
  102. package/src/foundry/client/data/collections/tables.d.mts +1 -1
  103. package/src/foundry/client/data/collections/users.d.mts +4 -4
  104. package/src/foundry/client/data/documents/active-effect.d.mts +124 -48
  105. package/src/foundry/client/data/documents/actor-delta.d.mts +53 -22
  106. package/src/foundry/client/data/documents/actor.d.mts +147 -93
  107. package/src/foundry/client/data/documents/adventure.d.mts +74 -45
  108. package/src/foundry/client/data/documents/ambient-light.d.mts +13 -10
  109. package/src/foundry/client/data/documents/ambient-sound.d.mts +12 -7
  110. package/src/foundry/client/data/documents/card.d.mts +57 -34
  111. package/src/foundry/client/data/documents/cards.d.mts +171 -135
  112. package/src/foundry/client/data/documents/chat-message.d.mts +131 -72
  113. package/src/foundry/client/data/documents/combat.d.mts +80 -60
  114. package/src/foundry/client/data/documents/combatant.d.mts +53 -20
  115. package/src/foundry/client/data/documents/drawing.d.mts +12 -7
  116. package/src/foundry/client/data/documents/fog-exploration.d.mts +57 -17
  117. package/src/foundry/client/data/documents/folder.d.mts +114 -31
  118. package/src/foundry/client/data/documents/item.d.mts +31 -21
  119. package/src/foundry/client/data/documents/journal-entry-page.d.mts +90 -57
  120. package/src/foundry/client/data/documents/journal-entry.d.mts +29 -34
  121. package/src/foundry/client/data/documents/macro.d.mts +60 -34
  122. package/src/foundry/client/data/documents/measured-template.d.mts +13 -8
  123. package/src/foundry/client/data/documents/note.d.mts +14 -7
  124. package/src/foundry/client/data/documents/playlist-sound.d.mts +29 -33
  125. package/src/foundry/client/data/documents/playlist.d.mts +74 -54
  126. package/src/foundry/client/data/documents/region-behavior.d.mts +16 -7
  127. package/src/foundry/client/data/documents/region.d.mts +53 -48
  128. package/src/foundry/client/data/documents/scene.d.mts +310 -89
  129. package/src/foundry/client/data/documents/setting.d.mts +24 -23
  130. package/src/foundry/client/data/documents/table-result.d.mts +20 -8
  131. package/src/foundry/client/data/documents/table.d.mts +19 -13
  132. package/src/foundry/client/data/documents/tile.d.mts +13 -7
  133. package/src/foundry/client/data/documents/token.d.mts +148 -117
  134. package/src/foundry/client/data/documents/user.d.mts +141 -53
  135. package/src/foundry/client/data/documents/wall.d.mts +17 -10
  136. package/src/foundry/client/game.d.mts +1 -1
  137. package/src/foundry/client/head.d.mts +1 -1
  138. package/src/foundry/client/hooks.d.mts +9 -18
  139. package/src/foundry/client/pixi/board.d.mts +3 -2
  140. package/src/foundry/client/pixi/core/containers/base-canvas-group.d.mts +1 -1
  141. package/src/foundry/client/pixi/core/containers/cached-container.d.mts +1 -1
  142. package/src/foundry/client/pixi/core/containers/full-canvas-container.d.mts +1 -1
  143. package/src/foundry/client/pixi/core/containers/point-source-mesh.d.mts +1 -1
  144. package/src/foundry/client/pixi/core/containers/quad-mesh.d.mts +1 -1
  145. package/src/foundry/client/pixi/core/containers/quadtree.d.mts +1 -1
  146. package/src/foundry/client/pixi/core/containers/sprite-mesh.d.mts +1 -1
  147. package/src/foundry/client/pixi/core/containers/unbound-container.d.mts +1 -1
  148. package/src/foundry/client/pixi/core/interaction/canvas-animation.d.mts +1 -1
  149. package/src/foundry/client/pixi/core/interaction/control-icon.d.mts +1 -1
  150. package/src/foundry/client/pixi/core/interaction/mouse-handler.d.mts +1 -1
  151. package/src/foundry/client/pixi/core/interaction/ping.d.mts +1 -1
  152. package/src/foundry/client/pixi/core/interaction/pings/pulse.d.mts +1 -1
  153. package/src/foundry/client/pixi/core/interaction/render-flags.d.mts +1 -8
  154. package/src/foundry/client/pixi/core/interaction/resize-handle.d.mts +1 -1
  155. package/src/foundry/client/pixi/core/interaction/targets.d.mts +1 -1
  156. package/src/foundry/client/pixi/core/loader.d.mts +1 -1
  157. package/src/foundry/client/pixi/core/shapes/limited-angle-polygon.d.mts +1 -1
  158. package/src/foundry/client/pixi/core/shapes/polygon-mesher.d.mts +1 -1
  159. package/src/foundry/client/pixi/core/shapes/precise-text.d.mts +1 -1
  160. package/src/foundry/client/pixi/core/shapes/ray.d.mts +1 -1
  161. package/src/foundry/client/pixi/core/shapes/source-polygon.d.mts +1 -1
  162. package/src/foundry/client/pixi/extensions/circle.d.mts +1 -1
  163. package/src/foundry/client/pixi/extensions/observable-transform.d.mts +1 -1
  164. package/src/foundry/client/pixi/extensions/polygon.d.mts +1 -1
  165. package/src/foundry/client/pixi/extensions/rectangle.d.mts +1 -1
  166. package/src/foundry/client/pixi/groups/effects.d.mts +1 -1
  167. package/src/foundry/client/pixi/groups/environment.d.mts +1 -1
  168. package/src/foundry/client/pixi/groups/hidden.d.mts +1 -1
  169. package/src/foundry/client/pixi/groups/interface.d.mts +1 -1
  170. package/src/foundry/client/pixi/groups/overlay.d.mts +1 -1
  171. package/src/foundry/client/pixi/groups/primary.d.mts +1 -1
  172. package/src/foundry/client/pixi/groups/rendered.d.mts +1 -1
  173. package/src/foundry/client/pixi/layers/base/canvas-layer.d.mts +1 -1
  174. package/src/foundry/client/pixi/layers/base/interaction-layer.d.mts +1 -1
  175. package/src/foundry/client/pixi/layers/base/placeables-layer.d.mts +1 -1
  176. package/src/foundry/client/pixi/layers/controls/cursor.d.mts +1 -1
  177. package/src/foundry/client/pixi/layers/controls/door.d.mts +1 -1
  178. package/src/foundry/client/pixi/layers/controls/layer.d.mts +1 -1
  179. package/src/foundry/client/pixi/layers/controls/ruler.d.mts +1 -1
  180. package/src/foundry/client/pixi/layers/effects/background-effects.d.mts +1 -1
  181. package/src/foundry/client/pixi/layers/effects/coloration-effects.d.mts +1 -1
  182. package/src/foundry/client/pixi/layers/effects/darkness-effects.d.mts +1 -1
  183. package/src/foundry/client/pixi/layers/effects/illumination-effects.d.mts +1 -1
  184. package/src/foundry/client/pixi/layers/effects/visibility.d.mts +1 -1
  185. package/src/foundry/client/pixi/layers/effects/weather/particles/effect.d.mts +1 -1
  186. package/src/foundry/client/pixi/layers/effects/weather/particles/leaves.d.mts +1 -1
  187. package/src/foundry/client/pixi/layers/effects/weather-effects.d.mts +1 -1
  188. package/src/foundry/client/pixi/layers/grid/highlight.d.mts +1 -1
  189. package/src/foundry/client/pixi/layers/grid/layer.d.mts +1 -1
  190. package/src/foundry/client/pixi/layers/grid/mesh.d.mts +1 -1
  191. package/src/foundry/client/pixi/layers/masks/depth.d.mts +1 -1
  192. package/src/foundry/client/pixi/layers/masks/occlusion.d.mts +1 -1
  193. package/src/foundry/client/pixi/layers/masks/vision.d.mts +1 -1
  194. package/src/foundry/client/pixi/layers/placeables/drawings.d.mts +1 -1
  195. package/src/foundry/client/pixi/layers/placeables/lighting.d.mts +1 -1
  196. package/src/foundry/client/pixi/layers/placeables/notes.d.mts +1 -1
  197. package/src/foundry/client/pixi/layers/placeables/regions.d.mts +1 -1
  198. package/src/foundry/client/pixi/layers/placeables/sounds.d.mts +1 -1
  199. package/src/foundry/client/pixi/layers/placeables/templates.d.mts +1 -1
  200. package/src/foundry/client/pixi/layers/placeables/tiles.d.mts +1 -1
  201. package/src/foundry/client/pixi/layers/placeables/tokens.d.mts +1 -1
  202. package/src/foundry/client/pixi/layers/placeables/walls.d.mts +1 -1
  203. package/src/foundry/client/pixi/perception/clockwise-sweep.d.mts +1 -1
  204. package/src/foundry/client/pixi/perception/detection-mode.d.mts +1 -1
  205. package/src/foundry/client/pixi/perception/fog.d.mts +1 -1
  206. package/src/foundry/client/pixi/perception/perception-manager.d.mts +1 -1
  207. package/src/foundry/client/pixi/perception/vision-mode.d.mts +1 -1
  208. package/src/foundry/client/pixi/perception/weiler-atherton-clipping.d.mts +1 -1
  209. package/src/foundry/client/pixi/placeable.d.mts +2 -1
  210. package/src/foundry/client/pixi/placeables/drawing.d.mts +1 -1
  211. package/src/foundry/client/pixi/placeables/light.d.mts +1 -7
  212. package/src/foundry/client/pixi/placeables/note.d.mts +1 -1
  213. package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-canvas-object.d.mts +1 -1
  214. package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-graphics.d.mts +1 -1
  215. package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-occludable-object.d.mts +1 -1
  216. package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-sprite-mesh.d.mts +1 -1
  217. package/src/foundry/client/pixi/placeables/region.d.mts +1 -1
  218. package/src/foundry/client/pixi/placeables/sound.d.mts +1 -1
  219. package/src/foundry/client/pixi/placeables/template.d.mts +1 -1
  220. package/src/foundry/client/pixi/placeables/tile.d.mts +1 -1
  221. package/src/foundry/client/pixi/placeables/token.d.mts +1 -1
  222. package/src/foundry/client/pixi/placeables/wall.d.mts +1 -1
  223. package/src/foundry/client/pixi/webgl/extensions/batch-renderer.d.mts +1 -1
  224. package/src/foundry/client/pixi/webgl/extensions/batch-shader-generator.d.mts +1 -1
  225. package/src/foundry/client/pixi/webgl/helpers/framebuffer-snapshot.d.mts +1 -1
  226. package/src/foundry/client/pixi/webgl/helpers/smooth-noise.d.mts +1 -1
  227. package/src/foundry/client/pixi/webgl/helpers/texture-extractor.d.mts +1 -1
  228. package/src/foundry/client/pixi/webgl/shaders/base-shader-mixin.d.mts +1 -1
  229. package/src/foundry/client/pixi/webgl/shaders/base-shader.d.mts +1 -1
  230. package/src/foundry/client/pixi/webgl/shaders/filters/base-filter.d.mts +1 -1
  231. package/src/foundry/client/pixi/webgl/shaders/filters/effects-masking.d.mts +1 -1
  232. package/src/foundry/client/pixi/webgl/shaders/filters/glow-overlay.d.mts +1 -1
  233. package/src/foundry/client/pixi/webgl/shaders/filters/outline-overlay.d.mts +1 -1
  234. package/src/foundry/client/pixi/webgl/shaders/filters/transition.d.mts +1 -1
  235. package/src/foundry/client/pixi/webgl/shaders/filters/visibility.d.mts +1 -1
  236. package/src/foundry/client/pixi/webgl/shaders/filters/vision-mask-filter.d.mts +1 -1
  237. package/src/foundry/client/pixi/webgl/shaders/fragment-channel-mixin.d.mts +1 -1
  238. package/src/foundry/client/pixi/webgl/shaders/grid/grid.d.mts +1 -1
  239. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/fairy-light.d.mts +1 -1
  240. package/src/foundry/client/pixi/webgl/shaders/samplers/base-sampler.d.mts +1 -1
  241. package/src/foundry/client/pixi/webgl/shaders/samplers/token-ring.d.mts +1 -1
  242. package/src/foundry/client/pixi/webgl/shaders/weather/base-weather.d.mts +1 -1
  243. package/src/foundry/client/pixi/webgl/shaders/weather/effect.d.mts +1 -1
  244. package/src/foundry/client/pixi/workers/texture-worker.d.mts +1 -1
  245. package/src/foundry/client/ui/context.d.mts +1 -1
  246. package/src/foundry/client/ui/dialog.d.mts +1 -1
  247. package/src/foundry/client/ui/dragdrop.d.mts +1 -1
  248. package/src/foundry/client/ui/editor.d.mts +1 -1
  249. package/src/foundry/client/ui/filepicker.d.mts +1 -1
  250. package/src/foundry/client/ui/filter.d.mts +1 -1
  251. package/src/foundry/client-esm/applications/api/application.d.mts +1 -9
  252. package/src/foundry/client-esm/applications/api/dialog.d.mts +1 -1
  253. package/src/foundry/client-esm/applications/api/document-sheet.d.mts +1 -1
  254. package/src/foundry/client-esm/applications/api/handlebars-application.d.mts +1 -1
  255. package/src/foundry/client-esm/applications/apps/compendium-art-config.d.mts +1 -1
  256. package/src/foundry/client-esm/applications/apps/permission-config.d.mts +1 -1
  257. package/src/foundry/client-esm/applications/dice/roll-resolver.d.mts +1 -1
  258. package/src/foundry/client-esm/applications/forms/fields.d.mts +1 -1
  259. package/src/foundry/client-esm/applications/sheets/actor-sheet.d.mts +1 -1
  260. package/src/foundry/client-esm/applications/sheets/ambient-light-config.d.mts +1 -1
  261. package/src/foundry/client-esm/applications/sheets/ambient-sound-config.d.mts +1 -1
  262. package/src/foundry/client-esm/applications/sheets/item-sheet.d.mts +1 -1
  263. package/src/foundry/client-esm/applications/sheets/region-behavior-config.d.mts +1 -1
  264. package/src/foundry/client-esm/applications/sheets/region-config.d.mts +1 -1
  265. package/src/foundry/client-esm/applications/sheets/user-config.d.mts +1 -1
  266. package/src/foundry/client-esm/applications/ui/region-legend.d.mts +1 -1
  267. package/src/foundry/client-esm/audio/biquad.d.mts +1 -1
  268. package/src/foundry/client-esm/audio/convolver.d.mts +1 -1
  269. package/src/foundry/client-esm/audio/helper.d.mts +1 -1
  270. package/src/foundry/client-esm/audio/sound.d.mts +2 -2
  271. package/src/foundry/client-esm/canvas/edges/collision.d.mts +1 -1
  272. package/src/foundry/client-esm/canvas/edges/edge.d.mts +1 -1
  273. package/src/foundry/client-esm/canvas/edges/vertex.d.mts +1 -1
  274. package/src/foundry/client-esm/canvas/scene-manager.d.mts +1 -1
  275. package/src/foundry/client-esm/canvas/smaa/smaa.d.mts +1 -1
  276. package/src/foundry/client-esm/canvas/sources/base-effect-source.d.mts +1 -1
  277. package/src/foundry/client-esm/canvas/sources/base-light-source.d.mts +1 -1
  278. package/src/foundry/client-esm/canvas/sources/global-light-source.d.mts +1 -1
  279. package/src/foundry/client-esm/canvas/sources/point-darkness-source.d.mts +1 -1
  280. package/src/foundry/client-esm/canvas/sources/point-effect-source.d.mts +1 -1
  281. package/src/foundry/client-esm/canvas/sources/point-light-source.d.mts +1 -1
  282. package/src/foundry/client-esm/canvas/sources/point-sound-source.d.mts +1 -1
  283. package/src/foundry/client-esm/canvas/sources/point-vision-source.d.mts +1 -1
  284. package/src/foundry/client-esm/canvas/sources/rendered-effect-source.d.mts +1 -1
  285. package/src/foundry/client-esm/canvas/tokens/ring-data.d.mts +3 -2
  286. package/src/foundry/client-esm/canvas/tokens/ring.d.mts +1 -1
  287. package/src/foundry/client-esm/data/client-backend.d.mts +1 -1
  288. package/src/foundry/client-esm/data/region-behaviors/adjust-darkness-level.d.mts +4 -5
  289. package/src/foundry/client-esm/data/region-behaviors/base.d.mts +1 -1
  290. package/src/foundry/client-esm/data/region-behaviors/display-scrolling-text.d.mts +1 -1
  291. package/src/foundry/client-esm/data/region-behaviors/toggle-behavior.d.mts +4 -4
  292. package/src/foundry/client-esm/dice/roll.d.mts +5 -8
  293. package/src/foundry/client-esm/dice/terms/coin.d.mts +1 -1
  294. package/src/foundry/client-esm/dice/terms/dice.d.mts +1 -1
  295. package/src/foundry/client-esm/dice/terms/die.d.mts +1 -1
  296. package/src/foundry/client-esm/dice/terms/fate.d.mts +1 -1
  297. package/src/foundry/client-esm/dice/terms/function.d.mts +1 -1
  298. package/src/foundry/client-esm/dice/terms/numeric.d.mts +1 -1
  299. package/src/foundry/client-esm/dice/terms/operator.d.mts +1 -1
  300. package/src/foundry/client-esm/dice/terms/parenthetical.d.mts +1 -1
  301. package/src/foundry/client-esm/dice/terms/pool.d.mts +1 -1
  302. package/src/foundry/client-esm/dice/terms/string.d.mts +1 -1
  303. package/src/foundry/client-esm/dice/terms/term.d.mts +1 -1
  304. package/src/foundry/common/abstract/backend.d.mts +1 -1
  305. package/src/foundry/common/abstract/data.d.mts +197 -146
  306. package/src/foundry/common/abstract/document.d.mts +198 -81
  307. package/src/foundry/common/abstract/embedded-collection-delta.d.mts +1 -1
  308. package/src/foundry/common/abstract/embedded-collection.d.mts +1 -1
  309. package/src/foundry/common/abstract/socket.d.mts +1 -1
  310. package/src/foundry/common/abstract/type-data.d.mts +4 -1
  311. package/src/foundry/common/config.d.mts +7 -1
  312. package/src/foundry/common/constants.d.mts +1 -1
  313. package/src/foundry/common/data/data.d.mts +42 -12
  314. package/src/foundry/common/data/fields.d.mts +656 -252
  315. package/src/foundry/common/documents/_types.d.mts +0 -6
  316. package/src/foundry/common/documents/active-effect.d.mts +116 -53
  317. package/src/foundry/common/documents/actor-delta.d.mts +139 -58
  318. package/src/foundry/common/documents/actor.d.mts +105 -51
  319. package/src/foundry/common/documents/adventure.d.mts +84 -39
  320. package/src/foundry/common/documents/ambient-light.d.mts +66 -38
  321. package/src/foundry/common/documents/ambient-sound.d.mts +66 -38
  322. package/src/foundry/common/documents/card.d.mts +100 -59
  323. package/src/foundry/common/documents/cards.d.mts +97 -42
  324. package/src/foundry/common/documents/chat-message.d.mts +105 -52
  325. package/src/foundry/common/documents/combat.d.mts +101 -48
  326. package/src/foundry/common/documents/combatant.d.mts +94 -50
  327. package/src/foundry/common/documents/drawing.d.mts +87 -46
  328. package/src/foundry/common/documents/fog-exploration.d.mts +87 -41
  329. package/src/foundry/common/documents/folder.d.mts +100 -46
  330. package/src/foundry/common/documents/item.d.mts +116 -45
  331. package/src/foundry/common/documents/journal-entry-page.d.mts +90 -40
  332. package/src/foundry/common/documents/journal-entry.d.mts +90 -39
  333. package/src/foundry/common/documents/macro.d.mts +116 -52
  334. package/src/foundry/common/documents/measured-template.d.mts +80 -44
  335. package/src/foundry/common/documents/note.d.mts +75 -39
  336. package/src/foundry/common/documents/playlist-sound.d.mts +88 -47
  337. package/src/foundry/common/documents/playlist.d.mts +101 -50
  338. package/src/foundry/common/documents/region-behavior.d.mts +71 -40
  339. package/src/foundry/common/documents/region.d.mts +68 -40
  340. package/src/foundry/common/documents/roll-table.d.mts +43 -9
  341. package/src/foundry/common/documents/scene.d.mts +190 -43
  342. package/src/foundry/common/documents/setting.d.mts +98 -42
  343. package/src/foundry/common/documents/table-result.d.mts +98 -48
  344. package/src/foundry/common/documents/tile.d.mts +77 -43
  345. package/src/foundry/common/documents/token.d.mts +95 -52
  346. package/src/foundry/common/documents/user.d.mts +100 -89
  347. package/src/foundry/common/documents/wall.d.mts +47 -17
  348. package/src/foundry/common/grid/base.d.mts +1 -1
  349. package/src/foundry/common/grid/gridless.d.mts +1 -1
  350. package/src/foundry/common/grid/hexagonal.d.mts +1 -1
  351. package/src/foundry/common/grid/square.d.mts +1 -1
  352. package/src/foundry/common/packages/base-package.d.mts +37 -14
  353. package/src/foundry/common/packages/base-system.d.mts +39 -0
  354. package/src/foundry/common/packages/base-world.d.mts +8 -1
  355. package/src/foundry/common/packages/sub-types.d.mts +3 -5
  356. package/src/foundry/common/primitives/array.d.mts +1 -1
  357. package/src/foundry/common/primitives/string.d.mts +1 -1
  358. package/src/foundry/common/prosemirror/dirty-plugin.d.mts +1 -1
  359. package/src/foundry/common/prosemirror/dom-parser.d.mts +1 -1
  360. package/src/foundry/common/prosemirror/highlight-matches-plugin.d.mts +1 -1
  361. package/src/foundry/common/prosemirror/image-plugin.d.mts +1 -1
  362. package/src/foundry/common/prosemirror/paste-transformer.d.mts +1 -1
  363. package/src/foundry/common/prosemirror/plugin.d.mts +1 -1
  364. package/src/foundry/common/types.d.mts +1 -1
  365. package/src/foundry/common/utils/bitmask.d.mts +1 -1
  366. package/src/foundry/common/utils/collection.d.mts +1 -1
  367. package/src/foundry/common/utils/event-emitter.d.mts +1 -1
  368. package/src/foundry/common/utils/helpers.d.mts +1 -1
  369. package/src/foundry/public/scripts/clipper/clipper.d.mts +1 -1
  370. package/src/types/augments/particles.d.mts +1 -1
  371. package/src/types/augments/pixi.d.mts +1 -1
  372. package/src/types/augments/smooth.d.mts +1 -1
  373. package/src/types/augments/tinyMCE.d.mts +1 -1
  374. package/src/types/config.d.mts +2 -5
  375. package/src/types/documentConfiguration.d.mts +1 -1
  376. package/src/types/lib.d.mts +1 -1
  377. package/src/types/workers/image-compressor.d.mts +1 -1
@@ -1,4 +1,4 @@
1
- import type { Identity } from "fvtt-types/utils";
1
+ import type { Identity } from "#utils";
2
2
  import type Document from "../../../common/abstract/document.d.mts";
3
3
 
4
4
  declare global {
@@ -1,4 +1,4 @@
1
- import type { Identity } from "fvtt-types/utils";
1
+ import type { Identity } from "#utils";
2
2
  import type Document from "../../../common/abstract/document.d.mts";
3
3
 
4
4
  declare global {
@@ -1,4 +1,4 @@
1
- import type { DeepPartial, Identity } from "fvtt-types/utils";
1
+ import type { DeepPartial, Identity } from "#utils";
2
2
  import type Document from "../../../common/abstract/document.d.mts";
3
3
 
4
4
  declare global {
@@ -1,4 +1,4 @@
1
- import type { Identity } from "fvtt-types/utils";
1
+ import type { Identity } from "#utils";
2
2
  import type Document from "../../../common/abstract/document.d.mts";
3
3
 
4
4
  declare global {
@@ -1,4 +1,4 @@
1
- import type { Identity } from "fvtt-types/utils";
1
+ import type { Identity } from "#utils";
2
2
  import type Document from "../../../common/abstract/document.d.mts";
3
3
 
4
4
  declare global {
@@ -1,4 +1,4 @@
1
- import type { Identity } from "fvtt-types/utils";
1
+ import type { Identity } from "#utils";
2
2
  import type Document from "../../../common/abstract/document.d.mts";
3
3
 
4
4
  declare global {
@@ -1,4 +1,4 @@
1
- import type { Identity, InexactPartial } from "fvtt-types/utils";
1
+ import type { Identity } from "#utils";
2
2
  import type Document from "../../../common/abstract/document.d.mts";
3
3
 
4
4
  declare global {
@@ -42,10 +42,10 @@ declare global {
42
42
  /**
43
43
  * Handle receipt of activity data from another User connected to the Game session
44
44
  * @param userId - The User id who generated the activity data
45
- * @param activityData - The object of activity data
46
- * (default: `{}`)
45
+ * @param activityData - The object of activity data (default: `{}`)
47
46
  */
48
- protected static _handleUserActivity(userId: string, activityData?: InexactPartial<User.ActivityData>): void;
47
+ // activityData: not null (parameter default only)
48
+ protected static _handleUserActivity(userId: string, activityData?: User.ActivityData): void;
49
49
  }
50
50
 
51
51
  namespace Users {
@@ -1,5 +1,13 @@
1
1
  import type { ConfiguredActiveEffect } from "../../../../configuration/index.d.mts";
2
- import type { AnyObject, InterfaceToObject, Merge } from "fvtt-types/utils";
2
+ import type {
3
+ AnyMutableObject,
4
+ AnyObject,
5
+ IntentionalPartial,
6
+ InterfaceToObject,
7
+ JSONValue,
8
+ Merge,
9
+ RequiredProps,
10
+ } from "#utils";
3
11
  import type { DataModel } from "../../../common/abstract/data.d.mts";
4
12
  import type Document from "../../../common/abstract/document.d.mts";
5
13
  import type { DataField, DataSchema } from "../../../common/data/fields.d.mts";
@@ -151,7 +159,7 @@ declare global {
151
159
  type Collection = never;
152
160
 
153
161
  /**
154
- * An instance of `ActiveEffect` that comes from the database but failed validation meaining that
162
+ * An instance of `ActiveEffect` that comes from the database but failed validation meaning that
155
163
  * its `system` and `_source` could theoretically be anything.
156
164
  */
157
165
  interface Invalid<out SubType extends ActiveEffect.SubType = ActiveEffect.SubType>
@@ -225,13 +233,15 @@ declare global {
225
233
  * The name of the ActiveEffect
226
234
  * @defaultValue `""`
227
235
  */
228
- name: fields.StringField<{ required: true; label: "EFFECT.Label" }>;
236
+ // TODO(LukeAbby): fix this when redoing DataField
237
+ // FIXME: This field is `required` with no `initial`, so actually required for construction; Currently an AssignmentType override is required to enforce this
238
+ name: fields.StringField<{ required: true; blank: false; label: "EFFECT.Name"; textSearch: true }, string>;
229
239
 
230
240
  /**
231
241
  * An image path used to depict the ActiveEffect as an icon
232
242
  * @defaultValue `null`
233
243
  */
234
- img: fields.FilePathField<{ categories: "IMAGE"[]; label: "EFFECT.Image" }>;
244
+ img: fields.FilePathField<{ categories: ["IMAGE"]; label: "EFFECT.Image" }>;
235
245
 
236
246
  type: fields.DocumentTypeField<typeof BaseActiveEffect, { initial: typeof foundry.CONST.BASE_DOCUMENT_TYPE }>;
237
247
 
@@ -259,11 +269,18 @@ declare global {
259
269
  * The modification mode with which the change is applied
260
270
  * @defaultValue `CONST.ACTIVE_EFFECT_MODES.ADD`
261
271
  */
262
- mode: fields.NumberField<{
263
- integer: true;
264
- initial: typeof CONST.ACTIVE_EFFECT_MODES.ADD;
265
- label: "EFFECT.ChangeMode";
266
- }>;
272
+ mode: fields.NumberField<
273
+ {
274
+ integer: true;
275
+ initial: typeof CONST.ACTIVE_EFFECT_MODES.ADD;
276
+ label: "EFFECT.ChangeMode";
277
+ },
278
+ // TODO: (LukeAbby): fix this when redoing DataField
279
+ // FIXME: Overrides required to enforce the branded type
280
+ CONST.ACTIVE_EFFECT_MODES | null | undefined,
281
+ CONST.ACTIVE_EFFECT_MODES,
282
+ CONST.ACTIVE_EFFECT_MODES
283
+ >;
267
284
 
268
285
  /**
269
286
  * The priority level with which this change is applied
@@ -533,10 +550,12 @@ declare global {
533
550
  startTurn?: number | null | undefined;
534
551
  }
535
552
 
553
+ type DurationType = "seconds" | "turns" | "none";
554
+
536
555
  // Must be kept in sync with
537
556
  interface Duration extends DurationData {
538
557
  /** The duration type, either "seconds", "turns", or "none" */
539
- type: "seconds" | "turns" | "none";
558
+ type: DurationType;
540
559
 
541
560
  /** The total effect duration, in seconds of world time or as a decimal number with the format \{rounds\}.\{turns\} */
542
561
  duration: number;
@@ -554,6 +573,23 @@ declare global {
554
573
  _combatTime?: number;
555
574
  }
556
575
 
576
+ interface PrepareDurationReturn extends RequiredProps<IntentionalPartial<Duration>, "type"> {}
577
+
578
+ interface InitialDurationData {
579
+ /** @defaultValue `game.time.worldTime` */
580
+ startTime: number;
581
+
582
+ /** @remarks Only exists `if (game.combat)` */
583
+ startRound?: number;
584
+
585
+ /** @remarks Only exists `if (game.combat)` */
586
+ startTurn?: number;
587
+ }
588
+
589
+ interface GetInitialDurationReturn {
590
+ duration: InitialDurationData;
591
+ }
592
+
557
593
  interface EffectChangeData {
558
594
  /**
559
595
  * The attribute path in the Actor or Item data which the change modifies
@@ -574,7 +610,7 @@ declare global {
574
610
  * @defaultValue `CONST.ACTIVE_EFFECT_MODES.ADD`
575
611
  * @privateRemarks `undefined` is not actually a possible value, included here due to fvtt-types handling of `initial` values
576
612
  */
577
- mode: number | null | undefined;
613
+ mode: CONST.ACTIVE_EFFECT_MODES | null | undefined;
578
614
 
579
615
  /**
580
616
  * The priority level with which this change is applied
@@ -584,6 +620,10 @@ declare global {
584
620
  priority: number | null | undefined;
585
621
  }
586
622
 
623
+ type ApplyFieldReturn<Field extends DataField.Any | null | undefined> = Field extends DataField.Any
624
+ ? DataField.InitializedTypeFor<Field>
625
+ : unknown;
626
+
587
627
  /**
588
628
  * @deprecated {@link ActiveEffect.Database | `ActiveEffect.DatabaseOperation`}
589
629
  */
@@ -646,9 +686,10 @@ declare global {
646
686
  * @throws An error if there is no status effect in `CONFIG.statusEffects` with the given status ID and if
647
687
  * the status has implicit statuses but doesn't have a static _id.
648
688
  */
689
+ // options: not null (parameter default only)
649
690
  static fromStatusEffect(
650
691
  statusId: string,
651
- options?: Document.ConstructionContext<Document.Any | null>,
692
+ options?: Document.ConstructionContext<ActiveEffect.Parent>,
652
693
  ): Promise<ActiveEffect.Implementation>;
653
694
 
654
695
  /**
@@ -658,16 +699,19 @@ declare global {
658
699
  * @param effectData - The status effect data.
659
700
  * @param options - Additional options to pass to the ActiveEffect constructor.
660
701
  * @returns The created ActiveEffect instance.
702
+ *
703
+ * @remarks Core's implementation doesn't use `statusId`, simply returning `new this(effectData, options)`
661
704
  */
705
+ // options: not null (destructured where forwarded)
662
706
  protected static _fromStatusEffect(
663
707
  statusId: string,
664
708
  effectData: ActiveEffect.CreateData,
665
- options?: Document.ConstructionContext<Document.Any | null>,
709
+ options?: Document.ConstructionContext<ActiveEffect.Parent>,
666
710
  ): Promise<ActiveEffect.Implementation>;
667
711
 
668
712
  /**
669
713
  * Is there some system logic that makes this active effect ineligible for application?
670
- * @defaultValue `false`
714
+ * @remarks Core's implementation always returns `false`
671
715
  */
672
716
  get isSuppressed(): boolean;
673
717
 
@@ -686,14 +730,15 @@ declare global {
686
730
  */
687
731
  get modifiesActor(): boolean;
688
732
 
689
- prepareBaseData(): void;
733
+ override prepareBaseData(): void;
690
734
 
691
- prepareDerivedData(): void;
735
+ override prepareDerivedData(): void;
692
736
 
693
737
  /**
694
738
  * Update derived Active Effect duration data.
695
739
  * Configure the remaining and label properties to be getters which lazily recompute only when necessary.
696
740
  */
741
+ // TODO: This adds two getter properties (`remaining` and `label`) to `this.duration` (a SchemaField property on the document)
697
742
  updateDuration(): ActiveEffect.Duration;
698
743
 
699
744
  /**
@@ -703,7 +748,8 @@ declare global {
703
748
  */
704
749
  protected _requiresDurationUpdate(): boolean;
705
750
 
706
- protected _prepareDuration(): Omit<ActiveEffect.Duration, keyof ActiveEffect.DurationData>;
751
+ /** @internal */
752
+ protected _prepareDuration(): ActiveEffect.PrepareDurationReturn;
707
753
 
708
754
  /**
709
755
  * Format a round+turn combination as a decimal
@@ -711,7 +757,9 @@ declare global {
711
757
  * @param turn - The turn number
712
758
  * @param nTurns - The maximum number of turns in the encounter
713
759
  * @returns The decimal representation
760
+ * @private
714
761
  */
762
+ // nTurns: not null (`!== undefined` check)
715
763
  protected _getCombatTime(round: number, turn: number, nTurns?: number): number;
716
764
 
717
765
  /**
@@ -719,6 +767,7 @@ declare global {
719
767
  * @param rounds - The number of rounds
720
768
  * @param turns - The number of turns
721
769
  * @returns The formatted label
770
+ * @private
722
771
  */
723
772
  protected _getDurationLabel(rounds: number, turns: number): string;
724
773
 
@@ -740,8 +789,14 @@ declare global {
740
789
  * @param change - The change to apply.
741
790
  * @param field - The field. If not supplied, it will be retrieved from the supplied model.
742
791
  * @returns The updated value.
792
+ *
793
+ * @remarks `field` default provided by `??= model.schema.getField(change.key)`
743
794
  */
744
- static applyField(model: DataModel.Any, change: ActiveEffect.EffectChangeData, field?: DataField.Any): unknown;
795
+ static applyField<Field extends DataField.Any | null | undefined = undefined>(
796
+ model: DataModel.Any,
797
+ change: ActiveEffect.EffectChangeData,
798
+ field?: Field,
799
+ ): ActiveEffect.ApplyFieldReturn<Field>;
745
800
 
746
801
  /**
747
802
  * Apply this ActiveEffect to a provided Actor.
@@ -749,9 +804,9 @@ declare global {
749
804
  * TODO: When we revisit this in Active Effects V2 this should become an Actor method, or a static method
750
805
  * @param actor - The Actor to whom this effect should be applied
751
806
  * @param change - The change data being applied
752
- * @returns The resulting applied value
807
+ * @returns An object of property paths and their updated values.
753
808
  */
754
- apply(actor: Actor.Implementation, change: ActiveEffect.EffectChangeData): unknown;
809
+ apply(actor: Actor.Implementation, change: ActiveEffect.EffectChangeData): AnyMutableObject;
755
810
 
756
811
  /**
757
812
  * Apply this ActiveEffect to a provided Actor using a heuristic to infer the value types based on the current value
@@ -760,15 +815,21 @@ declare global {
760
815
  * @param change - The change data being applied.
761
816
  * @param changes - The aggregate update paths and their updated values.
762
817
  */
763
- protected _applyLegacy(actor: Actor.Implementation, change: ActiveEffect.DurationData, changes: AnyObject): void;
818
+ protected _applyLegacy(
819
+ actor: Actor.Implementation,
820
+ change: ActiveEffect.EffectChangeData,
821
+ changes: AnyMutableObject,
822
+ ): void;
764
823
 
765
824
  /**
766
825
  * Cast a raw ActiveEffect.EffectChangeData change string to the desired data type.
767
826
  * @param raw - The raw string value
768
827
  * @param type - The target data type that the raw value should be cast to match
769
828
  * @returns The parsed delta cast to the target data type
829
+ * @private
830
+ * @remarks Core's implementation returns `boolean | number | string` or the return of {@link ActiveEffect._parseOrString | `ActiveEffect#_parseOrString`}
770
831
  */
771
- protected _castDelta(raw: string, type: string): boolean | number | string | object;
832
+ protected _castDelta(raw: string, type: string): JSONValue;
772
833
 
773
834
  /**
774
835
  * Cast a raw ActiveEffect.EffectChangeData change string to an Array of an inner type.
@@ -776,14 +837,15 @@ declare global {
776
837
  * @param type - The target data type of inner array elements
777
838
  * @returns The parsed delta cast as a typed array
778
839
  */
779
- protected _castArray(raw: string, type: string): Array<boolean | string | number | object>;
840
+ protected _castArray(raw: string, type: string): JSONValue[];
780
841
 
781
842
  /**
782
843
  * Parse serialized JSON, or retain the raw string.
783
844
  * @param raw - A raw serialized string
784
845
  * @returns The parsed value, or the original value if parsing failed
846
+ * @remarks Tries to `JSON.parse(raw)`, simply returns `raw` if error
785
847
  */
786
- protected _parseOrString(raw: string): string | object;
848
+ protected _parseOrString(raw: string): JSONValue;
787
849
 
788
850
  /**
789
851
  * Apply an ActiveEffect that uses an ADD application mode.
@@ -800,13 +862,15 @@ declare global {
800
862
  * @param delta - The parsed value of the change object
801
863
  * @param changes - An object which accumulates changes to be applied
802
864
  * @returns The resulting applied value
865
+ * @private
866
+ * @remarks Core's implementation does not use `actor`
803
867
  */
804
868
  protected _applyAdd(
805
869
  actor: Actor.Implementation,
806
870
  change: ActiveEffect.EffectChangeData,
807
- current: any,
808
- delta: any,
809
- changes: AnyObject,
871
+ current: unknown,
872
+ delta: unknown,
873
+ changes: AnyMutableObject,
810
874
  ): void;
811
875
 
812
876
  /**
@@ -818,13 +882,15 @@ declare global {
818
882
  * @param delta - The parsed value of the change object
819
883
  * @param changes - An object which accumulates changes to be applied
820
884
  * @returns The resulting applied value
885
+ * @private
886
+ * @remarks Core's implementation does not use `actor`
821
887
  */
822
888
  protected _applyMultiply(
823
889
  actor: Actor.Implementation,
824
890
  change: ActiveEffect.EffectChangeData,
825
891
  current: unknown,
826
892
  delta: unknown,
827
- changes: AnyObject,
893
+ changes: AnyMutableObject,
828
894
  ): void;
829
895
 
830
896
  /**
@@ -836,13 +902,15 @@ declare global {
836
902
  * @param delta - The parsed value of the change object
837
903
  * @param changes - An object which accumulates changes to be applied
838
904
  * @returns The resulting applied value
905
+ * @private
906
+ * @remarks Core's implementation does not use `actor` or `current`
839
907
  */
840
908
  protected _applyOverride(
841
909
  actor: Actor.Implementation,
842
910
  change: ActiveEffect.EffectChangeData,
843
911
  current: unknown,
844
912
  delta: unknown,
845
- changes: AnyObject,
913
+ changes: AnyMutableObject,
846
914
  ): void;
847
915
 
848
916
  /**
@@ -854,13 +922,15 @@ declare global {
854
922
  * @param delta - The parsed value of the change object
855
923
  * @param changes - An object which accumulates changes to be applied
856
924
  * @returns The resulting applied value
925
+ * @private
926
+ * @remarks Core's implementation does not use `actor`
857
927
  */
858
928
  protected _applyUpgrade(
859
929
  actor: Actor.Implementation,
860
930
  change: ActiveEffect.EffectChangeData,
861
931
  current: unknown,
862
932
  delta: unknown,
863
- changes: AnyObject,
933
+ changes: AnyMutableObject,
864
934
  ): void;
865
935
 
866
936
  /**
@@ -871,32 +941,33 @@ declare global {
871
941
  * @param delta - The parsed value of the change object
872
942
  * @param changes - An object which accumulates changes to be applied
873
943
  * @returns The resulting applied value
944
+ * @private
874
945
  */
875
946
  protected _applyCustom(
876
947
  actor: Actor.Implementation,
877
948
  change: ActiveEffect.EffectChangeData,
878
949
  current: unknown,
879
950
  delta: unknown,
880
- changes: AnyObject,
951
+ changes: AnyMutableObject,
881
952
  ): void;
882
953
 
883
954
  /**
884
955
  * Retrieve the initial duration configuration.
885
956
  */
886
- static getInitialDuration(): {
887
- duration: {
888
- startTime: number;
889
- startRound?: number | undefined;
890
- startTurn?: number | undefined;
891
- };
892
- };
893
-
894
- // TODO: This is a minor override and doing the extension is complicated
895
- // getFlag(scope: string, key: string): unknown;
957
+ static getInitialDuration(): ActiveEffect.GetInitialDurationReturn;
896
958
 
897
959
  /**
898
- * @privateRemarks _preCreate, _onCreate, _onUpdate, _preUpdate, and _onDelete are all overridden but with no signature changes from BaseActiveEffect.
960
+ * @remarks If attempting to set `core.statusId`, logs a compatibility warning:
961
+ *
962
+ * "You are setting flags.core.statusId on an Active Effect. This flag is deprecated
963
+ * in favor of the {@link ActiveEffect.statuses | `statuses`} set."
899
964
  */
965
+ override getFlag<Scope extends ActiveEffect.Flags.Scope, Key extends ActiveEffect.Flags.Key<Scope>>(
966
+ scope: Scope,
967
+ key: Key,
968
+ ): Document.GetFlag<ActiveEffect.Name, Scope, Key>;
969
+
970
+ // _preCreate, _onCreate, _preUpdate, _onUpdate, and _onDelete are all overridden but with no signature changes from BaseActiveEffect.
900
971
 
901
972
  /**
902
973
  * Display changes to active effects as scrolling Token status text.
@@ -907,7 +978,7 @@ declare global {
907
978
  /**
908
979
  * Get the name of the source of the Active Effect
909
980
  * @deprecated since v11, will be removed in v13
910
- * @remarks `"You are accessing ActiveEffect._getSourceName which is deprecated."`
981
+ * @remarks "You are accessing `ActiveEffect._getSourceName` which is deprecated."
911
982
  */
912
983
  _getSourceName(): Promise<string>;
913
984
 
@@ -925,24 +996,29 @@ declare global {
925
996
 
926
997
  // Descendant Document operations have been left out because ActiveEffect does not have any descendant documents.
927
998
 
999
+ // context: not null (destructured)
928
1000
  static override defaultName(
929
- context: Document.DefaultNameContext<ActiveEffect.SubType, NonNullable<ActiveEffect.Parent>>,
1001
+ context?: Document.DefaultNameContext<"ActiveEffect", NonNullable<ActiveEffect.Parent>>,
930
1002
  ): string;
931
1003
 
1004
+ /** @remarks `context.parent` is required as creation requires one */
932
1005
  static override createDialog(
933
- data: Document.CreateDialogData<ActiveEffect.CreateData>,
934
- context: Document.CreateDialogContext<ActiveEffect.SubType, NonNullable<ActiveEffect.Parent>>,
1006
+ data: Document.CreateDialogData<ActiveEffect.CreateData> | undefined,
1007
+ context: Document.CreateDialogContext<"ActiveEffect", NonNullable<ActiveEffect.Parent>>,
935
1008
  ): Promise<ActiveEffect.Stored | null | undefined>;
936
1009
 
1010
+ // options: not null (parameter default only)
937
1011
  static override fromDropData(
938
1012
  data: Document.DropData<ActiveEffect.Implementation>,
939
- options?: Document.FromDropDataOptions,
1013
+ options?: AnyObject,
940
1014
  ): Promise<ActiveEffect.Implementation | undefined>;
941
1015
 
942
1016
  static override fromImport(
943
1017
  source: ActiveEffect.Source,
944
- context?: Document.FromImportContext<ActiveEffect.Parent>,
1018
+ context?: Document.FromImportContext<ActiveEffect.Parent> | null,
945
1019
  ): Promise<ActiveEffect.Implementation>;
1020
+
1021
+ override _onClickDocumentLink(event: MouseEvent): ClientDocument.OnClickDocumentLinkReturn;
946
1022
  }
947
1023
 
948
1024
  /**