/** * Prompt helpers — thin wrapper over @clack/prompts with uniform * cancel handling (Ctrl+C / Esc exits the CLI cleanly instead of * returning a cancel symbol every caller must check). */ import * as p from '@clack/prompts'; import type { Option } from '@clack/prompts'; export { p }; /** * Unwrap a clack result; exit gracefully when the user cancelled. * * Typed as `Exclude` rather than `(value: T | symbol): T`: since * @clack/prompts 1.8.1 the prompts return `T | typeof CANCEL_SYMBOL`, a * `unique symbol` that the `T | symbol` form no longer peeled off T, so every * caller got the cancel symbol back in its type. */ export declare function ensure(value: T): Exclude; export declare function askText(opts: { message: string; placeholder?: string; initialValue?: string; required?: boolean; validate?: (value: string) => string | undefined; }): Promise; export declare function askConfirm(message: string, initialValue?: boolean): Promise; export declare function askSelect(message: string, options: Option[], initialValue?: T): Promise; /** * Guard for commands that need a full installation (setup, update, index) — * a git checkout, or an npm install carrying the dist/scripts bundles. Running * from the npx cache of an older release has neither, so point the user at the * installer instead of failing halfway through a rebuild. */ export declare function requireFullInstall(): boolean; //# sourceMappingURL=ui.d.ts.map