import { Logger } from './logger'; import { ProgressResult } from './command-line-ui'; export interface Prompt { confirm(message: string): Promise; promptForText(message: string, defaultValue?: string): Promise; promptForSecret(message: string): Promise; promptForList(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 declare type TableCell = string | boolean | null | undefined; export declare type TableOptions = { json?: boolean; emptyMessage?: string; preMessage?: string; postMessage?: string; format?: { [K in Key]?: (value: TableCell) => string; }; groupRows?: { [K in Key]?: boolean; }; }; export interface UI extends Logger, Prompt { emptyLine(): void; displayProgress(progress: () => Promise, startText: string, successText: string | ((result: Result) => string | ProgressResult)): Promise; displayTemporaryMessage(progress: () => Promise, waitText: string): 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