@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,8 +1,8 @@
1
1
  import type { ConfiguredChatMessage } from "../../../../configuration/index.d.mts";
2
- import type { AnyObject, InexactPartial, InterfaceToObject, Merge } from "fvtt-types/utils";
2
+ import type { AnyObject, InterfaceToObject, Merge, NullishProps } from "#utils";
3
3
  import type { documents } from "../../../client-esm/client.d.mts";
4
4
  import type Document from "../../../common/abstract/document.d.mts";
5
- import type { DataSchema } from "../../../common/data/fields.d.mts";
5
+ import type { DataSchema, SchemaField } from "../../../common/data/fields.d.mts";
6
6
  import type { fields } from "../../../common/data/module.d.mts";
7
7
  import type BaseChatMessage from "../../../common/documents/chat-message.d.mts";
8
8
 
@@ -161,7 +161,7 @@ declare global {
161
161
  type Collection = Messages.Configured;
162
162
 
163
163
  /**
164
- * An instance of `ChatMessage` that comes from the database but failed validation meaining that
164
+ * An instance of `ChatMessage` that comes from the database but failed validation meaning that
165
165
  * its `system` and `_source` could theoretically be anything.
166
166
  */
167
167
  interface Invalid<out SubType extends ChatMessage.SubType = ChatMessage.SubType>
@@ -231,7 +231,8 @@ declare global {
231
231
  */
232
232
  _id: fields.DocumentIdField;
233
233
 
234
- type: fields.DocumentTypeField<typeof BaseChatMessage, { initial: typeof foundry.CONST.BASE_DOCUMENT_TYPE }>;
234
+ /** @defaultValue `"base"` */
235
+ type: fields.DocumentTypeField<typeof BaseChatMessage, { initial: typeof CONST.BASE_DOCUMENT_TYPE }>;
235
236
 
236
237
  system: fields.TypeDataField<typeof BaseChatMessage>;
237
238
 
@@ -239,12 +240,18 @@ declare global {
239
240
  * The message type from CONST.CHAT_MESSAGE_STYLES
240
241
  * @defaultValue `CONST.CHAT_MESSAGE_STYLES.OTHER`
241
242
  */
242
- style: fields.NumberField<{
243
- required: true;
244
- choices: CONST.CHAT_MESSAGE_STYLES[];
245
- initial: typeof CONST.CHAT_MESSAGE_STYLES.OTHER;
246
- validationError: "must be a value in CONST.CHAT_MESSAGE_TYPES";
247
- }>;
243
+ // FIXME: overrides to enforce the branded type
244
+ style: fields.NumberField<
245
+ {
246
+ required: true;
247
+ choices: CONST.CHAT_MESSAGE_STYLES[];
248
+ initial: typeof CONST.CHAT_MESSAGE_STYLES.OTHER;
249
+ validationError: "must be a value in CONST.CHAT_MESSAGE_TYPES";
250
+ },
251
+ CONST.CHAT_MESSAGE_STYLES | null | undefined,
252
+ CONST.CHAT_MESSAGE_STYLES,
253
+ CONST.CHAT_MESSAGE_STYLES
254
+ >;
248
255
 
249
256
  /**
250
257
  * The _id of the User document who generated this message
@@ -272,7 +279,6 @@ declare global {
272
279
 
273
280
  /**
274
281
  * A ChatSpeakerData object which describes the origin of the ChatMessage
275
- * @defaultValue see properties
276
282
  */
277
283
  speaker: fields.SchemaField<SpeakerSchema>;
278
284
 
@@ -295,8 +301,9 @@ declare global {
295
301
  rolls: fields.ArrayField<
296
302
  fields.JSONField<
297
303
  { validate: (rollJson: string) => void },
298
- fields.JSONField.AssignmentType<{ validate: (rollJson: string) => void }>,
299
- Roll // TODO: If initialization fails can this possibly be not-roll?
304
+ // TODO: Figure out why passing whole Roll objects doesn't lose `terms` complex objects without calling `.toJSON()`
305
+ fields.JSONField.AssignmentType<{ validate: (rollJson: string) => void }> | Roll.Any,
306
+ Roll
300
307
  >
301
308
  >;
302
309
 
@@ -342,7 +349,7 @@ declare global {
342
349
 
343
350
  /**
344
351
  * An overridden alias name used instead of the Actor or Token name
345
- * @defaultValue `""`
352
+ * @defaultValue `undefined`
346
353
  */
347
354
  alias: fields.StringField;
348
355
  }
@@ -486,31 +493,95 @@ declare global {
486
493
  };
487
494
  }
488
495
 
489
- interface GetSpeakerOptions {
490
- /** The Scene in which the speaker resides */
491
- scene: Scene.Implementation | null;
496
+ /** @internal */
497
+ interface _BaseSpeakerOptions {
498
+ /** The Token who is speaking */
499
+ token: TokenDocument.Implementation | Token.Object;
492
500
 
493
- /** The Actor whom is speaking */
494
- actor: Actor.Implementation | null | undefined;
501
+ /** The Actor who is speaking */
502
+ actor: Actor.Implementation;
495
503
 
496
- /** The Token whom is speaking */
497
- token: TokenDocument.Implementation | Token.Object | null | undefined;
504
+ /** The Scene in which the speaker resides */
505
+ scene: Scene.Implementation;
498
506
 
499
507
  /** The name of the speaker to display */
500
- alias: string | undefined;
508
+ alias: string;
509
+ }
510
+
511
+ interface GetSpeakerOptions extends NullishProps<_BaseSpeakerOptions> {}
512
+
513
+ /** @remarks `token` is required, `alias` falls back to `token.name` */
514
+ interface GetSpeakerFromTokenOptions extends NullishProps<Pick<_BaseSpeakerOptions, "token" | "alias">, "alias"> {}
515
+
516
+ /** @remarks `actor` is required, `scene` falls back to `canvas.scene`, `alias` falls back to `actor.name` */
517
+ interface GetSpeakerFromActorOptions
518
+ extends NullishProps<Pick<_BaseSpeakerOptions, "scene" | "actor" | "alias">, "scene" | "alias"> {}
519
+
520
+ /** @remarks `user` is required, `scene` falls back to `canvas.scene`, `alias` falls back to `user.name` */
521
+ interface GetSpeakerFromUserOptions extends NullishProps<Pick<_BaseSpeakerOptions, "scene" | "alias">> {
522
+ /** The User who is speaking */
523
+ user: User.Implementation;
501
524
  }
502
525
 
526
+ /** @internal */
527
+ type _SpeakerData = SchemaField.InitializedData<ChatMessage.SpeakerSchema>;
528
+
529
+ interface SpeakerData extends _SpeakerData {}
530
+
531
+ /**
532
+ * @remarks
533
+ * {@linkcode ChatMessage.getWhisperRecipients} has a couple special-cased values, and a couple fallback behaviors.
534
+ * _ALL_ comparisons are case-**in**sensitive, compared lowercase.
535
+ * - `"GM"` or `"DM"` inputs returns `game.users.filter(u => u.isGM)`
536
+ * - `"players"` returns `game.users.players`
537
+ * - Then if any User names match, returns all that do
538
+ * - Then returns any Users whose assigned `character` matches
539
+ * - Finally returns `[]`
540
+ */
541
+ type WhisperRecipient = "GM" | "DM" | "players" | (string & {});
542
+
543
+ /**
544
+ * @remarks Serves two purposes:
545
+ * - Template context for either calling `renderTemplate` on `CONFIG.ChatMessage.template` or passing to {@link ChatMessage._renderRollContent | `ChatMessage#_renderRollContent`}
546
+ * - Context passed to the {@linkcode Hooks.StaticCallbacks.renderChatMessage | `renderChatMessage`} hook.
547
+ */
503
548
  interface MessageData {
549
+ /** @remarks This is the return of `ChatMessage#toObject(false)`, but that doesn't seem to make a difference */
504
550
  message: ChatMessage.Source;
551
+
552
+ /** @remarks Always `game.user` */
505
553
  user: User.Stored;
506
- author: User.Implementation | undefined;
554
+
555
+ /** @remarks The message's {@link ChatMessage.author | `author`} */
556
+ author: User.Implementation;
557
+
558
+ /** @remarks The message's {@link ChatMessage.alias | `alias`} */
507
559
  alias: string;
560
+
561
+ /** @remarks Possibly more than one class name, space-separated */
508
562
  cssClass: string;
509
- isWhisper: boolean;
563
+
564
+ /**
565
+ * @remarks The `.length` of the message's {@link ChatMessage.whisper | `whisper`} array,
566
+ * despite the name implying a `boolean`
567
+ */
568
+ isWhisper: number;
569
+
570
+ /**
571
+ * @remarks Always `game.user.isGM`. Foundry comments: "Only GM users are allowed to have the
572
+ * trash-bin icon in the chat log itself"
573
+ */
510
574
  canDelete: boolean;
575
+
576
+ /**
577
+ * @remarks A `", "`-separated list of the `name`s of the `User`s whose IDs are in the message's
578
+ * {@link ChatMessage.whisper | `whisper`} array
579
+ */
511
580
  whisperTo: string;
512
581
  }
513
582
 
583
+ type PassableRollMode = CONST.DICE_ROLL_MODES | "roll";
584
+
514
585
  /**
515
586
  * @deprecated {@link ChatMessage.DatabaseOperation | `ChatMessage.DatabaseOperation`}
516
587
  */
@@ -565,13 +636,15 @@ declare global {
565
636
  /**
566
637
  * Is the display of dice rolls in this message collapsed (false) or expanded (true)
567
638
  * @defaultValue `false`
568
- * @internal
639
+ * @private
640
+ * @remarks Toggled in {@link ChatLog._onDiceRollClick | `ChatLog#_onDiceRollClick`}
569
641
  */
570
642
  protected _rollExpanded: boolean;
571
643
 
572
644
  /**
573
645
  * Is this ChatMessage currently displayed in the sidebar ChatLog?
574
646
  * @defaultValue `false`
647
+ * @remarks Set `true` in {@link ChatLog.postOne | `ChatLog#postOne`} and {@link ChatLog._renderBatch | `ChatLog#_renderBatch`}
575
648
  */
576
649
  logged: boolean;
577
650
 
@@ -604,6 +677,10 @@ declare global {
604
677
  */
605
678
  get visible(): boolean;
606
679
 
680
+ /**
681
+ * @remarks Initializes `this.rolls` from an array of JSON-serializable objects to instances of their listed Roll class,
682
+ * dropping any that throw when passed to {@linkcode Roll.fromData}
683
+ */
607
684
  override prepareDerivedData(): void;
608
685
 
609
686
  /**
@@ -613,78 +690,55 @@ declare global {
613
690
  * @returns The modified ChatMessage data with rollMode preferences applied
614
691
  */
615
692
  static applyRollMode(
616
- chatData: foundry.documents.BaseChatMessage.CreateData,
617
- rollMode: keyof typeof CONFIG.Dice.rollModes | "roll",
618
- ): foundry.documents.BaseChatMessage.CreateData;
693
+ chatData: ChatMessage.CreateData,
694
+ rollMode: ChatMessage.PassableRollMode,
695
+ ): ChatMessage.CreateData;
619
696
 
620
697
  /**
621
698
  * Update the data of a ChatMessage instance to apply a requested rollMode
622
699
  * @param rollMode - The rollMode preference to apply to this message data
700
+ * @remarks Only calls `this.updateSource`, doesn't db update messages already stored
623
701
  */
624
- applyRollMode(rollMode: keyof typeof CONFIG.Dice.rollModes | "roll"): void;
702
+ applyRollMode(rollMode: ChatMessage.PassableRollMode): void;
625
703
 
626
704
  /**
627
705
  * Attempt to determine who is the speaking character (and token) for a certain Chat Message
628
706
  * First assume that the currently controlled Token is the speaker
629
707
  *
630
- * @param options - (default: `{}`)
708
+ * @param options - Options which affect speaker identification (default: `{}`)
631
709
  *
632
710
  * @returns The identified speaker data
633
711
  */
634
- static getSpeaker(
635
- options?: InexactPartial<ChatMessage.GetSpeakerOptions>,
636
- ): ChatMessage.Implementation["_source"]["speaker"];
712
+ // options: not null (destructured)
713
+ static getSpeaker(options?: ChatMessage.GetSpeakerOptions): ChatMessage.SpeakerData;
637
714
 
638
715
  /**
639
716
  * A helper to prepare the speaker object based on a target TokenDocument
640
717
  * @param options - Options which affect speaker identification
641
718
  * @returns The identified speaker data
642
719
  */
643
- protected static _getSpeakerFromToken(options: {
644
- /** The TokenDocument of the speaker */
645
- token: TokenDocument.Implementation;
646
-
647
- /** The name of the speaker to display */
648
- alias?: string | undefined;
649
- }): ChatMessage.Implementation["_source"]["speaker"];
720
+ protected static _getSpeakerFromToken(options: ChatMessage.GetSpeakerFromTokenOptions): ChatMessage.SpeakerData;
650
721
 
651
722
  /**
652
723
  * A helper to prepare the speaker object based on a target Actor
653
724
  * @param options - Options which affect speaker identification
654
725
  * @returns The identified speaker data
655
726
  */
656
- protected static _getSpeakerFromActor(options: {
657
- /** The Scene is which the speaker resides */
658
- scene?: Scene.Implementation | undefined;
659
-
660
- /** The Actor that is speaking */
661
- actor: Actor.Implementation;
662
-
663
- /** The name of the speaker to display */
664
- alias?: string | undefined;
665
- }): ChatMessage.Implementation["_source"]["speaker"];
727
+ protected static _getSpeakerFromActor(options: ChatMessage.GetSpeakerFromActorOptions): ChatMessage.SpeakerData;
666
728
 
667
729
  /**
668
730
  * A helper to prepare the speaker object based on a target User
669
731
  * @param options - Options which affect speaker identification
670
732
  * @returns The identified speaker data
671
733
  */
672
- protected static _getSpeakerFromUser(options: {
673
- /** The Scene in which the speaker resides */
674
- scene?: Scene.Implementation | undefined;
675
-
676
- /** The User who is speaking */
677
- user: User.Implementation;
678
-
679
- /** The name of the speaker to display */
680
- alias?: string | undefined;
681
- }): ChatMessage.Implementation["_source"]["speaker"];
734
+ protected static _getSpeakerFromUser(options: ChatMessage.GetSpeakerFromUserOptions): ChatMessage.SpeakerData;
682
735
 
683
736
  /**
684
737
  * Obtain an Actor instance which represents the speaker of this message (if any)
685
738
  * @param speaker - The speaker data object
739
+ * @remarks `speaker` has no parameter default, if it's falsey this returns `null`
686
740
  */
687
- static getSpeakerActor(speaker: ChatMessage.Implementation["_source"]["speaker"]): Actor.Implementation | null;
741
+ static getSpeakerActor(speaker?: ChatMessage.SpeakerData | null): Actor.Implementation | null;
688
742
 
689
743
  /**
690
744
  * Obtain a data object used to evaluate any dice rolls associated with this particular chat message
@@ -696,8 +750,9 @@ declare global {
696
750
  *
697
751
  * @param name - The target name of the whisper target
698
752
  * @returns An array of User instances
753
+ * @remarks See {@linkcode ChatMessage.WhisperRecipient}
699
754
  */
700
- static getWhisperRecipients(name: string): User.Stored[];
755
+ static getWhisperRecipients(name: ChatMessage.WhisperRecipient): User.Stored[];
701
756
 
702
757
  /**
703
758
  * Render the HTML for the ChatMessage which should be added to the log
@@ -713,15 +768,14 @@ declare global {
713
768
 
714
769
  /**
715
770
  * Render HTML for the array of Roll objects included in this message.
716
- * @param isPrivate - Is the chat message private?
771
+ * @param isPrivate - Is the chat message private? (default: `false`)
717
772
  * @returns The rendered HTML string
773
+ * @remarks `isPrivate` is passed into {@link Roll.render | `Roll#render`} where it has a parameter default of `false`
718
774
  */
719
- protected _renderRollHTML(isPrivate: boolean): Promise<string>;
775
+ protected _renderRollHTML(isPrivate?: boolean | null): Promise<string>;
720
776
 
721
- /**
722
- * @privateRemarks _preCreate, _onCreate, _onUpdate, and _onDelete are all overridden but with no signature changes.
723
- * For type simplicity they are left off. These methods historically have been the source of a large amount of computation from tsc.
724
- */
777
+ // _preCreate, _onCreate, _onUpdate, and _onDelete are all overridden but with no signature changes.
778
+ // For type simplicity they are left off. These methods historically have been the source of a large amount of computation from tsc.
725
779
 
726
780
  /**
727
781
  * Export the content of the chat message into a standardized log format
@@ -742,21 +796,26 @@ declare global {
742
796
 
743
797
  // Descendant Document operations have been left out because ChatMessage does not have any descendant documents.
744
798
 
745
- static override defaultName(context?: Document.DefaultNameContext<ChatMessage.SubType, ChatMessage.Parent>): string;
799
+ // context: not null (destructured)
800
+ static override defaultName(context?: Document.DefaultNameContext<"ChatMessage", ChatMessage.Parent>): string;
746
801
 
802
+ // data: not null (parameter default only), context: not null (destructured)
747
803
  static override createDialog(
748
804
  data?: Document.CreateDialogData<ChatMessage.CreateData>,
749
- context?: Document.CreateDialogContext<ChatMessage.SubType, ChatMessage.Parent>,
805
+ context?: Document.CreateDialogContext<"ChatMessage", ChatMessage.Parent>,
750
806
  ): Promise<ChatMessage.Stored | null | undefined>;
751
807
 
808
+ // options: not null (parameter default only)
752
809
  static override fromDropData(
753
810
  data: Document.DropData<ChatMessage.Implementation>,
754
- options?: Document.FromDropDataOptions,
811
+ options?: AnyObject,
755
812
  ): Promise<ChatMessage.Implementation | undefined>;
756
813
 
757
814
  static override fromImport(
758
815
  source: ChatMessage.Source,
759
- context?: Document.FromImportContext<ChatMessage.Parent>,
816
+ context?: Document.FromImportContext<ChatMessage.Parent> | null,
760
817
  ): Promise<ChatMessage.Implementation>;
818
+
819
+ override _onClickDocumentLink(event: MouseEvent): ClientDocument.OnClickDocumentLinkReturn;
761
820
  }
762
821
  }