af-motion 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (592) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/LICENSE +201 -0
  3. package/README.md +203 -3
  4. package/RELEASE_NOTES.md +115 -0
  5. package/bin/af-motion.js +16 -0
  6. package/bin/mcp-server.js +21 -0
  7. package/dist/3d/adapter.d.ts +29 -0
  8. package/dist/3d/assets/cache.d.ts +71 -0
  9. package/dist/3d/assets/index.d.ts +10 -0
  10. package/dist/3d/assets/inspection.d.ts +19 -0
  11. package/dist/3d/assets/loaders.d.ts +30 -0
  12. package/dist/3d/assets/manager.d.ts +69 -0
  13. package/dist/3d/assets/scene-integration.d.ts +23 -0
  14. package/dist/3d/assets/types.d.ts +80 -0
  15. package/dist/3d/assets/validation.d.ts +12 -0
  16. package/dist/3d/camera/index.d.ts +7 -0
  17. package/dist/3d/camera/presets.d.ts +8 -0
  18. package/dist/3d/camera/transitions.d.ts +19 -0
  19. package/dist/3d/camera/types.d.ts +37 -0
  20. package/dist/3d/camera/validation.d.ts +9 -0
  21. package/dist/3d/capabilities.d.ts +11 -0
  22. package/dist/3d/composition/fallback.d.ts +20 -0
  23. package/dist/3d/composition/generation.d.ts +24 -0
  24. package/dist/3d/composition/index.d.ts +12 -0
  25. package/dist/3d/composition/quality.d.ts +35 -0
  26. package/dist/3d/composition/recipes.d.ts +34 -0
  27. package/dist/3d/composition/types.d.ts +88 -0
  28. package/dist/3d/composition/unified.d.ts +18 -0
  29. package/dist/3d/environment/index.d.ts +6 -0
  30. package/dist/3d/environment/presets.d.ts +8 -0
  31. package/dist/3d/environment/types.d.ts +36 -0
  32. package/dist/3d/environment/validation.d.ts +9 -0
  33. package/dist/3d/geometry/cache.d.ts +37 -0
  34. package/dist/3d/geometry/generators.d.ts +24 -0
  35. package/dist/3d/geometry/hash.d.ts +10 -0
  36. package/dist/3d/geometry/index.d.ts +9 -0
  37. package/dist/3d/geometry/three-adapter.d.ts +15 -0
  38. package/dist/3d/geometry/types.d.ts +120 -0
  39. package/dist/3d/geometry/validation.d.ts +6 -0
  40. package/dist/3d/index.d.ts +32 -0
  41. package/dist/3d/interaction/camera-controls.d.ts +58 -0
  42. package/dist/3d/interaction/index.d.ts +8 -0
  43. package/dist/3d/interaction/manager.d.ts +61 -0
  44. package/dist/3d/interaction/presets.d.ts +9 -0
  45. package/dist/3d/interaction/raycaster.d.ts +20 -0
  46. package/dist/3d/interaction/types.d.ts +78 -0
  47. package/dist/3d/lighting/index.d.ts +6 -0
  48. package/dist/3d/lighting/presets.d.ts +8 -0
  49. package/dist/3d/lighting/types.d.ts +31 -0
  50. package/dist/3d/lighting/validation.d.ts +17 -0
  51. package/dist/3d/materials/bridge.d.ts +11 -0
  52. package/dist/3d/materials/index.d.ts +7 -0
  53. package/dist/3d/materials/presets.d.ts +9 -0
  54. package/dist/3d/materials/types.d.ts +43 -0
  55. package/dist/3d/materials/validation.d.ts +9 -0
  56. package/dist/3d/morphing/animator.d.ts +19 -0
  57. package/dist/3d/morphing/correspondence.d.ts +32 -0
  58. package/dist/3d/morphing/geometry.d.ts +28 -0
  59. package/dist/3d/morphing/index.d.ts +16 -0
  60. package/dist/3d/morphing/interpolation.d.ts +45 -0
  61. package/dist/3d/morphing/morph.d.ts +18 -0
  62. package/dist/3d/morphing/presets.d.ts +31 -0
  63. package/dist/3d/morphing/react.d.ts +29 -0
  64. package/dist/3d/morphing/topology.d.ts +34 -0
  65. package/dist/3d/morphing/types.d.ts +138 -0
  66. package/dist/3d/morphing/validation.d.ts +19 -0
  67. package/dist/3d/optimization/analysis.d.ts +14 -0
  68. package/dist/3d/optimization/colliders.d.ts +16 -0
  69. package/dist/3d/optimization/geometry.d.ts +22 -0
  70. package/dist/3d/optimization/hierarchy.d.ts +14 -0
  71. package/dist/3d/optimization/index.d.ts +33 -0
  72. package/dist/3d/optimization/lod.d.ts +13 -0
  73. package/dist/3d/optimization/materials.d.ts +12 -0
  74. package/dist/3d/optimization/recommendations.d.ts +13 -0
  75. package/dist/3d/optimization/skeleton.d.ts +20 -0
  76. package/dist/3d/optimization/types.d.ts +252 -0
  77. package/dist/3d/physics/benchmark.d.ts +76 -0
  78. package/dist/3d/physics/body/inertia.d.ts +61 -0
  79. package/dist/3d/physics/collision/ccd.d.ts +26 -0
  80. package/dist/3d/physics/collision/narrowphase.d.ts +15 -0
  81. package/dist/3d/physics/collision/shapes.d.ts +45 -0
  82. package/dist/3d/physics/constraints/advanced.d.ts +40 -0
  83. package/dist/3d/physics/constraints/solver.d.ts +34 -0
  84. package/dist/3d/physics/constraints/types.d.ts +106 -0
  85. package/dist/3d/physics/events.d.ts +34 -0
  86. package/dist/3d/physics/index.d.ts +29 -0
  87. package/dist/3d/physics/material.d.ts +27 -0
  88. package/dist/3d/physics/math.d.ts +79 -0
  89. package/dist/3d/physics/soft/cloth.d.ts +12 -0
  90. package/dist/3d/physics/soft/collision.d.ts +12 -0
  91. package/dist/3d/physics/soft/gpu.d.ts +19 -0
  92. package/dist/3d/physics/soft/pbd.d.ts +20 -0
  93. package/dist/3d/physics/soft/rope.d.ts +16 -0
  94. package/dist/3d/physics/soft/soft-body.d.ts +12 -0
  95. package/dist/3d/physics/soft/types.d.ts +212 -0
  96. package/dist/3d/physics/solver/integrators.d.ts +25 -0
  97. package/dist/3d/physics/solver/types.d.ts +28 -0
  98. package/dist/3d/physics/spatial/spatial-hash.d.ts +51 -0
  99. package/dist/3d/physics/types.d.ts +579 -0
  100. package/dist/3d/physics/world.d.ts +106 -0
  101. package/dist/3d/r3f.d.ts +34 -0
  102. package/dist/3d/scene.d.ts +8 -0
  103. package/dist/3d/schema.d.ts +739 -0
  104. package/dist/3d/schemas/ai-integration.d.ts +201 -0
  105. package/dist/3d/schemas/correction.d.ts +11 -0
  106. package/dist/3d/schemas/index.d.ts +12 -0
  107. package/dist/3d/schemas/schemas.d.ts +361 -0
  108. package/dist/3d/schemas/serialization.d.ts +22 -0
  109. package/dist/3d/schemas/types.d.ts +199 -0
  110. package/dist/3d/schemas/validation.d.ts +33 -0
  111. package/dist/3d/scroll/controller.d.ts +32 -0
  112. package/dist/3d/scroll/index.d.ts +6 -0
  113. package/dist/3d/scroll/presets.d.ts +9 -0
  114. package/dist/3d/scroll/types.d.ts +53 -0
  115. package/dist/3d/terrain/biomes.d.ts +18 -0
  116. package/dist/3d/terrain/chunks.d.ts +20 -0
  117. package/dist/3d/terrain/erosion.d.ts +15 -0
  118. package/dist/3d/terrain/heightmap.d.ts +27 -0
  119. package/dist/3d/terrain/index.d.ts +18 -0
  120. package/dist/3d/terrain/materials.d.ts +20 -0
  121. package/dist/3d/terrain/noise.d.ts +25 -0
  122. package/dist/3d/terrain/physics.d.ts +34 -0
  123. package/dist/3d/terrain/terrain.d.ts +12 -0
  124. package/dist/3d/terrain/types.d.ts +235 -0
  125. package/dist/3d/terrain/vegetation.d.ts +14 -0
  126. package/dist/3d/types.d.ts +176 -0
  127. package/dist/3d/world/hydrology.d.ts +12 -0
  128. package/dist/3d/world/index.d.ts +15 -0
  129. package/dist/3d/world/lighting.d.ts +16 -0
  130. package/dist/3d/world/pipeline.d.ts +20 -0
  131. package/dist/3d/world/population.d.ts +12 -0
  132. package/dist/3d/world/presets.d.ts +11 -0
  133. package/dist/3d/world/streaming.d.ts +13 -0
  134. package/dist/3d/world/types.d.ts +272 -0
  135. package/dist/3d/world/world.d.ts +64 -0
  136. package/dist/backgrounds/advanced-gradient.d.ts +32 -0
  137. package/dist/backgrounds/atmospheric-backgrounds.d.ts +79 -0
  138. package/dist/backgrounds/aurora.d.ts +24 -0
  139. package/dist/backgrounds/cosmic-background.d.ts +31 -0
  140. package/dist/backgrounds/energy-effects.d.ts +78 -0
  141. package/dist/backgrounds/floating-orbs.d.ts +26 -0
  142. package/dist/backgrounds/fluid-backgrounds.d.ts +72 -0
  143. package/dist/backgrounds/geometric-backgrounds.d.ts +78 -0
  144. package/dist/backgrounds/gradient.d.ts +20 -0
  145. package/dist/backgrounds/grid.d.ts +22 -0
  146. package/dist/backgrounds/internal/canvas-lifecycle.d.ts +29 -0
  147. package/dist/backgrounds/noise.d.ts +20 -0
  148. package/dist/backgrounds/particle-background.d.ts +37 -0
  149. package/dist/backgrounds/particle-field.d.ts +22 -0
  150. package/dist/backgrounds/spotlight.d.ts +20 -0
  151. package/dist/backgrounds/wave.d.ts +22 -0
  152. package/dist/catalogue.d.ts +227 -0
  153. package/dist/catalogue.js +4 -0
  154. package/dist/chunks/catalogue-ZmbeEdRo.js +59850 -0
  155. package/dist/chunks/core-animation-CeiI_TEe.js +1394 -0
  156. package/dist/chunks/motion-choreography-DC6LWvDk.js +4089 -0
  157. package/dist/chunks/pointer-capture-lrnKAl2I.js +158 -0
  158. package/dist/chunks/safe-json-D5j34GEB.js +62 -0
  159. package/dist/chunks/scroll-velocity-BNUHaS0-.js +904 -0
  160. package/dist/cli/commands/doctor.d.ts +9 -0
  161. package/dist/cli/commands/example.d.ts +9 -0
  162. package/dist/cli/commands/info.d.ts +8 -0
  163. package/dist/cli/commands/init.d.ts +9 -0
  164. package/dist/cli/commands/presets.d.ts +10 -0
  165. package/dist/cli/commands/validate.d.ts +9 -0
  166. package/dist/cli/index.d.ts +22 -0
  167. package/dist/cli/types.d.ts +115 -0
  168. package/dist/cli/utils/safety.d.ts +11 -0
  169. package/dist/cli/utils/templates.d.ts +16 -0
  170. package/dist/cli/utils/terminal.d.ts +29 -0
  171. package/dist/cli.js +825 -0
  172. package/dist/core/adaptive-motion.d.ts +100 -0
  173. package/dist/core/adaptive-quality/controller.d.ts +61 -0
  174. package/dist/core/adaptive-quality/index.d.ts +13 -0
  175. package/dist/core/adaptive-quality/metrics.d.ts +33 -0
  176. package/dist/core/adaptive-quality/policies.d.ts +40 -0
  177. package/dist/core/adaptive-quality/profile.d.ts +58 -0
  178. package/dist/core/adaptive-quality/react.d.ts +57 -0
  179. package/dist/core/adaptive-quality/recommendation.d.ts +12 -0
  180. package/dist/core/adaptive-quality/resolution.d.ts +22 -0
  181. package/dist/core/adaptive-quality/types.d.ts +362 -0
  182. package/dist/core/advanced-motion/adapters.d.ts +20 -0
  183. package/dist/core/advanced-motion/controller.d.ts +52 -0
  184. package/dist/core/advanced-motion/index.d.ts +12 -0
  185. package/dist/core/advanced-motion/recipes.d.ts +16 -0
  186. package/dist/core/advanced-motion/timeline.d.ts +35 -0
  187. package/dist/core/advanced-motion/types.d.ts +174 -0
  188. package/dist/core/advanced-motion/validation.d.ts +11 -0
  189. package/dist/core/agent-workflows/agent-registry.d.ts +21 -0
  190. package/dist/core/agent-workflows/agents/accessibility-agent.d.ts +9 -0
  191. package/dist/core/agent-workflows/agents/composition-agent.d.ts +9 -0
  192. package/dist/core/agent-workflows/agents/design-to-motion-agent.d.ts +9 -0
  193. package/dist/core/agent-workflows/agents/index.d.ts +13 -0
  194. package/dist/core/agent-workflows/agents/motion-intelligence-agent.d.ts +9 -0
  195. package/dist/core/agent-workflows/agents/performance-agent.d.ts +9 -0
  196. package/dist/core/agent-workflows/agents/scene-generation-agent.d.ts +9 -0
  197. package/dist/core/agent-workflows/collaboration-planner.d.ts +38 -0
  198. package/dist/core/agent-workflows/collaboration-workflows.d.ts +83 -0
  199. package/dist/core/agent-workflows/communication.d.ts +29 -0
  200. package/dist/core/agent-workflows/conflict-resolver.d.ts +25 -0
  201. package/dist/core/agent-workflows/context.d.ts +36 -0
  202. package/dist/core/agent-workflows/execution-engine.d.ts +30 -0
  203. package/dist/core/agent-workflows/index.d.ts +20 -0
  204. package/dist/core/agent-workflows/orchestration-types.d.ts +144 -0
  205. package/dist/core/agent-workflows/orchestrator.d.ts +29 -0
  206. package/dist/core/agent-workflows/react.d.ts +71 -0
  207. package/dist/core/agent-workflows/shared-context.d.ts +36 -0
  208. package/dist/core/agent-workflows/task-planner.d.ts +42 -0
  209. package/dist/core/agent-workflows/templates.d.ts +14 -0
  210. package/dist/core/agent-workflows/tool-registry.d.ts +24 -0
  211. package/dist/core/agent-workflows/types.d.ts +167 -0
  212. package/dist/core/ai-ecosystem/capability-registry.d.ts +23 -0
  213. package/dist/core/ai-ecosystem/index.d.ts +13 -0
  214. package/dist/core/ai-ecosystem/pipeline.d.ts +19 -0
  215. package/dist/core/ai-ecosystem/provider.d.ts +19 -0
  216. package/dist/core/ai-ecosystem/types.d.ts +69 -0
  217. package/dist/core/ai-motion-intelligence/engine.d.ts +51 -0
  218. package/dist/core/ai-motion-intelligence/explanation-engine.d.ts +8 -0
  219. package/dist/core/ai-motion-intelligence/index.d.ts +15 -0
  220. package/dist/core/ai-motion-intelligence/intent-classifier.d.ts +14 -0
  221. package/dist/core/ai-motion-intelligence/knowledge-base.d.ts +12 -0
  222. package/dist/core/ai-motion-intelligence/provider.d.ts +31 -0
  223. package/dist/core/ai-motion-intelligence/quality-evaluator.d.ts +9 -0
  224. package/dist/core/ai-motion-intelligence/react.d.ts +14 -0
  225. package/dist/core/ai-motion-intelligence/recommendation-engine.d.ts +16 -0
  226. package/dist/core/ai-motion-intelligence/types.d.ts +134 -0
  227. package/dist/core/ai-motion-registry.d.ts +201 -0
  228. package/dist/core/animate.d.ts +57 -0
  229. package/dist/core/animation-intelligence/engine.d.ts +42 -0
  230. package/dist/core/animation-intelligence/index.d.ts +11 -0
  231. package/dist/core/animation-intelligence/intent.d.ts +15 -0
  232. package/dist/core/animation-intelligence/schema.d.ts +42 -0
  233. package/dist/core/animation-intelligence/scoring.d.ts +15 -0
  234. package/dist/core/animation-intelligence/types.d.ts +91 -0
  235. package/dist/core/animation-parallel.d.ts +37 -0
  236. package/dist/core/animation-presets.d.ts +56 -0
  237. package/dist/core/animation-sequence.d.ts +37 -0
  238. package/dist/core/animation-timeline.d.ts +46 -0
  239. package/dist/core/animation.d.ts +48 -0
  240. package/dist/core/built-in-palettes.d.ts +331 -0
  241. package/dist/core/choreography-intelligence/bridge.d.ts +43 -0
  242. package/dist/core/choreography-intelligence/generator.d.ts +11 -0
  243. package/dist/core/choreography-intelligence/index.d.ts +11 -0
  244. package/dist/core/choreography-intelligence/intent.d.ts +11 -0
  245. package/dist/core/choreography-intelligence/schema.d.ts +76 -0
  246. package/dist/core/choreography-intelligence/types.d.ts +87 -0
  247. package/dist/core/composition.d.ts +170 -0
  248. package/dist/core/configuration-corrector.d.ts +85 -0
  249. package/dist/core/design-intelligence.d.ts +199 -0
  250. package/dist/core/design-system.d.ts +206 -0
  251. package/dist/core/design-to-motion/design-analyzer.d.ts +13 -0
  252. package/dist/core/design-to-motion/engine.d.ts +34 -0
  253. package/dist/core/design-to-motion/generator.d.ts +16 -0
  254. package/dist/core/design-to-motion/index.d.ts +15 -0
  255. package/dist/core/design-to-motion/input-parser.d.ts +17 -0
  256. package/dist/core/design-to-motion/motion-planner.d.ts +11 -0
  257. package/dist/core/design-to-motion/presets.d.ts +11 -0
  258. package/dist/core/design-to-motion/react.d.ts +13 -0
  259. package/dist/core/design-to-motion/types.d.ts +221 -0
  260. package/dist/core/design-to-motion/validator.d.ts +13 -0
  261. package/dist/core/device-capabilities/classification.d.ts +25 -0
  262. package/dist/core/device-capabilities/detection.d.ts +27 -0
  263. package/dist/core/device-capabilities/graphics.d.ts +22 -0
  264. package/dist/core/device-capabilities/hardware.d.ts +27 -0
  265. package/dist/core/device-capabilities/index.d.ts +14 -0
  266. package/dist/core/device-capabilities/monitor.d.ts +19 -0
  267. package/dist/core/device-capabilities/react.d.ts +24 -0
  268. package/dist/core/device-capabilities/runtime.d.ts +11 -0
  269. package/dist/core/device-capabilities/scoring.d.ts +18 -0
  270. package/dist/core/device-capabilities/types.d.ts +171 -0
  271. package/dist/core/effect-composer.d.ts +41 -0
  272. package/dist/core/generation-pipeline.d.ts +135 -0
  273. package/dist/core/inertia.d.ts +30 -0
  274. package/dist/core/interactions/cursor-controller.d.ts +9 -0
  275. package/dist/core/interactions/custom-gestures.d.ts +28 -0
  276. package/dist/core/interactions/device-capabilities.d.ts +12 -0
  277. package/dist/core/interactions/drag-controller.d.ts +60 -0
  278. package/dist/core/interactions/errors.d.ts +13 -0
  279. package/dist/core/interactions/gesture-classifier.d.ts +43 -0
  280. package/dist/core/interactions/gesture-intelligence-controller.d.ts +9 -0
  281. package/dist/core/interactions/gesture-recognizers.d.ts +160 -0
  282. package/dist/core/interactions/gesture-sequence.d.ts +9 -0
  283. package/dist/core/interactions/index.d.ts +27 -0
  284. package/dist/core/interactions/input-normalizer.d.ts +8 -0
  285. package/dist/core/interactions/interaction-manager.d.ts +43 -0
  286. package/dist/core/interactions/keyboard-manager.d.ts +16 -0
  287. package/dist/core/interactions/magnetic-controller.d.ts +9 -0
  288. package/dist/core/interactions/magnetic-group.d.ts +11 -0
  289. package/dist/core/interactions/multitouch-controller.d.ts +62 -0
  290. package/dist/core/interactions/pointer-controller.d.ts +34 -0
  291. package/dist/core/interactions/pointer-tracker.d.ts +32 -0
  292. package/dist/core/interactions/prioritizer.d.ts +17 -0
  293. package/dist/core/interactions/touch-controller.d.ts +35 -0
  294. package/dist/core/interactions/types.d.ts +710 -0
  295. package/dist/core/layout/controller.d.ts +56 -0
  296. package/dist/core/layout/flip.d.ts +21 -0
  297. package/dist/core/layout/group.d.ts +46 -0
  298. package/dist/core/layout/index.d.ts +12 -0
  299. package/dist/core/layout/measure.d.ts +30 -0
  300. package/dist/core/layout/presets.d.ts +24 -0
  301. package/dist/core/layout/types.d.ts +189 -0
  302. package/dist/core/microinteractions/generator.d.ts +11 -0
  303. package/dist/core/microinteractions/index.d.ts +11 -0
  304. package/dist/core/microinteractions/intent.d.ts +11 -0
  305. package/dist/core/microinteractions/runtime.d.ts +25 -0
  306. package/dist/core/microinteractions/schema.d.ts +82 -0
  307. package/dist/core/microinteractions/types.d.ts +79 -0
  308. package/dist/core/motion-choreography.d.ts +163 -0
  309. package/dist/core/motion-dna.d.ts +129 -0
  310. package/dist/core/motion-path/animator.d.ts +13 -0
  311. package/dist/core/motion-path/engine.d.ts +27 -0
  312. package/dist/core/motion-path/follower.d.ts +8 -0
  313. package/dist/core/motion-path/index.d.ts +15 -0
  314. package/dist/core/motion-path/lut.d.ts +33 -0
  315. package/dist/core/motion-path/parser.d.ts +26 -0
  316. package/dist/core/motion-path/segments.d.ts +16 -0
  317. package/dist/core/motion-path/types.d.ts +178 -0
  318. package/dist/core/motion-path/vector3.d.ts +49 -0
  319. package/dist/core/motion-recipe.d.ts +171 -0
  320. package/dist/core/motion-states.d.ts +43 -0
  321. package/dist/core/motion-validation/consistency.d.ts +11 -0
  322. package/dist/core/motion-validation/index.d.ts +11 -0
  323. package/dist/core/motion-validation/optimizer.d.ts +11 -0
  324. package/dist/core/motion-validation/schema.d.ts +81 -0
  325. package/dist/core/motion-validation/types.d.ts +53 -0
  326. package/dist/core/motion-validation/validator.d.ts +11 -0
  327. package/dist/core/motion.d.ts +7 -0
  328. package/dist/core/natural-motion.d.ts +110 -0
  329. package/dist/core/palette-colors.d.ts +16 -0
  330. package/dist/core/palette-styles.d.ts +12 -0
  331. package/dist/core/palettes.d.ts +59 -0
  332. package/dist/core/performance-intelligence/conflicts.d.ts +21 -0
  333. package/dist/core/performance-intelligence/context.d.ts +48 -0
  334. package/dist/core/performance-intelligence/coordinator.d.ts +84 -0
  335. package/dist/core/performance-intelligence/decisions.d.ts +17 -0
  336. package/dist/core/performance-intelligence/history.d.ts +44 -0
  337. package/dist/core/performance-intelligence/index.d.ts +15 -0
  338. package/dist/core/performance-intelligence/policies.d.ts +59 -0
  339. package/dist/core/performance-intelligence/react.d.ts +78 -0
  340. package/dist/core/performance-intelligence/report.d.ts +16 -0
  341. package/dist/core/performance-intelligence/scoring.d.ts +16 -0
  342. package/dist/core/performance-intelligence/types.d.ts +203 -0
  343. package/dist/core/performance-optimizer/bottlenecks.d.ts +9 -0
  344. package/dist/core/performance-optimizer/index.d.ts +13 -0
  345. package/dist/core/performance-optimizer/optimizer.d.ts +43 -0
  346. package/dist/core/performance-optimizer/profiler.d.ts +38 -0
  347. package/dist/core/performance-optimizer/react.d.ts +55 -0
  348. package/dist/core/performance-optimizer/strategies.d.ts +22 -0
  349. package/dist/core/performance-optimizer/types.d.ts +227 -0
  350. package/dist/core/performance-optimizer/workers.d.ts +27 -0
  351. package/dist/core/physics/collision-constraints.d.ts +15 -0
  352. package/dist/core/physics/collision-detection.d.ts +93 -0
  353. package/dist/core/physics/collision-response.d.ts +24 -0
  354. package/dist/core/physics/collision-types.d.ts +381 -0
  355. package/dist/core/physics/collision-world.d.ts +11 -0
  356. package/dist/core/physics/composition-behaviors.d.ts +97 -0
  357. package/dist/core/physics/composition-choreography.d.ts +14 -0
  358. package/dist/core/physics/composition-engine.d.ts +25 -0
  359. package/dist/core/physics/composition-recipes.d.ts +46 -0
  360. package/dist/core/physics/composition-types.d.ts +265 -0
  361. package/dist/core/physics/composition-validation.d.ts +33 -0
  362. package/dist/core/physics/index.d.ts +37 -0
  363. package/dist/core/physics/inertia-animation.d.ts +11 -0
  364. package/dist/core/physics/inertia-math.d.ts +56 -0
  365. package/dist/core/physics/inertia-presets.d.ts +25 -0
  366. package/dist/core/physics/inertia-simulation.d.ts +11 -0
  367. package/dist/core/physics/inertia-types.d.ts +355 -0
  368. package/dist/core/physics/inertia-validation.d.ts +22 -0
  369. package/dist/core/physics/math.d.ts +99 -0
  370. package/dist/core/physics/presets.d.ts +28 -0
  371. package/dist/core/physics/simulation.d.ts +11 -0
  372. package/dist/core/physics/spring-animation.d.ts +11 -0
  373. package/dist/core/physics/spring-math.d.ts +47 -0
  374. package/dist/core/physics/spring-presets.d.ts +29 -0
  375. package/dist/core/physics/spring-simulation.d.ts +11 -0
  376. package/dist/core/physics/spring-types.d.ts +350 -0
  377. package/dist/core/physics/spring-validation.d.ts +22 -0
  378. package/dist/core/physics/stepper.d.ts +24 -0
  379. package/dist/core/physics/types.d.ts +280 -0
  380. package/dist/core/physics/validation.d.ts +62 -0
  381. package/dist/core/pointer-capture.d.ts +7 -0
  382. package/dist/core/reference-analysis/index.d.ts +10 -0
  383. package/dist/core/reference-analysis/interpreter.d.ts +12 -0
  384. package/dist/core/reference-analysis/planner.d.ts +15 -0
  385. package/dist/core/reference-analysis/specification.d.ts +14 -0
  386. package/dist/core/reference-analysis/types.d.ts +244 -0
  387. package/dist/core/resource-intelligence/cache.d.ts +43 -0
  388. package/dist/core/resource-intelligence/gpu.d.ts +19 -0
  389. package/dist/core/resource-intelligence/index.d.ts +16 -0
  390. package/dist/core/resource-intelligence/leaks.d.ts +13 -0
  391. package/dist/core/resource-intelligence/memory.d.ts +27 -0
  392. package/dist/core/resource-intelligence/pooling.d.ts +32 -0
  393. package/dist/core/resource-intelligence/pressure.d.ts +32 -0
  394. package/dist/core/resource-intelligence/react.d.ts +63 -0
  395. package/dist/core/resource-intelligence/registry.d.ts +33 -0
  396. package/dist/core/resource-intelligence/reports.d.ts +14 -0
  397. package/dist/core/resource-intelligence/types.d.ts +232 -0
  398. package/dist/core/scene-generation/engine.d.ts +31 -0
  399. package/dist/core/scene-generation/generator.d.ts +14 -0
  400. package/dist/core/scene-generation/index.d.ts +14 -0
  401. package/dist/core/scene-generation/input-parser.d.ts +24 -0
  402. package/dist/core/scene-generation/presets.d.ts +10 -0
  403. package/dist/core/scene-generation/react.d.ts +13 -0
  404. package/dist/core/scene-generation/scene-analyzer.d.ts +9 -0
  405. package/dist/core/scene-generation/scene-planner.d.ts +12 -0
  406. package/dist/core/scene-generation/types.d.ts +236 -0
  407. package/dist/core/scene-generation/validator.d.ts +18 -0
  408. package/dist/core/schema.d.ts +185 -0
  409. package/dist/core/scroll-intelligence/generator.d.ts +11 -0
  410. package/dist/core/scroll-intelligence/index.d.ts +11 -0
  411. package/dist/core/scroll-intelligence/intent.d.ts +11 -0
  412. package/dist/core/scroll-intelligence/runtime.d.ts +21 -0
  413. package/dist/core/scroll-intelligence/schema.d.ts +78 -0
  414. package/dist/core/scroll-intelligence/types.d.ts +85 -0
  415. package/dist/core/spring.d.ts +38 -0
  416. package/dist/core/svg-morph/animator.d.ts +10 -0
  417. package/dist/core/svg-morph/arc-to-cubic.d.ts +11 -0
  418. package/dist/core/svg-morph/index.d.ts +10 -0
  419. package/dist/core/svg-morph/interpolate.d.ts +23 -0
  420. package/dist/core/svg-morph/normalize.d.ts +34 -0
  421. package/dist/core/svg-morph/parser.d.ts +13 -0
  422. package/dist/core/svg-morph/shapes.d.ts +32 -0
  423. package/dist/core/svg-morph/types.d.ts +144 -0
  424. package/dist/core/transform.d.ts +27 -0
  425. package/dist/core/transitions/controller.d.ts +45 -0
  426. package/dist/core/transitions/engine.d.ts +26 -0
  427. package/dist/core/transitions/group-transition.d.ts +30 -0
  428. package/dist/core/transitions/index.d.ts +15 -0
  429. package/dist/core/transitions/presets.d.ts +16 -0
  430. package/dist/core/transitions/schema.d.ts +71 -0
  431. package/dist/core/transitions/shared-element-transition.d.ts +88 -0
  432. package/dist/core/transitions/shared-element.d.ts +84 -0
  433. package/dist/core/transitions/types.d.ts +185 -0
  434. package/dist/core/transitions/view-transition.d.ts +25 -0
  435. package/dist/core/typography/engine.d.ts +19 -0
  436. package/dist/core/typography/index.d.ts +15 -0
  437. package/dist/core/typography/path-motion.d.ts +24 -0
  438. package/dist/core/typography/presets.d.ts +14 -0
  439. package/dist/core/typography/properties.d.ts +19 -0
  440. package/dist/core/typography/segmenter.d.ts +32 -0
  441. package/dist/core/typography/stagger.d.ts +15 -0
  442. package/dist/core/typography/transitions.d.ts +11 -0
  443. package/dist/core/typography/types.d.ts +154 -0
  444. package/dist/core/utils/safe-json.d.ts +50 -0
  445. package/dist/core/visual-style-registry.d.ts +659 -0
  446. package/dist/easing/easings.d.ts +44 -0
  447. package/dist/effects/border-beam.d.ts +28 -0
  448. package/dist/effects/count-up.d.ts +30 -0
  449. package/dist/effects/cursor-trail.d.ts +23 -0
  450. package/dist/effects/drag.d.ts +41 -0
  451. package/dist/effects/draw-svg.d.ts +19 -0
  452. package/dist/effects/follow-pointer.d.ts +19 -0
  453. package/dist/effects/glow.d.ts +25 -0
  454. package/dist/effects/gradient-text.d.ts +22 -0
  455. package/dist/effects/hover-motion.d.ts +32 -0
  456. package/dist/effects/in-view.d.ts +14 -0
  457. package/dist/effects/magnetic.d.ts +40 -0
  458. package/dist/effects/morph-svg.d.ts +15 -0
  459. package/dist/effects/parallax.d.ts +42 -0
  460. package/dist/effects/pinch.d.ts +27 -0
  461. package/dist/effects/reveal.d.ts +33 -0
  462. package/dist/effects/ripple.d.ts +21 -0
  463. package/dist/effects/scroll-animate.d.ts +23 -0
  464. package/dist/effects/scroll-direction.d.ts +19 -0
  465. package/dist/effects/scroll-progress.d.ts +29 -0
  466. package/dist/effects/scroll-trigger.d.ts +22 -0
  467. package/dist/effects/scroll-velocity.d.ts +29 -0
  468. package/dist/effects/shine.d.ts +23 -0
  469. package/dist/effects/split-text.d.ts +17 -0
  470. package/dist/effects/spotlight.d.ts +24 -0
  471. package/dist/effects/stagger.d.ts +46 -0
  472. package/dist/effects/swipe.d.ts +27 -0
  473. package/dist/effects/text-highlight.d.ts +25 -0
  474. package/dist/effects/text-mask.d.ts +25 -0
  475. package/dist/effects/text-reveal.d.ts +28 -0
  476. package/dist/effects/text-scramble.d.ts +18 -0
  477. package/dist/effects/tilt.d.ts +42 -0
  478. package/dist/effects/typewriter.d.ts +26 -0
  479. package/dist/graphics/capabilities.d.ts +12 -0
  480. package/dist/graphics/composition/engine.d.ts +14 -0
  481. package/dist/graphics/composition/fallback.d.ts +13 -0
  482. package/dist/graphics/composition/index.d.ts +10 -0
  483. package/dist/graphics/composition/ordering.d.ts +29 -0
  484. package/dist/graphics/composition/quality.d.ts +24 -0
  485. package/dist/graphics/composition/schema.d.ts +156 -0
  486. package/dist/graphics/composition/types.d.ts +81 -0
  487. package/dist/graphics/composition/unified.d.ts +23 -0
  488. package/dist/graphics/effects/advanced/engine.d.ts +9 -0
  489. package/dist/graphics/effects/advanced/index.d.ts +1 -0
  490. package/dist/graphics/effects/composer.d.ts +9 -0
  491. package/dist/graphics/effects/distortion/engine.d.ts +9 -0
  492. package/dist/graphics/effects/distortion/index.d.ts +1 -0
  493. package/dist/graphics/effects/fluid/engine.d.ts +9 -0
  494. package/dist/graphics/effects/fluid/index.d.ts +1 -0
  495. package/dist/graphics/effects/index.d.ts +10 -0
  496. package/dist/graphics/effects/particles/engine.d.ts +9 -0
  497. package/dist/graphics/effects/particles/index.d.ts +2 -0
  498. package/dist/graphics/effects/particles/pool.d.ts +17 -0
  499. package/dist/graphics/effects/schema.d.ts +312 -0
  500. package/dist/graphics/effects/types.d.ts +85 -0
  501. package/dist/graphics/engine.d.ts +5 -0
  502. package/dist/graphics/environment/clouds.d.ts +28 -0
  503. package/dist/graphics/environment/environment.d.ts +50 -0
  504. package/dist/graphics/environment/fire-smoke.d.ts +32 -0
  505. package/dist/graphics/environment/fog.d.ts +28 -0
  506. package/dist/graphics/environment/index.d.ts +18 -0
  507. package/dist/graphics/environment/lightning.d.ts +33 -0
  508. package/dist/graphics/environment/rain.d.ts +33 -0
  509. package/dist/graphics/environment/snow.d.ts +30 -0
  510. package/dist/graphics/environment/types.d.ts +184 -0
  511. package/dist/graphics/environment/weather.d.ts +19 -0
  512. package/dist/graphics/environment/wind.d.ts +23 -0
  513. package/dist/graphics/fluid/flow-field.d.ts +74 -0
  514. package/dist/graphics/fluid/grid.d.ts +43 -0
  515. package/dist/graphics/fluid/index.d.ts +13 -0
  516. package/dist/graphics/fluid/interactions.d.ts +39 -0
  517. package/dist/graphics/fluid/rendering.d.ts +32 -0
  518. package/dist/graphics/fluid/simulation.d.ts +50 -0
  519. package/dist/graphics/fluid/solver.d.ts +19 -0
  520. package/dist/graphics/fluid/types.d.ts +186 -0
  521. package/dist/graphics/gpu-simulation/backends/backend.d.ts +24 -0
  522. package/dist/graphics/gpu-simulation/backends/cpu.d.ts +21 -0
  523. package/dist/graphics/gpu-simulation/backends/selection.d.ts +15 -0
  524. package/dist/graphics/gpu-simulation/backends/webgl2.d.ts +28 -0
  525. package/dist/graphics/gpu-simulation/backends/webgpu.d.ts +23 -0
  526. package/dist/graphics/gpu-simulation/capabilities.d.ts +14 -0
  527. package/dist/graphics/gpu-simulation/device.d.ts +17 -0
  528. package/dist/graphics/gpu-simulation/engine.d.ts +8 -0
  529. package/dist/graphics/gpu-simulation/index.d.ts +22 -0
  530. package/dist/graphics/gpu-simulation/ping-pong.d.ts +23 -0
  531. package/dist/graphics/gpu-simulation/pipeline.d.ts +18 -0
  532. package/dist/graphics/gpu-simulation/resource-manager.d.ts +8 -0
  533. package/dist/graphics/gpu-simulation/shaders.d.ts +50 -0
  534. package/dist/graphics/gpu-simulation/types.d.ts +288 -0
  535. package/dist/graphics/index.d.ts +23 -0
  536. package/dist/graphics/materials/glass.d.ts +22 -0
  537. package/dist/graphics/materials/index.d.ts +9 -0
  538. package/dist/graphics/materials/lighting.d.ts +22 -0
  539. package/dist/graphics/materials/presets.d.ts +28 -0
  540. package/dist/graphics/materials/schema.d.ts +574 -0
  541. package/dist/graphics/materials/surface.d.ts +13 -0
  542. package/dist/graphics/materials/types.d.ts +150 -0
  543. package/dist/graphics/particle-fields/composition.d.ts +32 -0
  544. package/dist/graphics/particle-fields/forces.d.ts +103 -0
  545. package/dist/graphics/particle-fields/index.d.ts +12 -0
  546. package/dist/graphics/particle-fields/interaction.d.ts +32 -0
  547. package/dist/graphics/particle-fields/spatial-index.d.ts +20 -0
  548. package/dist/graphics/particle-fields/system.d.ts +52 -0
  549. package/dist/graphics/particle-fields/types.d.ts +138 -0
  550. package/dist/graphics/particles/behaviors.d.ts +11 -0
  551. package/dist/graphics/particles/controller.d.ts +82 -0
  552. package/dist/graphics/particles/data-layout.d.ts +51 -0
  553. package/dist/graphics/particles/emitters.d.ts +24 -0
  554. package/dist/graphics/particles/index.d.ts +15 -0
  555. package/dist/graphics/particles/random.d.ts +25 -0
  556. package/dist/graphics/particles/rendering.d.ts +16 -0
  557. package/dist/graphics/particles/simulation.d.ts +23 -0
  558. package/dist/graphics/particles/types.d.ts +282 -0
  559. package/dist/graphics/renderer.d.ts +66 -0
  560. package/dist/graphics/resource-manager.d.ts +6 -0
  561. package/dist/graphics/schema.d.ts +177 -0
  562. package/dist/graphics/simulation/adapters.d.ts +36 -0
  563. package/dist/graphics/simulation/coordinator.d.ts +64 -0
  564. package/dist/graphics/simulation/index.d.ts +11 -0
  565. package/dist/graphics/simulation/optimizer.d.ts +101 -0
  566. package/dist/graphics/simulation/resource-manager.d.ts +40 -0
  567. package/dist/graphics/simulation/types.d.ts +126 -0
  568. package/dist/graphics/textures/cache.d.ts +29 -0
  569. package/dist/graphics/textures/canvas-utils.d.ts +31 -0
  570. package/dist/graphics/textures/engine.d.ts +34 -0
  571. package/dist/graphics/textures/generators.d.ts +29 -0
  572. package/dist/graphics/textures/index.d.ts +11 -0
  573. package/dist/graphics/textures/material-integration.d.ts +20 -0
  574. package/dist/graphics/textures/prng.d.ts +27 -0
  575. package/dist/graphics/textures/schema.d.ts +219 -0
  576. package/dist/graphics/textures/types.d.ts +80 -0
  577. package/dist/graphics/types.d.ts +152 -0
  578. package/dist/graphics/viewport.d.ts +32 -0
  579. package/dist/index.d.ts +132 -0
  580. package/dist/index.js +4921 -0
  581. package/dist/mcp/index.d.ts +12 -0
  582. package/dist/mcp/prompts.d.ts +9 -0
  583. package/dist/mcp/resources.d.ts +9 -0
  584. package/dist/mcp/server.d.ts +29 -0
  585. package/dist/mcp/tools.d.ts +9 -0
  586. package/dist/mcp/transport.d.ts +33 -0
  587. package/dist/mcp/types.d.ts +96 -0
  588. package/dist/presets.d.ts +176 -0
  589. package/dist/presets.js +3 -0
  590. package/dist/react.d.ts +5358 -0
  591. package/dist/react.js +7557 -0
  592. package/package.json +112 -6
@@ -0,0 +1,44 @@
1
+ import type { EasingFunction } from "../core/animation.js";
2
+ export declare const linear: EasingFunction;
3
+ export declare const easeInQuad: EasingFunction;
4
+ export declare const easeOutQuad: EasingFunction;
5
+ export declare const easeInOutQuad: EasingFunction;
6
+ export declare const easeInCubic: EasingFunction;
7
+ export declare const easeOutCubic: EasingFunction;
8
+ export declare const easeInOutCubic: EasingFunction;
9
+ export declare const easeInSine: EasingFunction;
10
+ export declare const easeOutSine: EasingFunction;
11
+ export declare const easeInOutSine: EasingFunction;
12
+ export declare const easeOutExpo: EasingFunction;
13
+ /** Overshoots 1 mid-animation by design; only the input is clamped. */
14
+ export declare const easeOutBack: EasingFunction;
15
+ export interface EasingRegistry {
16
+ linear: EasingFunction;
17
+ easeInQuad: EasingFunction;
18
+ easeOutQuad: EasingFunction;
19
+ easeInOutQuad: EasingFunction;
20
+ easeInCubic: EasingFunction;
21
+ easeOutCubic: EasingFunction;
22
+ easeInOutCubic: EasingFunction;
23
+ easeInSine: EasingFunction;
24
+ easeOutSine: EasingFunction;
25
+ easeInOutSine: EasingFunction;
26
+ easeOutExpo: EasingFunction;
27
+ easeOutBack: EasingFunction;
28
+ }
29
+ export type EasingName = keyof EasingRegistry;
30
+ export declare const easings: Readonly<EasingRegistry>;
31
+ export type EasingOption = EasingFunction | string;
32
+ export interface EasingRegistryApi {
33
+ /** Registers or replaces a custom easing by name. Built-in names are reserved. */
34
+ register(name: string, easing: EasingFunction): void;
35
+ /** Retrieves a built-in or registered easing; returns undefined when the name is unknown. */
36
+ get(name: string): EasingFunction | undefined;
37
+ /** Removes a registered custom easing. Built-ins cannot be removed. */
38
+ remove(name: string): boolean;
39
+ }
40
+ export declare function registerEasing(name: string, easing: EasingFunction): void;
41
+ export declare function getEasing(name: string): EasingFunction | undefined;
42
+ export declare function removeEasing(name: string): boolean;
43
+ export declare const easingRegistry: Readonly<EasingRegistryApi>;
44
+ export declare function resolveEasing(easing: EasingOption | undefined): EasingFunction;
@@ -0,0 +1,28 @@
1
+ import type { AnimateTarget } from "../core/animate.js";
2
+ export interface BorderBeamOptions {
3
+ /** Beam color. Defaults to violet. */
4
+ color?: string;
5
+ /** Angular width of the travelling beam in degrees. Must be in (0, 360]. Defaults to 120. */
6
+ size?: number;
7
+ /** Animation duration in milliseconds. Must be > 0. Defaults to 3000. */
8
+ duration?: number;
9
+ /** Border thickness in pixels. Must be > 0. Defaults to 1. */
10
+ borderWidth?: number;
11
+ /** Border corner radius in pixels. Must be >= 0. Defaults to 16. */
12
+ radius?: number;
13
+ /** Starts the beam paused. Defaults to false. */
14
+ paused?: boolean;
15
+ }
16
+ export interface BorderBeamControls {
17
+ /** Pauses the travelling beam. Safe to call repeatedly. */
18
+ pause(): void;
19
+ /** Resumes the travelling beam unless reduced motion is preferred. Safe to call repeatedly. */
20
+ resume(): void;
21
+ /** Removes the beam and restores target styles. Safe to call repeatedly. */
22
+ destroy(): void;
23
+ }
24
+ /**
25
+ * Adds a glowing border beam behind target content. The beam uses the Web Animations API,
26
+ * and falls back to a subtle static border when reduced motion is enabled.
27
+ */
28
+ export declare function borderBeam(target: AnimateTarget, options?: BorderBeamOptions): BorderBeamControls;
@@ -0,0 +1,30 @@
1
+ import type { AnimateTarget } from "../core/animate.js";
2
+ import type { EasingName } from "../easing/easings.js";
3
+ import type { EasingFunction } from "../core/animation.js";
4
+ export interface CountUpOptions {
5
+ /** Starting number. Defaults to 0. */
6
+ from?: number;
7
+ /** Final number. Defaults to 100. */
8
+ to?: number;
9
+ /** Animation duration in milliseconds. Must be >= 0. Defaults to 1000. */
10
+ duration?: number;
11
+ /** Number of fractional digits to display. Must be an integer from 0 to 20. Defaults to 0. */
12
+ decimals?: number;
13
+ /** Text prepended to the formatted number. Defaults to an empty string. */
14
+ prefix?: string;
15
+ /** Text appended to the formatted number. Defaults to an empty string. */
16
+ suffix?: string;
17
+ /** Name of an easing in the public registry, or a custom easing function. Defaults to linear. */
18
+ easing?: EasingName | EasingFunction;
19
+ /** Fires once after the count animation finishes. */
20
+ onComplete?: () => void;
21
+ }
22
+ export interface CountUpControls {
23
+ /** Cancels pending frames and restores each target's original text. Safe to repeat. */
24
+ destroy(): void;
25
+ }
26
+ /**
27
+ * Animates formatted numeric values for every target using one shared requestAnimationFrame
28
+ * loop. Destroying the effect cancels the frame and restores each element's original text.
29
+ */
30
+ export declare function countUp(target: AnimateTarget, options?: CountUpOptions): CountUpControls;
@@ -0,0 +1,23 @@
1
+ import type { AnimateTarget } from "../core/animate.js";
2
+ export type CursorTrailTarget = AnimateTarget | Document;
3
+ export interface CursorTrailOptions {
4
+ /** CSS particle color. Defaults to violet. */
5
+ color?: string;
6
+ /** Maximum number of simultaneously visible particles. Defaults to 12. */
7
+ particleCount?: number;
8
+ /** Particle diameter in pixels. Must be > 0. Defaults to 6. */
9
+ size?: number;
10
+ /** Particle lifetime in milliseconds. Must be > 0. Defaults to 500. */
11
+ duration?: number;
12
+ /** Track the document, an element, or all elements matching a selector. Defaults to document. */
13
+ target?: CursorTrailTarget;
14
+ }
15
+ export interface CursorTrailControls {
16
+ /** Removes listeners, cancels active animations, and removes the overlay. Safe to repeat. */
17
+ destroy(): void;
18
+ }
19
+ /**
20
+ * Emits a fading particle trail from pointer movement. Particle animations are individual
21
+ * Web Animations; there is no per-frame JavaScript loop.
22
+ */
23
+ export declare function cursorTrail(options?: CursorTrailOptions): CursorTrailControls;
@@ -0,0 +1,41 @@
1
+ import type { AnimateTarget } from "../core/animate.js";
2
+ export type DragAxis = "x" | "y" | "both";
3
+ export interface DragPosition {
4
+ readonly x: number;
5
+ readonly y: number;
6
+ }
7
+ export interface DragOptions {
8
+ /** Axes that may move. Defaults to "both". */
9
+ axis?: DragAxis;
10
+ /** Optional movement bounds in pixels relative to the starting position. */
11
+ bounds?: {
12
+ minX?: number;
13
+ maxX?: number;
14
+ minY?: number;
15
+ maxY?: number;
16
+ };
17
+ /**
18
+ * Element (or selector) the dragged element must stay inside. Measured at the start of each
19
+ * drag and combined with ounds (the tighter limit wins on each side).
20
+ */
21
+ container?: HTMLElement | string;
22
+ /** Continue with decaying pointer velocity after release. Defaults to true. */
23
+ inertia?: boolean;
24
+ /** Exponential velocity decay per second. Must be > 0. Defaults to 8. */
25
+ friction?: number;
26
+ /** Called when a primary pointer starts dragging. */
27
+ onDragStart?: (position: DragPosition) => void;
28
+ /** Called as the element moves, including during inertia. */
29
+ onDrag?: (position: DragPosition) => void;
30
+ /** Called on release or cancellation; cancelled is true for pointer cancellation. */
31
+ onDragEnd?: (position: DragPosition, cancelled: boolean) => void;
32
+ }
33
+ export interface DragControls {
34
+ /** Cancels active dragging and momentum, removes listeners, and restores original styles. */
35
+ destroy(): void;
36
+ }
37
+ /**
38
+ * Moves elements in response to an active pointer gesture. The transform is a composable layer,
39
+ * so it can be combined with hover, tilt, and magnetic effects without replacing their transforms.
40
+ */
41
+ export declare function drag(target: AnimateTarget, options?: DragOptions): DragControls;
@@ -0,0 +1,19 @@
1
+ import type { AnimateTarget } from "../core/animate.js";
2
+ import type { AnimationControls, AnimationOptions } from "../core/animation.js";
3
+ export interface DrawSVGOptions extends AnimationOptions {
4
+ /** Extra delay between paths, in milliseconds. Defaults to 0. */
5
+ stagger?: number;
6
+ /** Starts fully drawn and animates to the undrawn state. Defaults to false. */
7
+ reverse?: boolean;
8
+ }
9
+ export interface DrawSVGControls extends AnimationControls {
10
+ /** Cancels active path animations and restores original dash attributes and styles. */
11
+ destroy(): void;
12
+ }
13
+ /**
14
+ * Draws SVG paths by animating their stroke dash offset through the shared animation engine.
15
+ *
16
+ * A path or SVG container target is accepted; a selector may match paths or containers.
17
+ * `destroy()` is idempotent and restores each path's original dash attributes and inline styles.
18
+ */
19
+ export declare function drawSVG(target: AnimateTarget, options?: DrawSVGOptions): DrawSVGControls;
@@ -0,0 +1,19 @@
1
+ import type { AnimateTarget } from "../core/animate.js";
2
+ import type { EasingFunction } from "../core/animation.js";
3
+ export interface FollowPointerOptions {
4
+ /** Element or selector whose bounds constrain pointer-following movement. */
5
+ container: AnimateTarget;
6
+ /** Transition duration in seconds, from 0 (immediate) to 1. Defaults to 0.12. */
7
+ smoothing?: number;
8
+ /** Defaults to `easings.easeOutCubic`. */
9
+ easing?: EasingFunction;
10
+ }
11
+ export interface FollowPointerControls {
12
+ /** Removes listeners, cancels active transitions, and restores original transforms. */
13
+ destroy(): void;
14
+ }
15
+ /**
16
+ * Moves target elements to follow mouse or pen movement inside one container, constrained
17
+ * so each target stays within the container. Transform contributions compose with other effects.
18
+ */
19
+ export declare function followPointer(target: AnimateTarget, options: FollowPointerOptions): FollowPointerControls;
@@ -0,0 +1,25 @@
1
+ import type { AnimateTarget } from "../core/animate.js";
2
+ export type GlowMode = "static" | "pulse" | "hover";
3
+ export type GlowTrigger = "immediate" | "hover";
4
+ export interface GlowOptions {
5
+ /** CSS glow color. Defaults to violet. */
6
+ color?: string;
7
+ /** Glow opacity between 0 and 1. Defaults to 0.7. */
8
+ intensity?: number;
9
+ /** Glow blur radius in pixels. Defaults to 24. */
10
+ blur?: number;
11
+ /** Static, pulsing, or pointer-hover glow. Defaults to "static". */
12
+ mode?: GlowMode;
13
+ /** Pulse period in milliseconds. Defaults to 2000. */
14
+ duration?: number;
15
+ /** Activate immediately or only while hovered. Defaults to "immediate". */
16
+ trigger?: GlowTrigger;
17
+ }
18
+ export interface GlowControls {
19
+ /** Cancels animations, removes pointer listeners, and restores original inline styles. Safe to repeat. */
20
+ destroy(): void;
21
+ }
22
+ /**
23
+ * Adds a static, pulsing, or hover-activated glow without replacing existing content or shadows.
24
+ */
25
+ export declare function glow(target: AnimateTarget, options?: GlowOptions): GlowControls;
@@ -0,0 +1,22 @@
1
+ import type { AnimateTarget } from "../core/animate.js";
2
+ export interface GradientTextOptions {
3
+ /** CSS colors used for the text gradient. Defaults to a violet/cyan pair. */
4
+ colors?: readonly string[];
5
+ /** Gradient angle in degrees. Defaults to 90. */
6
+ angle?: number;
7
+ /** Animation duration in milliseconds. Defaults to 4000. */
8
+ duration?: number;
9
+ /** Enables gradient movement. Defaults to false. */
10
+ animated?: boolean;
11
+ /** Repeats the animation indefinitely. Defaults to true. */
12
+ loop?: boolean;
13
+ }
14
+ export interface GradientTextControls {
15
+ /** Cancels animation and restores the original inline text styles. Safe to repeat. */
16
+ destroy(): void;
17
+ }
18
+ /**
19
+ * Applies a CSS text gradient and optionally moves it with the Web Animations API.
20
+ * Original inline styles are restored when destroyed.
21
+ */
22
+ export declare function gradientText(target: AnimateTarget, options?: GradientTextOptions): GradientTextControls;
@@ -0,0 +1,32 @@
1
+ import type { AnimateTarget } from "../core/animate.js";
2
+ import type { EasingFunction } from "../core/animation.js";
3
+ export interface HoverMotionValues {
4
+ /** Horizontal translation in pixels. Defaults to 0. */
5
+ x?: number;
6
+ /** Vertical translation in pixels. Defaults to 0. */
7
+ y?: number;
8
+ /** Scale multiplier. Defaults to 1. */
9
+ scale?: number;
10
+ /** Rotation in degrees. Defaults to 0. */
11
+ rotate?: number;
12
+ }
13
+ export interface HoverMotionOptions {
14
+ /** Transform layer applied while the pointer is over an element. */
15
+ enter?: HoverMotionValues;
16
+ /** Transform layer applied after leaving; a custom pose remains until re-entry or destroy. */
17
+ leave?: HoverMotionValues;
18
+ /** Transition duration in milliseconds. Defaults to 220. */
19
+ duration?: number;
20
+ /** Defaults to `easings.easeOutCubic`. */
21
+ easing?: EasingFunction;
22
+ }
23
+ export interface HoverMotionControls {
24
+ /** Removes listeners, cancels active transitions, and restores original transforms. */
25
+ destroy(): void;
26
+ }
27
+ /**
28
+ * Animates a composable transform layer on pointer enter/leave and keyboard focus/blur.
29
+ * Mouse and pen pointers are supported; touch and reduced-motion preferences leave elements
30
+ * at their resting state.
31
+ */
32
+ export declare function hoverMotion(target: AnimateTarget, options?: HoverMotionOptions): HoverMotionControls;
@@ -0,0 +1,14 @@
1
+ import type { ScrollTriggerOptions } from "./scroll-trigger.js";
2
+ import type { AnimateTarget } from "../core/animate.js";
3
+ export type InViewCleanup = () => void;
4
+ export type InViewCallback = (element: HTMLElement, entry: IntersectionObserverEntry) => void | InViewCleanup;
5
+ export type InViewOptions = Pick<ScrollTriggerOptions, "rootMargin" | "threshold" | "once">;
6
+ export interface InViewControls {
7
+ /** Stops observing targets and runs cleanup for every currently visible target. */
8
+ destroy(): void;
9
+ }
10
+ /**
11
+ * Runs a callback when a target enters the viewport, and its optional cleanup when
12
+ * that target leaves or the observer is destroyed.
13
+ */
14
+ export declare function inView(target: AnimateTarget, callback: InViewCallback, options?: InViewOptions): InViewControls;
@@ -0,0 +1,40 @@
1
+ import type { AnimateTarget } from "../core/animate.js";
2
+ import type { EasingFunction } from "../core/animation.js";
3
+ export interface MagneticOptions {
4
+ /** Fraction of the cursor's distance from the element's center to follow. Defaults to 0.25. */
5
+ strength?: number;
6
+ /** Maximum translation per axis, in pixels. Defaults to 12. */
7
+ maxTranslate?: number;
8
+ /** Maximum pointer distance from the element center to apply attraction. Defaults to unlimited. */
9
+ distance?: number;
10
+ /** Duration of each movement tween in milliseconds. Defaults to 200. */
11
+ duration?: number;
12
+ /** Defaults to `easings.easeOutCubic`. */
13
+ easing?: EasingFunction;
14
+ }
15
+ export interface MagneticControls {
16
+ /** Removes listeners, cancels animations and restores original transforms. Safe to call repeatedly. */
17
+ destroy(): void;
18
+ }
19
+ /**
20
+ * Makes elements drift toward the cursor while it hovers them, then settle back.
21
+ *
22
+ * - The movement is appended to the element's existing transform (`<base> translate(x, y)`).
23
+ * The base is the inline transform, or the computed one when no inline transform is set
24
+ * (read once per hover, never per frame).
25
+ * - The element's bounding box is measured once when the pointer enters. Pointer moves only
26
+ * do arithmetic and start a short tween from the current offset, so there are no layout
27
+ * reads per move or per frame. If the page scrolls or layout changes during a hover, the
28
+ * center is re-measured on the next enter.
29
+ * - On leave the element tweens back to rest, then its original inline transform is restored
30
+ * exactly (or removed if there was none). Other inline styles are never touched.
31
+ * - Reduced motion (checked on every pointer event) disables the effect entirely; an element
32
+ * that is mid-hover when the preference turns on settles back to rest. Touch pointers are ignored.
33
+ * - Throws `RangeError` for invalid numbers, `TypeError` for a non-function easing, and the
34
+ * same selector/target errors as `animate()`. A target matching no elements returns inert controls.
35
+ */
36
+ export declare function magnetic(target: AnimateTarget, options?: MagneticOptions): MagneticControls;
37
+ /** Alias for `magnetic()` with the same strength, translation, and distance options. */
38
+ export declare const magneticElement: typeof magnetic;
39
+ export type MagneticElementOptions = MagneticOptions;
40
+ export type MagneticElementControls = MagneticControls;
@@ -0,0 +1,15 @@
1
+ import type { AnimationControls, AnimationOptions } from "../core/animation.js";
2
+ export type MorphSVGTarget = SVGElement | string;
3
+ export interface MorphSVGOptions extends AnimationOptions {
4
+ }
5
+ export interface MorphSVGControls extends AnimationControls {
6
+ /** Cancels active morphs and restores each path's original `d` attribute. */
7
+ destroy(): void;
8
+ }
9
+ /**
10
+ * Morphs compatible SVG path data. Identical command structures interpolate token by token;
11
+ * otherwise both paths are normalized to absolute M/L/C/Q/A/Z segments (relative commands, H/V,
12
+ * S/T, and implicit repeats) and must then match segment by segment. Incompatible structures
13
+ * are rejected instead of approximated.
14
+ */
15
+ export declare function morphSVG(target: MorphSVGTarget, toPath: string, options?: MorphSVGOptions): MorphSVGControls;
@@ -0,0 +1,42 @@
1
+ import type { AnimateTarget } from "../core/animate.js";
2
+ import type { EasingFunction } from "../core/animation.js";
3
+ export type ParallaxAxis = "x" | "y";
4
+ export interface ParallaxOptions {
5
+ /**
6
+ * Fraction of the element's distance from the viewport center that is added as a translation.
7
+ * Positive values make the layer move slower than the page, negative values faster. May be 0.
8
+ * Defaults to 0.3.
9
+ */
10
+ speed?: number;
11
+ /** Axis to translate along. Defaults to "y". */
12
+ axis?: ParallaxAxis;
13
+ /** Maximum absolute translation in pixels. Must be >= 0. Defaults to 100. */
14
+ maxOffset?: number;
15
+ /** Shapes the clamped offset: `easing(|offset| / maxOffset)`. Defaults to linear. */
16
+ easing?: EasingFunction;
17
+ }
18
+ export interface ParallaxControls {
19
+ /** Removes listeners, cancels the pending frame and restores original transforms. Safe to call repeatedly. */
20
+ destroy(): void;
21
+ }
22
+ /**
23
+ * Moves elements along one axis as the page scrolls, relative to the viewport center.
24
+ *
25
+ * - An element's offset is `-(elementCenter - viewportCenter) * speed`, clamped to `maxOffset` and
26
+ * shaped by `easing`. It is 0 when the element is centered in the viewport.
27
+ * - One passive `scroll` listener and one `requestAnimationFrame` serve every element; at most one
28
+ * frame is pending, and nothing runs while the page is idle.
29
+ * - Layout is read only when the effect starts, on `resize`, and when reduced motion is turned
30
+ * back off - never on scroll. Each element's resting position is cached in page coordinates
31
+ * (measured with its original transform in place), so scroll frames are pure arithmetic.
32
+ * Layout shifts that don't fire `resize` are not noticed until the next resize.
33
+ * - Styles are written only when the rounded offset changes. The effect writes only `transform`,
34
+ * as `<original> translate(x, y)`, where the original is the inline transform, or the computed
35
+ * transform when no inline one is set. An element that never needs to move is never written to.
36
+ * - Reduced motion (checked every frame and watched through `matchMedia` change events) restores
37
+ * every original transform and keeps the effect inactive until the preference is turned off.
38
+ * - Throws `Error` when `window` or `requestAnimationFrame` is unavailable, `RangeError` for invalid
39
+ * numbers, `TypeError` for an invalid axis or easing, and the same selector/target errors as
40
+ * `animate()`. A target matching no elements returns inert controls.
41
+ */
42
+ export declare function parallax(target: AnimateTarget, options?: ParallaxOptions): ParallaxControls;
@@ -0,0 +1,27 @@
1
+ import type { AnimateTarget } from "../core/animate.js";
2
+ export interface PinchGesture {
3
+ /** Current pointer distance divided by the distance when the pinch started. */
4
+ readonly scale: number;
5
+ readonly distance: number;
6
+ readonly initialDistance: number;
7
+ readonly centerX: number;
8
+ readonly centerY: number;
9
+ /** True when the gesture ended because the browser cancelled a pointer. */
10
+ readonly cancelled: boolean;
11
+ }
12
+ export interface PinchOptions {
13
+ /** Minimum distance in pixels between pointers required to start. Defaults to 10. */
14
+ minDistance?: number;
15
+ onStart?: (gesture: PinchGesture) => void;
16
+ onUpdate?: (gesture: PinchGesture) => void;
17
+ onEnd?: (gesture: PinchGesture) => void;
18
+ }
19
+ export interface PinchControls {
20
+ /** Removes listeners, releases pointer capture, and ends any active pinch. */
21
+ destroy(): void;
22
+ }
23
+ /**
24
+ * Detects two-pointer pinch gestures on one or more HTML elements and reports
25
+ * scale relative to the pointer distance when the pinch started.
26
+ */
27
+ export declare function pinch(target: AnimateTarget, options?: PinchOptions): PinchControls;
@@ -0,0 +1,33 @@
1
+ import type { AnimatableProperties, AnimateTarget } from "../core/animate.js";
2
+ import type { EasingFunction } from "../core/animation.js";
3
+ export interface RevealOptions {
4
+ /** `[from, to]` pairs passed to `animate()`. Defaults to a fade-and-rise. */
5
+ properties?: AnimatableProperties;
6
+ /** Duration in milliseconds. Defaults to 600. */
7
+ duration?: number;
8
+ /** Delay in milliseconds. Defaults to 0. */
9
+ delay?: number;
10
+ easing?: EasingFunction;
11
+ /** IntersectionObserver threshold (0..1 or a list). Defaults to 0.15. */
12
+ threshold?: number | number[];
13
+ /** IntersectionObserver rootMargin. Defaults to "0px". */
14
+ rootMargin?: string;
15
+ /** Animate each element only the first time it is revealed. Defaults to true. */
16
+ once?: boolean;
17
+ }
18
+ export interface RevealControls {
19
+ /** Disconnects the observer and cancels running animations. Safe to call repeatedly. */
20
+ destroy(): void;
21
+ }
22
+ /**
23
+ * Animates elements the first time (or every time, with `once: false`) they scroll into view.
24
+ *
25
+ * - Elements are put in their `from` state immediately so they don't flash before
26
+ * being revealed. With reduced motion, `animate()` skips this and content stays visible,
27
+ * then jumps to its final state when revealed.
28
+ * - Options and properties are validated up front; errors are thrown synchronously
29
+ * from `reveal()` rather than later inside an observer callback.
30
+ * - Throws `Error` if `IntersectionObserver` is unavailable.
31
+ * - A target matching no elements returns inert controls.
32
+ */
33
+ export declare function reveal(target: AnimateTarget, options?: RevealOptions): RevealControls;
@@ -0,0 +1,21 @@
1
+ import type { AnimateTarget } from "../core/animate.js";
2
+ export type RippleOrigin = "pointer" | "center";
3
+ export interface RippleOptions {
4
+ /** CSS color of the expanding wave. Defaults to translucent white. */
5
+ color?: string;
6
+ /** Wave animation duration in milliseconds. Must be > 0. Defaults to 600. */
7
+ duration?: number;
8
+ /** Final scale relative to the calculated circle size. Must be > 0. Defaults to 2. */
9
+ scale?: number;
10
+ /** Center the wave or use the click position. Defaults to "pointer". */
11
+ origin?: RippleOrigin;
12
+ }
13
+ export interface RippleControls {
14
+ /** Cancels active waves, removes click listeners, and restores target styles. Safe to repeat. */
15
+ destroy(): void;
16
+ }
17
+ /**
18
+ * Creates expanding, fading click waves at the pointer or target center.
19
+ * Click events are observed without preventing default behavior or stopping propagation.
20
+ */
21
+ export declare function ripple(target: AnimateTarget, options?: RippleOptions): RippleControls;
@@ -0,0 +1,23 @@
1
+ import type { AnimatableProperties, AnimateTarget } from "../core/animate.js";
2
+ import type { EasingOption } from "../easing/easings.js";
3
+ export interface ScrollAnimateOptions {
4
+ /** Window or scrollable element to track. Defaults to window. */
5
+ scrollTarget?: Window | AnimateTarget;
6
+ /** Maps scroll progress through the same easing registry used by `animate()`. */
7
+ easing?: EasingOption;
8
+ /** Reverses the mapping so scroll start applies the `to` values. Defaults to false. */
9
+ reverse?: boolean;
10
+ /** Called after the animated values are updated for a new scroll progress. */
11
+ onUpdate?: (progress: number) => void;
12
+ }
13
+ export interface ScrollAnimateControls {
14
+ /** Pauses scroll-driven writes while retaining the latest progress. */
15
+ pause(): void;
16
+ /** Resumes scroll-driven writes at the latest measured progress. */
17
+ resume(): void;
18
+ /** Returns the latest normalized scroll progress. */
19
+ getProgress(): number;
20
+ /** Removes scroll listeners and cancels pending work. Safe to repeat. */
21
+ destroy(): void;
22
+ }
23
+ export declare function scrollAnimate(target: AnimateTarget, properties: AnimatableProperties, options?: ScrollAnimateOptions): ScrollAnimateControls;
@@ -0,0 +1,19 @@
1
+ import type { AnimateTarget } from "../core/animate.js";
2
+ export type ScrollDirection = "up" | "down" | "idle";
3
+ export interface ScrollDirectionOptions {
4
+ /** Minimum accumulated scroll movement in pixels before changing direction. Defaults to 12. */
5
+ threshold?: number;
6
+ /** Window, an element, or a selector resolving to exactly one scrollable element. Defaults to window. */
7
+ target?: Window | AnimateTarget;
8
+ /** Called only when the detected direction changes. */
9
+ onChange: (direction: ScrollDirection) => void;
10
+ }
11
+ export interface ScrollDirectionControls {
12
+ /** Cancels a pending measurement and removes the scroll listener. Safe to call repeatedly. */
13
+ destroy(): void;
14
+ }
15
+ /**
16
+ * Detects scroll direction only after movement crosses a pixel threshold.
17
+ * Passive events are batched into one animation frame, and no animation is created.
18
+ */
19
+ export declare function scrollDirection(options: ScrollDirectionOptions): ScrollDirectionControls;
@@ -0,0 +1,29 @@
1
+ import type { AnimateTarget } from "../core/animate.js";
2
+ export type ScrollProgressPosition = "top" | "bottom";
3
+ export interface ScrollProgressOptions {
4
+ /** Viewport edge for the fixed bar. Defaults to "top". */
5
+ position?: ScrollProgressPosition;
6
+ /** Bar color. Defaults to violet. */
7
+ color?: string;
8
+ /** Bar thickness in pixels. Must be > 0. Defaults to 3. */
9
+ height?: number;
10
+ /** CSS transition smoothing duration in seconds. Must be between 0 and 2. Defaults to 0.15. */
11
+ smoothing?: number;
12
+ /** Alias for smoothing, matching the original API example. */
13
+ easing?: number;
14
+ /** Scrollable element (or selector resolving to exactly one element) to track instead of the page. */
15
+ target?: AnimateTarget;
16
+ /** Called when the measured normalized scroll progress changes. */
17
+ onUpdate?: (progress: number) => void;
18
+ }
19
+ export interface ScrollProgressControls {
20
+ /** Returns the latest measured normalized scroll progress. */
21
+ getProgress(): number;
22
+ /** Cancels pending updates, removes listeners and the generated bar. Safe to repeat. */
23
+ destroy(): void;
24
+ }
25
+ /**
26
+ * Displays page or element scroll progress in a fixed bar. Scroll/resize events are batched
27
+ * into at most one animation frame; reduced motion updates the bar immediately.
28
+ */
29
+ export declare function scrollProgress(options?: ScrollProgressOptions): ScrollProgressControls;
@@ -0,0 +1,22 @@
1
+ import type { AnimateTarget } from "../core/animate.js";
2
+ export interface ScrollTriggerOptions {
3
+ /** Called when an observed element enters the configured viewport region. */
4
+ onEnter?: (element: HTMLElement, entry: IntersectionObserverEntry) => void;
5
+ /** Called when an element that entered leaves the configured viewport region. */
6
+ onLeave?: (element: HTMLElement, entry: IntersectionObserverEntry) => void;
7
+ /** IntersectionObserver root margin. Defaults to "0px". */
8
+ rootMargin?: string;
9
+ /** IntersectionObserver threshold (0..1 or a list). Defaults to 0. */
10
+ threshold?: number | number[];
11
+ /** Observe one enter/leave cycle per element. Defaults to true. */
12
+ once?: boolean;
13
+ }
14
+ export interface ScrollTriggerControls {
15
+ /** Stops observing all targets. Safe to call repeatedly. */
16
+ destroy(): void;
17
+ }
18
+ /**
19
+ * Calls transition callbacks as elements enter and leave an observer's viewport region.
20
+ * In one-time mode, each element is observed through its first complete visible cycle.
21
+ */
22
+ export declare function scrollTrigger(target: AnimateTarget, options?: ScrollTriggerOptions): ScrollTriggerControls;
@@ -0,0 +1,29 @@
1
+ import type { AnimateTarget } from "../core/animate.js";
2
+ export type ScrollVelocityDirection = "up" | "down" | "idle";
3
+ export interface ScrollVelocityData {
4
+ /** Smoothed scroll velocity in pixels per second. */
5
+ velocity: number;
6
+ /** Direction of the latest scroll movement, or "idle" when position is unchanged. */
7
+ direction: ScrollVelocityDirection;
8
+ /** Current scroll position in pixels. */
9
+ position: number;
10
+ /** Current normalized scroll position from 0 to 1. */
11
+ progress: number;
12
+ }
13
+ export interface ScrollVelocityOptions {
14
+ /** Fraction of the previous velocity retained per update, from 0 (no smoothing) to 1 (maximum smoothing). Defaults to 0.2. */
15
+ smoothing?: number;
16
+ /** Window, an element, or a selector resolving to exactly one scrollable element. Defaults to window. */
17
+ target?: Window | AnimateTarget;
18
+ /** Receives scroll measurements after each scheduled update and the initial state, including decay frames after scrolling stops until velocity settles at 0. */
19
+ onUpdate: (data: ScrollVelocityData) => void;
20
+ }
21
+ export interface ScrollVelocityControls {
22
+ /** Cancels pending measurements and removes listeners. Safe to call repeatedly. */
23
+ destroy(): void;
24
+ }
25
+ /**
26
+ * Tracks scroll direction, normalized progress, and smoothed velocity in px/s.
27
+ * Scroll events are passively observed and measurements are batched through requestAnimationFrame.
28
+ */
29
+ export declare function scrollVelocity(options: ScrollVelocityOptions): ScrollVelocityControls;
@@ -0,0 +1,23 @@
1
+ import type { AnimateTarget } from "../core/animate.js";
2
+ export type ShineTrigger = "hover" | "continuous" | "click";
3
+ export interface ShineOptions {
4
+ /** CSS color of the glossy sweep. Defaults to translucent white. */
5
+ color?: string;
6
+ /** Direction angle of the diagonal sweep in degrees. Defaults to 120. */
7
+ angle?: number;
8
+ /** Duration of a sweep in milliseconds. Must be > 0. Defaults to 1200. */
9
+ duration?: number;
10
+ /** Overlay opacity between 0 and 1. Defaults to 0.7. */
11
+ intensity?: number;
12
+ /** Sweep continuously, on hover, or on click. Defaults to "hover". */
13
+ trigger?: ShineTrigger;
14
+ }
15
+ export interface ShineControls {
16
+ /** Cancels animations, removes listeners/overlays, and restores target styles. Safe to repeat. */
17
+ destroy(): void;
18
+ }
19
+ /**
20
+ * Adds a diagonal glossy sweep using a pointer-transparent overlay.
21
+ * Motion is driven by the Web Animations API, never a JavaScript animation loop.
22
+ */
23
+ export declare function shine(target: AnimateTarget, options?: ShineOptions): ShineControls;