import { Logger } from './logger.js'; import { ProgressResult } from './command-line-ui.js'; export interface Prompt { 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; 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; } export type TableCell = string | boolean | null | undefined; export type TableOptions = { json?: boolean; emptyMessage?: string; preMessage?: string; postMessage?: string; format?: { [K in Key]?: (value: TableCell) => string; }; groupRows?: { [K in Key]?: boolean; }; groupKey?: Key; sectionKey?: Key; sectionLabel?: (value: TableCell) => string; }; export type HintCategory = 'create' | 'deploy' | 'all'; export interface UI extends Logger, Prompt { emptyLine(): void; displayProgress(progress: () => Promise, startText: string, successText: string | ((result: Result) => string | ProgressResult), hintCategory?: HintCategory): Promise; displayTemporaryMessage(progress: () => Promise, waitText: string, options?: { animateEllipsis?: boolean; }): Promise; displaySpinner(progress: () => Promise): Promise; clearSpinner(): void; table(head: [Key, string][], data: Record[] | undefined | null, options?: TableOptions): void; formatKeyValueList(items: { key: string; value: string; }[], indent?: string, addNewLine?: boolean): string; formatYamlProperties(properties: any, key: string, showMessage?: boolean): string; } //# sourceMappingURL=ui.d.ts.map