import type { CellRangeRef, WorkbookSnapshot, WorkbookSortSnapshot } from '@bilig/protocol';
import type { EngineOp } from '@bilig/workbook';
export interface SpreadsheetEngineSortRangeOptions {
    readonly header?: boolean;
    readonly recordSortMetadata?: boolean;
}
export declare function buildSortRangeOps(snapshot: WorkbookSnapshot, sheetName: string, range: CellRangeRef, keys: readonly WorkbookSortSnapshot['keys'][number][], options?: SpreadsheetEngineSortRangeOptions): EngineOp[];
export declare function buildSortTableOps(snapshot: WorkbookSnapshot, sheetName: string, tableName: string, keys: readonly WorkbookSortSnapshot['keys'][number][]): EngineOp[];
