UNPKG

openai-cli-unofficial

Version:

A powerful OpenAI CLI Coding Agent built with TypeScript

39 lines 1.13 kB
export interface AnimationOptions { text: string; interval?: number; } export interface LoadingController { stop(): void; } export declare class AnimationUtils { private static readonly gradients; /** * 显示可控制的加载动画(异步关闭) */ static showLoadingAnimation(options: AnimationOptions): LoadingController; /** * 显示简单的动作动画 */ static showActionAnimation(text: string, duration?: number): Promise<void>; /** * 显示退出动画(不闪烁版本) */ static showExitAnimation(farewell: string, exitMessage: string): Promise<void>; /** * 强制清屏,确保完全清除所有内容 */ static forceClearScreen(): void; /** * 获取渐变色彩工具 */ static getGradients(): { primary: (text: string) => string; secondary: (text: string) => string; accent: (text: string) => string; success: (text: string) => string; rainbow: { multiline: (text: string) => string; }; }; } //# sourceMappingURL=animation.d.ts.map