import { type CanvasExplosionState, type CanvasExplosionStateController, type CanvasExplosionStateOptions } from '@pixerate/editor/canvas'; export type { CanvasExplosionState, CanvasExplosionStateOptions }; export interface CanvasExplosionStateRune extends CanvasExplosionState { /** The framework-free controller underneath (for `canvasExplosionToolTarget` and agent tools). */ readonly controller: CanvasExplosionStateController; } /** * Headless, declarative explosion state as a Svelte 5 rune: which node is exploded * (`activeId`), which is still collapsing (`collapsingId`, so its children can play a collapse * animation before unmounting), and the collapse timer. It never touches a graph: derive the * canvas from it with `$derived` and `computeCanvasExplosionLayout` / * `calculateDirectionalDisplacement`. * * Created during component initialisation it cleans up its timer when the component unmounts; * created elsewhere, call `destroy()` yourself. */ export declare function createCanvasExplosionState(options?: CanvasExplosionStateOptions): CanvasExplosionStateRune;