aahook
Version:
A CLI tool that displays ASCII art when commands succeed or fail
64 lines • 1.55 kB
TypeScript
import { AnimationType, AnimationOptions } from '../../types/animation';
/**
* Main animation engine for rendering various animation types
*/
export declare class AnimationEngine {
private options;
private renderer;
private timingController;
private interrupted;
constructor(options?: AnimationOptions);
/**
* Animate content with specified animation type
*/
animate(content: string | string[], type?: AnimationType): Promise<void>;
/**
* Typing animation - display characters one by one
*/
private animateTyping;
/**
* Fade animation - display lines progressively
*/
private animateFade;
/**
* Render a single frame of fade animation
*/
private renderFadeFrame;
/**
* Frame animation - cycle through multiple frames
*/
private animateFrames;
/**
* Blink animation - make content blink
*/
private animateBlink;
/**
* Slide animation - slide content from direction
*/
private animateSlide;
/**
* Slide content horizontally
*/
private slideHorizontal;
/**
* Slide content vertically
*/
private slideVertical;
/**
* Get ordered lines based on direction
*/
private getOrderedLines;
/**
* Clear frame area
*/
private clearFrame;
/**
* Setup interrupt handler for Ctrl+C
*/
private setupInterruptHandler;
/**
* Clean up resources
*/
cleanup(): void;
}
//# sourceMappingURL=animation-engine.d.ts.map