import { SpriteSheet } from "../sprites/types.js"; import { Animation } from "./types.js"; //#region src/animation/utils.d.ts /** * Create an animation from a frame name pattern. * * @example * ```typescript * // Creates animation from 'player_walk_0', 'player_walk_1', etc. * const walkAnim = createAnimationFromPattern(sheet, 'walk', 'player_walk_', 4); * ``` */ declare function createAnimationFromPattern(spriteSheet: SpriteSheet, name: string, prefix: string, count: number, options?: { fps?: number; loop?: boolean; pingPong?: boolean; startIndex?: number; suffix?: string; }): Animation; /** * Create animations from a naming convention. * Assumes frames are named: `{prefix}_{animationName}_{frameIndex}` * * @example * ```typescript * // Auto-detect animations from frames like 'player_idle_0', 'player_walk_0', etc. * const animations = createAnimationsFromNaming(sheet, 'player'); * ``` */ declare function createAnimationsFromNaming(spriteSheet: SpriteSheet, prefix: string, options?: { fps?: number; loop?: boolean; }): Animation[]; /** * Create a simple animation from an array of frame names. */ declare function createAnimation(spriteSheet: SpriteSheet, name: string, frameNames: string[], options?: { fps?: number; loop?: boolean; pingPong?: boolean; }): Animation; /** * Reverse an animation's frame order. */ declare function reverseAnimation(animation: Animation, newName?: string): Animation; /** * Concatenate multiple animations into one. */ declare function concatAnimations(name: string, animations: Animation[], options?: { fps?: number; loop?: boolean; }): Animation; //#endregion export { concatAnimations, createAnimation, createAnimationFromPattern, createAnimationsFromNaming, reverseAnimation }; //# sourceMappingURL=utils.d.ts.map