import { TableProps } from '../interfaces'; /** * Returns the 1-based sort priority index of `column` in the sort array, or null if not present. */ export declare function getSortIndex(sortingColumns: ReadonlyArray>, column: TableProps.ColumnDefinition): number | null; /** * Replace the entire sort state with a single column. */ export declare function replaceSort(column: TableProps.ColumnDefinition, isDescending: boolean): ReadonlyArray>; /** * Append a column at the end of the current sort. */ export declare function appendSort(current: ReadonlyArray>, column: TableProps.ColumnDefinition, isDescending: boolean): ReadonlyArray>; /** * Toggle the direction of a column already in the sort, keeping its position. */ export declare function toggleDirection(current: ReadonlyArray>, column: TableProps.ColumnDefinition): ReadonlyArray>; /** * Set the direction of a column already in the sort to a specific value, keeping its position. */ export declare function setDirection(current: ReadonlyArray>, column: TableProps.ColumnDefinition, isDescending: boolean): ReadonlyArray>; /** * Remove a column from the sort and reindex remaining priorities. */ export declare function removeSort(current: ReadonlyArray>, column: TableProps.ColumnDefinition): ReadonlyArray>; /** * Builds a screen-reader announcement for the current multi-column sort state by joining per-column * fragments in code (charts-style). The fragment renderers are resolved from i18n by the caller; * returns an empty string when the relevant renderers are unavailable so no announcement is made. */ export declare function buildSortLiveAnnouncement({ sortingColumns, columnDefinitions, renderSortColumn, renderSortOrder, sortCleared, formatList, resolveColumnLabel }: { sortingColumns?: ReadonlyArray>; columnDefinitions: ReadonlyArray>; renderSortColumn?: (data: { columnLabel: string; isDescending: boolean; }) => string; renderSortOrder?: (data: { columns: string; }) => string; sortCleared?: string; formatList?: (parts: readonly string[]) => string; resolveColumnLabel?: (column: TableProps.ColumnDefinition | undefined) => string | undefined; }): string;