import { columnManager } from '../columns/manager.js';
import { groupByMatcher } from './matcher.js';
export const defaultGroupBy = (columnId, type, data) => {
    const name = groupByMatcher.match(columnManager.getColumn(type).dataType(data))?.name;
    return name != null
        ? {
            type: 'groupBy',
            columnId: columnId,
            name: name,
        }
        : undefined;
};
//# sourceMappingURL=util.js.map