import { normalizarFimDeLinha, normalizarNewlinesFinais, removerEspacosFinaisPorLinha } from './formatters/commons.js';
export * from './code-min-formatter.js';
export * from './core/formatter-registry.js';
export { getFormatterForPath, registerFormatter } from './core/formatter-registry.js';
export * from './core/syntax-map.js';
export { getSyntaxInfoForPath } from './core/syntax-map.js';
export * from './engines/stylelint.js';
export * from './engines/svgs.js';
export * from './formatter.js';
export { getRegisteredFormatter } from './formatter.js';
export { formatarPrettierMinimo } from './formatter.js';
export { formatarMarkdownMinimo } from './formatters/markdown.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=index.js.map