export class PromptTtyGateway {
    async askText(prompt, defaultValue) {
        const { input } = await import('@inquirer/prompts');
        return input({ message: prompt, default: defaultValue });
    }
    async askConfirm(prompt, defaultValue) {
        const { confirm } = await import('@inquirer/prompts');
        return confirm({ message: prompt, default: defaultValue ?? false });
    }
    async askChoice(prompt, choices) {
        const { select } = await import('@inquirer/prompts');
        return select({
            message: prompt,
            choices: choices.map((c) => ({ name: c.label, value: c.value })),
        });
    }
    async askMultiSelect(prompt, choices) {
        const { checkbox } = await import('@inquirer/prompts');
        return checkbox({
            message: prompt,
            choices: choices.map((c) => ({ name: c.label, value: c.value })),
        });
    }
}
//# sourceMappingURL=prompt.tty.gateway.js.map