import type { EditableField } from './fields.js'; /** Result of parsing one prompt answer. */ export type Choice = { value: string; } | { keep: true; } | { error: string; }; /** * Parse a single numbered-choice answer against a field. Empty input keeps the * current value; a 1-based index selects; anything else is an error (re-prompt). * Pure — the unit-testable heart of the wizard loop. */ export declare function parseChoice(input: string, field: EditableField): Choice; //# sourceMappingURL=parse.d.ts.map