import { Config, DotLottie, DotLottieWorker } from "@lottiefiles/dotlottie-web"; import { ComponentProps, ReactNode, RefCallback } from "react"; export * from "@lottiefiles/dotlottie-web"; //#region src/base-dotlottie-react.d.ts type BaseDotLottieProps = Omit & ComponentProps<'canvas'> & { animationId?: string; /** * A function that creates a `DotLottie` or `DotLottieWorker` instance. */ createDotLottie: (config: T extends DotLottieWorker ? Config & { workerId?: string; } : Config) => T; /** * A callback function that receives the `DotLottie` or `DotLottieWorker` instance. * * @example * ```tsx * const [dotLottie, setDotLottie] = useState(null); * * * ``` */ dotLottieRefCallback?: RefCallback; /** * @deprecated The `playOnHover` property is deprecated. * Instead, use the `onMouseEnter` and `onMouseLeave` events to control animation playback. * Utilize the `dotLottieRefCallback` to access the `DotLottie` instance and invoke the `play` and `pause` methods. * * Example usage: * ```tsx * const [dotLottie, setDotLottie] = useState(null); * * dotLottie?.play()} * onMouseLeave={() => dotLottie?.pause()} * /> * ``` */ playOnHover?: boolean; themeData?: string; workerId?: T extends DotLottieWorker ? string : undefined; }; //#endregion //#region src/dotlottie.d.ts type DotLottieReactProps = Omit, 'createDotLottie'>; declare const DotLottieReact: (props: DotLottieReactProps) => ReactNode; //#endregion //#region src/dotlottie-worker.d.ts type DotLottieWorkerReactProps = Omit, 'createDotLottie'>; declare const DotLottieWorkerReact: (props: DotLottieWorkerReactProps) => ReactNode; //#endregion //#region src/index.d.ts declare const setWasmUrl: (url: string) => void; //#endregion export { DotLottieReact, DotLottieReactProps, DotLottieWorkerReact, DotLottieWorkerReactProps, setWasmUrl }; //# sourceMappingURL=index.d.ts.map