UNPKG

aahook

Version:

A CLI tool that displays ASCII art when commands succeed or fail

76 lines 1.64 kB
import { TimingOptions } from '../../types/animation'; /** * TimingController manages animation timing and easing functions */ export declare class TimingController { private options; private startTime; private pausedTime; private isPaused; constructor(options?: TimingOptions); /** * Wait for specified milliseconds */ wait(ms: number): Promise<void>; /** * Calculate delay based on easing function */ calculateDelay(index: number, total: number): number; /** * Apply easing function to progress value */ private applyEasing; /** * Ease-in function (slow start) */ private easeIn; /** * Ease-out function (slow end) */ private easeOut; /** * Ease-in-out function (slow start and end) */ private easeInOut; /** * Cubic bezier approximation */ private cubicBezier; /** * Get delay between frames based on FPS */ getFrameDelay(): number; /** * Get delay for character-by-character animation */ getCharDelay(): number; /** * Get delay for line-by-line animation */ getLineDelay(): number; /** * Check if should continue looping */ shouldContinueLoop(currentLoop: number): boolean; /** * Start timing */ start(): void; /** * Pause timing */ pause(): void; /** * Resume timing */ resume(): void; /** * Get elapsed time */ getElapsed(): number; /** * Reset timing */ reset(): void; } //# sourceMappingURL=timing-controller.d.ts.map