/** * Shared animation clock for sprite frame cycling. * * Lazily starts on first subscriber, stops when the last unsubscribes. * Timer is unref'd so it never prevents process exit. */ export type TickFn = (frame: number) => void; export interface Animator { subscribe: (fn: TickFn) => () => void; stop: () => void; } export declare function createAnimator(intervalMs?: number): Animator; //# sourceMappingURL=animator.d.ts.map