import { execSync } from 'node:child_process';
import { config } from '../config/index.js';
import { getMessages } from '../messages/index.js';
export function executarShellSeguro(cmd, opts = {}) {
    if (config.SAFE_MODE === true && !config.ALLOW_EXEC) {
        throw new Error(getMessages().ExecSafeMensagens.safeModeBloqueado);
    }
    return execSync(cmd, opts);
}
export async function executarShellSeguroAsync(cmd, opts = {}) {
    return executarShellSeguro(cmd, opts);
}
//# sourceMappingURL=exec-safe.js.map