import chalk from 'chalk';
export function formatPermissionBypassStatus(enabled) {
    return `Permissions: ${enabled ? 'Bypassed' : 'Enforced'}`;
}
export function formatPermissionBypassStatusMessage(enabled) {
    return enabled
        ? 'Permissions are bypassed. Spreadsheet approvals are unchanged.'
        : 'Permissions are enforced.';
}
export async function confirmRuntimePermissionBypass(select) {
    const choice = await select(`${chalk.red('WARNING: ShortcutXL running in Bypass Permissions mode')}

${chalk.white('In Bypass Permissions mode, ShortcutXL will not ask for your approval before running filesystem or shell actions that would normally require approval. By proceeding, you accept responsibility for actions taken while running in Bypass Permissions mode.')}

${chalk.white('NOTE: Spreadsheet approvals are unchanged.')}`, ['No, keep permissions enforced', 'Yes, I accept']);
    return choice === 'Yes, I accept';
}
//# sourceMappingURL=runtime-permission-bypass.js.map