UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

49 lines 1.52 kB
//#region src/wizard/prompts.d.ts type WizardSelectOption<T = string> = { value: T; label: string; hint?: string; }; type WizardSelectParams<T = string> = { message: string; options: Array<WizardSelectOption<T>>; initialValue?: T; searchable?: boolean; }; type WizardMultiSelectParams<T = string> = { message: string; options: Array<WizardSelectOption<T>>; initialValues?: T[]; searchable?: boolean; }; type WizardTextParams = { message: string; initialValue?: string; placeholder?: string; validate?: (value: string) => string | undefined; sensitive?: boolean; }; type WizardConfirmParams = { message: string; initialValue?: boolean; }; type WizardProgress = { update: (message: string) => void; stop: (message?: string) => void; }; type WizardPrompter = { intro: (title: string) => Promise<void>; outro: (message: string) => Promise<void>; note: (message: string, title?: string) => Promise<void>; plain?: (message: string) => Promise<void>; select: <T>(params: WizardSelectParams<T>) => Promise<T>; multiselect: <T>(params: WizardMultiSelectParams<T>) => Promise<T[]>; text: (params: WizardTextParams) => Promise<string>; confirm: (params: WizardConfirmParams) => Promise<boolean>; progress: (label: string) => WizardProgress; }; declare class WizardCancelledError extends Error { constructor(message?: string); } //#endregion export { WizardSelectParams as a, WizardPrompter as i, WizardMultiSelectParams as n, WizardProgress as r, WizardCancelledError as t };