/** * @description * 该文件包含一个 PreviewAnimateStatus 类,用于管理预览动画状态的转换。该类的主要功能包括: * - 初始化和管理预览动画的状态 * - 提供进入和退出动画状态的处理函数 * - 控制动画状态的延迟 */ import { PreviewProps } from './preview'; /** * @note. 同步 $delay-preview-enter-and-exit-delay */ export declare const CONST_previewEnterAndExitDelay = 240; export declare class PreviewAnimateStatus { /** * @property {string} animateStatus - 当前的动画状态 */ animateStatus: PreviewProps['animateStatus']; /** * @property {number} timer - 定时器ID,用于清除延时 */ timer: number; /** * @property {function|null} renderPreview - 渲染预览的方法 */ renderPreview: (() => void) | null; /** * @property {function|null} onExited - 退出动画后的回调函数 */ onExited: (() => void) | null; /** * 处理进入动画状态的函数 * @param {function} renderPreview - 渲染预览的方法, 此方法会触发预览组件的重新渲染 */ handleEntering: (renderPreview: () => void) => void; /** * 处理退出动画状态的函数 * @param {function} onExited - 退出动画后的回调函数 */ handleExiting: (onExited: () => void) => void; }