import BaseFoundation, { DefaultAdapter } from "../base/foundation"; import lottie, { AnimationItem } from "lottie-web"; import { ArgsType } from "../collapse/foundation"; export interface LottieAdapter

, S = Record> extends DefaultAdapter { getContainer: () => Element; getLoadParams: () => ArgsType[0]; } export interface LottieBaseProps { width?: string; height?: string; params: Partial[0]>; getAnimationInstance?: (instance: AnimationItem | null) => void; getLottie?: (lottiePKG: typeof lottie) => void; } export interface LottieBaseState { } declare class LottieFoundation

, S = Record> extends BaseFoundation, P, S> { animation: null | AnimationItem; constructor(adapter: LottieAdapter); static getLottie: () => typeof lottie; init(lifecycle?: any): void; handleParamsUpdate: () => void; destroy(): void; } export default LottieFoundation;