import { PptxElement, PptxElementAnimation } from 'pptx-viewer-core'; import { AnimationLabelTranslate } from 'pptx-viewer-shared'; import { EditorState } from '../../editor/editor-state.svelte'; /** * Svelte-side glue for the docked inspector AnimationPanel: the slide-level * commit path plus the small pure bits (timeline labels) that stay * binding-local. Timeline-bar layout, field/effect mutations, and the * drag-reorder algorithm itself all come from the shared `animation-authoring` * module; everything here is orchestration. */ /** * Write a new `animations` array onto the current slide as a single undoable * step (the Svelte equivalent of React's `onUpdateSlide({ animations })`, * which routes through the editor history the same way). */ export declare function commitSlideAnimations(editor: EditorState, animations: PptxElementAnimation[]): void; /** Animations sorted by their `order` field (React's `sortedAnimations`). */ export declare function sortAnimations(animations: readonly PptxElementAnimation[]): PptxElementAnimation[]; /** One proportional bar in the horizontal timeline strip. */ export interface TimelineBarDatum { anim: PptxElementAnimation; leftPercent: number; widthPercent: number; } /** * Delay/duration of each animation as percentages of the longest end time * (shared's `buildAnimationTimelineBars`). */ export declare function buildTimelineBarData(sorted: readonly PptxElementAnimation[]): TimelineBarDatum[]; /** * Human label for a timeline row: the element's text when it has any, * otherwise its type label, falling back to a truncated id (React's * `getTimelineLabel`). */ export declare function timelineLabel(anim: PptxElementAnimation, elements: readonly PptxElement[]): string; /** * Effect name shown in a bar's tooltip (React's `animationTypeLabel`). * * It used to print the preset token verbatim, so the tooltip read `fadeIn` * rather than "Fade In" and never translated; the shared resolver names both * the editor and the OOXML catalogue vocabularies. */ export declare function animationTypeLabel(anim: PptxElementAnimation, t: AnimationLabelTranslate): string; //# sourceMappingURL=animation-panel-helpers.d.ts.map