export function selectCellSnapshot(engine, sheetName, address) {
    return engine.getCell(sheetName, address);
}
export function selectMetrics(engine) {
    return engine.getLastMetrics();
}
export function selectSelectionState(engine) {
    return engine.getSelectionState();
}
export function selectViewportCells(engine, sheetName, viewport) {
    const result = [];
    const sheet = engine.workbook.getSheet(sheetName);
    if (!sheet)
        return result;
    sheet.grid.forEachInRange(viewport.rowStart, viewport.colStart, viewport.rowEnd, viewport.colEnd, (cellIndex) => {
        result.push(engine.getCellByIndex(cellIndex));
    });
    return result;
}
//# sourceMappingURL=selectors.js.map