import type { WorkbookPivotRecord } from '../../workbook-store.js';
import type { U32 } from '../runtime-state.js';
export declare function shouldRefreshPivotSource(pivot: WorkbookPivotRecord, changed: readonly number[] | U32, workbook: {
    readonly cellStore: {
        readonly sheetIds: ArrayLike<number | undefined>;
        readonly rows: ArrayLike<number | undefined>;
        readonly cols: ArrayLike<number | undefined>;
    };
    readonly getSheet: (sheetName: string) => {
        readonly id: number;
    } | undefined;
    readonly getCellPosition: (cellIndex: number) => {
        readonly row: number;
        readonly col: number;
    } | undefined;
}): boolean;
export declare function refreshPivotOutputsForChangedCells(input: {
    readonly changed: readonly number[] | U32;
    readonly forceAll: boolean;
    readonly workbook: Parameters<typeof shouldRefreshPivotSource>[2] & {
        readonly listPivots: () => readonly WorkbookPivotRecord[];
    };
    readonly materializePivot: (pivot: WorkbookPivotRecord) => readonly number[];
    readonly emptyChangedSet: () => U32;
}): U32;
