import { Widget } from "./widget"; export declare class Animation extends Widget { build(builder?: Internal): void; toNative(config: Animation.Configuration): Record; start(): void; pause(): void; resume(): void; stop(): void; getStatus(): Animation.Status; } export declare namespace Animation { enum RepeatMode { None = 0, Once = 1, Infinite = 2 } enum Status { Running, Paused, Stopped } interface Configuration { x: number; y: number; prefix: string; imageCount: number; path?: string; extension?: string; framesPerSecond?: number; autoStart?: boolean; repeat?: RepeatMode; onComplete?: () => void; } }