import '../../lib/lottie/lottie.min';
export class LottieAnimationLoader {
    constructor() {
        this.lottie = lottie;
    }
    load(config, callback) {
        this.animation = this.lottie.loadAnimation(config);
        this.animation.addEventListener('DOMLoaded', () => {
            callback({ animation: this.animation });
        });
        return this.animation;
    }
}
