import { type SortingSettingsChangePayload } from '@sisense/sdk-pivot-ui';
import { PivotTableDataOptionsInternal } from '../../../../domains/visualizations/core/chart-data-options/types';
import type { PivotRowsSort, SortDirection } from '../../../../types';
export type PivotRowsSortCriteria = {
    rowIndex: number;
    sort: PivotRowsSort | null;
};
export type PivotSortCriteria = {
    rows: PivotRowsSortCriteria[];
};
export declare function normalizePivotSort(sortType: SortDirection | PivotRowsSort): PivotRowsSort;
/**
 * Type guard for the complex pivot sort shape (as opposed to a bare `SortDirection` string).
 */
export declare function isPivotRowsSort(sort: unknown): sort is PivotRowsSort;
export declare function preparePivotRowsSortCriteriaList({ type, settings, sortDetails }: SortingSettingsChangePayload, dataOptionsInternal: PivotTableDataOptionsInternal): PivotRowsSortCriteria[];
