export type SortDirection = "asc" | "desc"; export interface Header { key: string; label: string; type?: "string" | "number" | "stats" | "structure"; sortable?: boolean; sorted?: SortDirection; } export interface Stats { mean: number; std: number; } export interface DataItem { [key: string]: number | string | Stats; } export interface SortState { key: string; direction: SortDirection; } type Orientation = "top" | "left"; /** * Sorts the provided data array based on the given sort state and headers. * * @param data - The array of data items to be sorted. * @param sortState - The current state of sorting, including the key to sort by and the direction. * @param headers - The array of headers which includes metadata about each column. * @returns A new array of data items sorted according to the sort state and headers. */ export declare function sortData(data: DataItem[], sortState: SortState, headers: Header[]): DataItem[]; export declare function itemKeyFinder(item: DataItem, itemKey: string): string; export declare function SortableTable({ orientation, headers, data, className, tableClassName, theadClassName, tbodyClassName, trClassName, thClassName, tdClassName, }: { orientation?: Orientation; headers: Header[]; data: DataItem[]; className?: string; tableClassName?: string; theadClassName?: string; tbodyClassName?: string; trClassName?: string; thClassName?: string; tdClassName?: string; }): import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=SortableTable.d.ts.map