rawi
Version:
Rawi (راوي) is the developer-friendly AI CLI that brings the power of 11 major AI providers directly to your terminal. With seamless shell integration, persistent conversations, and 200+ specialized prompt templates, Rawi transforms your command line into
39 lines (36 loc) • 1.35 kB
TypeScript
import { Ora } from 'ora';
declare class SpinnerManager {
#private;
private constructor();
static getInstance(): SpinnerManager;
start(id: string, text: string, options?: {
color?: any;
}): Ora;
updateText(id: string, text: string): void;
succeed(id: string, text?: string): void;
fail(id: string, text?: string): void;
stop(id: string): void;
stopAll(): void;
get(id: string): Ora | undefined;
isActive(id: string): boolean;
withSpinner<T>(id: string, text: string, operation: () => Promise<T>, options?: {
successText?: string;
failText?: string;
color?: string;
}): Promise<T>;
}
declare const spinnerManager: SpinnerManager;
declare const start: (id: string, text: string, options?: {
color?: any;
}) => Ora;
declare const updateText: (id: string, text: string) => void;
declare const succeed: (id: string, text?: string) => void;
declare const fail: (id: string, text?: string) => void;
declare const stop: (id: string) => void;
declare const stopAll: () => void;
declare const withSpinner: <T>(id: string, text: string, operation: () => Promise<T>, options?: {
successText?: string;
failText?: string;
color?: string;
}) => Promise<T>;
export { SpinnerManager, fail, spinnerManager, start, stop, stopAll, succeed, updateText, withSpinner };