import { truncateCells } from "../design/textLayout.js";
import { normalizePromptInputMode, promptInputModePrefix } from "./inputModes.js";
export function promptInputLabel(mode) {
    const normalized = normalizePromptInputMode(mode);
    return `${promptInputModePrefix(normalized)} ${normalized}`;
}
export function truncatePromptForFooter(value, width = 80) {
    return truncateCells(value.replace(/\s+/g, " ").trim(), width);
}
export function isPromptMode(value, mode) {
    return normalizePromptInputMode(value) === mode;
}
