import { Ora } from 'ora'; import { HintCategory, TableCell, TableOptions, UI } from './ui.js'; import { StatsigService } from '../service/statsig-service.js'; export interface ProgressResult { successful: boolean; message: string; } type TableData = Record[] | undefined | null; export declare class CommandLineUI implements UI { private readonly verbose; private readonly customEffectsEnabled?; private readonly nonInteractive?; private readonly logger; private readonly spinner; private readonly promptInternal; private insideProgress; private statsigService; private cachedSpinnerConfig; private static HINT_ROTATION_INTERVAL_MS; private hintLine; private hintTimer; private hintGeneration; private addedProgressPadding; private static ANSI_MOVE_CURSOR_UP_ONE; private static ANSI_CLEAR_CURSOR_LINE; private static NON_TTY_ENV_DEFAULT_COLUMNS; private static STDIN_CHUNK_BYTES; private static STDIN_RETRY_MS; private static STDIN_READ_TIMEOUT_MS; constructor(verbose: () => boolean, statsigService?: StatsigService, spinner?: Ora, logger?: Console, customEffectsEnabled?: (() => boolean) | undefined, nonInteractive?: (() => boolean) | undefined); setStatsigService(statsigService: StatsigService): void; private seasonalSpinnerEffectsEnabled; private initCustomSpinner; private getSpinner; private prompt; private static questionMessage; get traceEnabled(): boolean; get debugEnabled(): boolean; displayProgress(progress: () => Promise, startText: string, successText: string | ((result: Result) => string | ProgressResult), hintCategory?: HintCategory): Promise; private startHintRotation; private rotateHints; private stripHintLine; private clearHintTimer; private stopHintRotation; displayTemporaryMessage(progress: () => Promise, waitText: string, { animateEllipsis }?: { animateEllipsis?: boolean; }): Promise; displaySpinner(progress: () => Promise): Promise; trace(message: string): void; debug(message: string): void; info(message: string): void; warn(message: string): void; error(error: Error, { pad }?: { pad?: boolean | undefined; }): void; emptyLine(): void; confirm(message: string, defaultChoice?: boolean): Promise; promptForMultiple(message: string, choices: T[], config?: { preselected?: T[]; format?: (choice: T) => string; short?: (choice: T) => string; validate?: (selected: T[]) => true | string; }): Promise; promptForText(message: string, defaultValue?: string): Promise; promptForSecret(message: string): Promise; readFromStdin(): string; private static sleepSync; promptForList(message: string, choices: T[], config?: { format?: (choice: T) => string; }, pageSize?: number): Promise; promptForFilterableList(message: string, choices: T[], config?: { format?: (choice: T) => string; }, pageSize?: number): Promise; promptForTable(message: string, infoMessage: string, columns: string[], choices: object[], isBorderless?: boolean): Promise; promptForSingleChoiceTable(message: string, infoMessage: string, columns: string[], choices: object[]): Promise; private getScaledTableHeight; private clearLastNLines; dynamicTable(head: [Key, string][], getData: () => Promise>, tableRefreshIntervalMs: number, { emptyMessage, preMessage, postMessage, format, groupRows, sectionKey, sectionLabel }?: Omit, 'json'>): Promise; table(head: [Key, string][], data: TableData, { json, emptyMessage, preMessage, postMessage, format, groupRows, groupKey, sectionKey, sectionLabel }?: TableOptions): void; private formatTableValue; private shouldLogTableCell; private getTable; private getSingleTable; private logTable; private log; private write; private logSuccess; private logError; private stopProgressSpinner; private replaceStartTextOnSuccess; private stopWaitSpinner; clearSpinner(): void; private promptForString; private createPromptModule; private createTtyBackedPromptModule; private openTtyPromptModule; private registerCustomUIElements; formatKeyValueList(items: { key: string; value: string; }[], indent?: string, addNewLine?: boolean): string; formatYamlProperties(properties: any, key: string, showMessage?: boolean): string; } export {}; //# sourceMappingURL=command-line-ui.d.ts.map