export interface LegacyScriptTransformer { transformScriptData(detail: unknown, work?: unknown, totalDelay?: number): any; } export interface AnimationScriptAdapterOptions { work?: unknown; totalDelay?: number; warn?: (message: string, context?: unknown) => void; /** 仅供 dnalogel 自测注入 fake converter;生产调用应使用内置 transformScriptData。 */ transformer?: LegacyScriptTransformer; } export declare class AnimationScriptAdapterSafetyError extends Error { readonly playerId: number | string | undefined; readonly reason: 'converter-unsafe-matrix' | 'unsafe-canonical-output' | 'canonical-player-count-mismatch'; constructor(playerId: number | string | undefined, reason: 'converter-unsafe-matrix' | 'unsafe-canonical-output' | 'canonical-player-count-mismatch'); } /** * 将 raw animation detail 转换为两个 DigitalPerformance plugin 共用的 canonical DigitalScript。 * Legacy player 只调用一次既有 transformScriptData;完整 v2 player 按逻辑段复用同一转换器。 */ export declare function transformAnimationDetailToDigitalScript(detail: any, options?: AnimationScriptAdapterOptions): any;