import React from 'react'; export interface ThreeThinkingLottieProps { /** * 是否自动播放动画 * @default true */ autoplay?: boolean; /** * 是否循环播放动画 * @default true */ loop?: boolean; /** * 动画容器类名 */ className?: string; /** * 动画容器样式 */ style?: React.CSSProperties; /** * 动画尺寸 * @default 32 */ size?: number; /** * 加载占位符 */ fallback?: React.ReactNode; } /** * ThreeThinkingLottie 组件 - 支持按需加载的思考动画组件 * * 该组件使用动态 import 实现 lottie JSON 文件的按需加载, * 避免将动画数据打包进主包,减少首屏加载体积。 * * @component * @description 支持按需加载的 Lottie 思考动画组件 * @param {ThreeThinkingLottieProps} props - 组件属性 * @param {boolean} [props.autoplay=true] - 是否自动播放动画 * @param {boolean} [props.loop=true] - 是否循环播放动画 * @param {string} [props.className] - 动画容器类名 * @param {React.CSSProperties} [props.style] - 动画容器样式 * @param {number} [props.size=32] - 动画尺寸 * @param {React.ReactNode} [props.fallback] - 加载占位符 * * @example * ```tsx * // 基础用法 * * * // 自定义尺寸 * * * // 自定义加载占位符 * } /> * ``` * * @returns {React.ReactElement} 渲染的 Lottie 思考动画组件 * * @remarks * - 使用动态 import 按需加载 lottie JSON 文件 * - 减少首屏加载体积 * - 支持自定义加载占位符 * - 支持自定义尺寸和样式 */ export declare const ThreeThinkingLottie: React.FC; export default ThreeThinkingLottie;