/**
 * Cell diff summary — generates the same formatted dirty cell summary
 * as client/shared's getDirtyCellSummary.
 */
import { categorizeCells } from './cell-categorizer.js';
import { formatCellDiff } from './cell-diff-formatter.js';
import { shouldIncludeCell } from './types.js';
/**
 * Get a formatted cell diff summary from CellEdits.
 * Same output format as client/shared's getDirtyCellSummary.
 */
export function getDirtyCellSummary(cellEdits) {
    if (cellEdits.length === 0)
        return '';
    // Count cells excluded from the summary (uses the same filter as the formatter)
    const excludedCount = cellEdits.filter((c) => !shouldIncludeCell(c)).length;
    const categorizedCells = categorizeCells(cellEdits);
    return formatCellDiff(categorizedCells, excludedCount);
}
//# sourceMappingURL=index.js.map