export function createEngineDirtyFrontierSchedulerService(args) {
    return {
        collectDirty(changedRoots) {
            return args.state.scheduler.collectDirty(changedRoots, { getDependents: (entityId) => args.getEntityDependents(entityId) }, args.state.workbook.cellStore, args.state.formulas.keys(), args.state.formulas.size, (cellIndex) => args.state.formulas.has(cellIndex), args.state.ranges.size);
        },
        collectAll() {
            return args.state.scheduler.collectAll(args.state.formulas.keys(), args.state.formulas.size, args.state.workbook.cellStore);
        },
    };
}
//# sourceMappingURL=dirty-frontier-scheduler-service.js.map