UNPKG

@composableai/cli

Version:

Code generation for the interaction defined with Composable AI Studio

38 lines 1.23 kB
import { WriteStream } from "node:tty"; /** * See https://github.com/sindresorhus/cli-spinners/blob/HEAD/spinners.json for more spinners */ interface SpinnerData { interval: number; frames: string[]; } export declare class Spinner { data: SpinnerData; log: LogUpdate; timer?: NodeJS.Timeout; style?: (spinner: string) => string; _prefix: string; _suffix: string; _restoreCursor: boolean; constructor(name?: 'dots' | 'bar', stream?: WriteStream); withStyle(style: (spinner: string) => string): this; set prefix(value: string); get prefix(): string; set suffix(value: string); get suffix(): string; start(shodHideCursor?: boolean): this; done(replacement?: boolean | string): this; } export declare class LogUpdate { stream: WriteStream; last?: string; constructor(stream?: WriteStream); clear(): this; print(text: string): this; } export declare function toggleCursor(show: boolean, stream?: WriteStream): void; export declare function showCursor(stream?: WriteStream): void; export declare function hideCursor(stream?: WriteStream): void; export declare function restoreCursotOnExit(): void; export {}; //# sourceMappingURL=console.d.ts.map