askeroo
Version:
A modern CLI prompt library with flow control, history navigation, and conditional prompts
24 lines • 732 B
TypeScript
export interface StreamOptions {
label?: string;
maxLines?: number;
streamId?: string;
hideOnCompletion?: boolean;
submitDelay?: number;
showLineNumbers?: boolean;
prefixSymbol?: string;
}
export type StreamStatus = "active" | "completed" | "error";
export interface StreamState {
status: StreamStatus;
lines: string[];
label?: string;
}
export interface StreamController {
write: (text: string) => Promise<void>;
writeLine: (text: string) => Promise<void>;
clear: () => Promise<void>;
setLabel: (label: string) => Promise<void>;
complete: (finalMessage?: string) => Promise<void>;
error: (errorMessage?: string) => Promise<void>;
}
//# sourceMappingURL=types.d.ts.map