import type { Geometry } from './geometry'; import type { Performance } from './transport'; export declare const anticipation = 0.075; /** Pool the visible dots, and interpolate between the actual engraved attacks on each system. */ export declare class PlaybackAnimation { private surface; private music; private follow?; private readonly layer; private readonly bar; private readonly gradient; private readonly dots; private readonly anchors; private readonly pulses; private readonly active; private anchor; private pulse; private frame; private readonly pages; private readonly printedRows; private row?; constructor(surface: SVGElement | undefined, music: Performance, geometry: Geometry, follow?: (bar: SVGLineElement, newSystem: boolean) => void); /** Each preview page gets a sibling overlay. Its downloadable SVG stays untouched. */ private rowLayer; /** Move the playhead to the coordinate system of the next stave or system. */ private moveToRow; /** Only the playhead and currently sounding or approaching heads change between frames. */ start(elapsed: () => number): void; /** Cubic Hermite interpolation lands on each attack at its exact musical time. */ private drawBar; /** Compact the active set in place. Frame work scales with audible polyphony. */ private drawHeads; /** Reuse each ellipse and leave sustained notes alone between frames. */ private drawDot; /** Stop schedules no further frames and restores the untouched printed page. */ stop(): void; }