import { normalizarFimDeLinha, normalizarNewlinesFinais, removerEspacosFinaisPorLinha } from './formatters/commons.js';
export function formatarCodeMinimo(code, opts) {
    const normalized = normalizarFimDeLinha(code);
    const formatted = normalizarNewlinesFinais(removerEspacosFinaisPorLinha(normalized));
    return {
        ok: true,
        parser: opts?.parser ?? 'code',
        formatted,
        changed: formatted !== normalizarNewlinesFinais(normalized),
    };
}
//# sourceMappingURL=code-min-formatter.js.map