export { isCancel } from '@clack/core'; interface TextOptions { message: string; placeholder?: string; defaultValue?: string; initialValue?: string; validate?: (value: string) => string | void; } declare const text: (opts: TextOptions) => Promise; interface PasswordOptions { message: string; mask?: string; validate?: (value: string) => string | void; } declare const password: (opts: PasswordOptions) => Promise; interface ConfirmOptions { message: string; active?: string; inactive?: string; initialValue?: boolean; } declare const confirm: (opts: ConfirmOptions) => Promise; type Primitive = Readonly; type Option = Value extends Primitive ? { value: Value; label?: string; hint?: string; } : { value: Value; label: string; hint?: string; }; interface SelectOptions[], Value> { message: string; options: Options; initialValue?: Value; } declare const select: [], Value>(opts: SelectOptions) => Promise; declare const selectKey: [], Value extends string>(opts: SelectOptions) => Promise; interface MultiSelectOptions[], Value> { message: string; options: Options; initialValues?: Value[]; required?: boolean; cursorAt?: Value; } declare const multiselect: [], Value>(opts: MultiSelectOptions) => Promise; interface GroupMultiSelectOptions[], Value> { message: string; options: Record; initialValues?: Value[]; required?: boolean; cursorAt?: Value; } declare const groupMultiselect: [], Value>(opts: GroupMultiSelectOptions) => Promise; declare const note: (message?: string, title?: string) => void; declare const cancel: (message?: string) => void; declare const intro: (title?: string) => void; declare const outro: (message?: string) => void; type LogMessageOptions = { symbol?: string; }; declare const log: { message: (message?: string, { symbol }?: LogMessageOptions) => void; info: (message: string) => void; success: (message: string) => void; step: (message: string) => void; warn: (message: string) => void; /** alias for `log.warn()`. */ warning: (message: string) => void; error: (message: string) => void; }; declare const spinner: () => { start(message?: string): void; stop(message?: string): void; }; type PromptGroupAwaitedReturn = { [P in keyof T]: Exclude, symbol>; }; interface PromptGroupOptions { /** * Control how the group can be canceld * if one of the prompts is canceld. */ onCancel?: (opts: { results: Partial>; }) => void; } type PromptGroup = { [P in keyof T]: (opts: { results: Partial>; }) => void | Promise; }; /** * Define a group of prompts to be displayed * and return a results of objects within the group */ declare const group: (prompts: PromptGroup, opts?: PromptGroupOptions | undefined) => Promise>; export { ConfirmOptions, GroupMultiSelectOptions, LogMessageOptions, MultiSelectOptions, PasswordOptions, PromptGroup, PromptGroupAwaitedReturn, PromptGroupOptions, SelectOptions, TextOptions, cancel, confirm, group, groupMultiselect, intro, log, multiselect, note, outro, password, select, selectKey, spinner, text };