UNPKG

@ideascol/cli-maker

Version:
36 lines (35 loc) 1.26 kB
export declare function stripAnsiCodes(str: string): string; export declare class ProgressIndicator { private interval; private frameIndex; start(message?: string): void; update(message: string): void; stop(success?: boolean, finalMessage?: string): void; success(message?: string): void; error(message?: string): void; } export declare class ProgressBar { private total; private current; private barLength; private message; constructor(total: number, barLength?: number); private render; start(message?: string): void; update(current: number, message?: string): void; increment(step?: number, message?: string): void; complete(message?: string): void; error(message?: string): void; } export declare function showSuccess(message: string): void; export declare function showError(message: string): void; export declare function showWarning(message: string): void; export declare function showInfo(message: string): void; export declare function createTable(headers: string[], rows: string[][]): string; export declare function formatParameterTable(params: Array<{ name: string; type?: string; description: string; required?: boolean; options?: any[]; }>): string;