export type CalcMode = 'manual' | 'auto' | 'autoNoTable'; export type RefMode = 'A1' | 'R1C1'; export interface CalcProperties { /** Excel build/calc-engine identifier; OpenOffice sets 191621, Excel 2016+ 162913 etc. */ calcId?: number; calcMode?: CalcMode; /** Force a full recalc when the workbook is loaded. Excel default `true` for safety. */ fullCalcOnLoad?: boolean; refMode?: RefMode; /** Allow circular references via iterative calculation. */ iterate?: boolean; iterateCount?: number; iterateDelta?: number; /** Use full 15-digit precision (vs. displayed precision). */ fullPrecision?: boolean; calcCompleted?: boolean; /** Run a recalc on save. */ calcOnSave?: boolean; /** Use multi-threaded calculation. */ concurrentCalc?: boolean; concurrentManualCount?: number; /** Force a full recalc on next interaction. */ forceFullCalc?: boolean; } export declare const makeCalcProperties: (opts?: CalcProperties) => CalcProperties; import type { Workbook } from './workbook'; /** * Set the recalculation mode. `'auto'` is Excel's default; * `'manual'` requires F9 to recompute formulas; `'autoNoTable'` * recomputes everything except data-table cells. */ export declare const setCalcMode: (wb: Workbook, mode: CalcMode) => void; /** * Toggle iterative calculation (Excel's "Enable iterative calculation" * option). When `enable` is true and `count` / `delta` are provided, * they replace the default Excel limits (100 iterations, 0.001 delta). */ export declare const setIterativeCalc: (wb: Workbook, enable: boolean, opts?: { count?: number; delta?: number; }) => void; /** Toggle "Recalculate workbook before saving" (workbook-level). */ export declare const setCalcOnSave: (wb: Workbook, on: boolean) => void; /** Toggle "Recalculate workbook on load" — forces a full recalc on open. */ export declare const setFullCalcOnLoad: (wb: Workbook, on: boolean) => void; /** Toggle "Set precision as displayed" (false = full 15-digit precision). */ export declare const setFullPrecision: (wb: Workbook, on: boolean) => void;