import { useDebouncedCallback } from "../Hooks/useDebounce"; import React from "react"; import { DataObject, TableHeaderProps } from "../Components/Table/TableProps"; import type { CustomThemeProps } from "../Theme/themeProps"; export declare function compareValues(aRaw: unknown, bRaw: unknown, direction: "asc" | "desc" | "none"): number; export declare function SortMultiColumnData(data: DataObject[], sortConfig: { column: string | number; direction: string; }[]): DataObject[]; export type TablePaletteColor = { solid: string; soft: string; text: string; onSolid?: string; }; export type SemanticStatusTone = "info" | "warning" | "success" | "error" | "neutral"; /** Theme-aware status palette per value — soft fill + semantic ink from `resolveStatusTone`. */ export declare function buildSemanticStatusPalette(toneByValue: Record, theme: CustomThemeProps): Record; /** Deterministic, theme-aware color palette for groups + status pills. */ export declare function buildTablePalette(theme: CustomThemeProps): TablePaletteColor[]; /** Pick a deterministic palette color for a value, with optional consumer override hex. */ export declare function pickTableColor(value: string | number, palette: TablePaletteColor[], override?: string, theme?: CustomThemeProps): TablePaletteColor; export type TableGroup = { value: string | number; label: string; rows: DataObject[]; }; export declare function groupRows(data: DataObject[], groupBy: string | number): TableGroup[]; export declare const calculateLeftOffset: (columns: number[], index: number) => number; export declare function normalizeTableCellValue(value: unknown): React.ReactNode; export declare const searchAndSortData: (data: DataObject[], searchValues: Record) => DataObject[]; export declare function debounce void>(func: T, delay: number): (...args: Parameters) => void; export declare const useDebounce: typeof useDebouncedCallback; export declare const pageSizeCalculation: (records: number) => number[]; type TableCellCalculationProps = { isFrozen?: boolean; columnWidths: number[]; headerIndex: number; isCheckbox?: boolean; header: TableHeaderProps; row: DataObject; freezedBgColor?: string; index: number; theme: CustomThemeProps; }; export declare const TableCellCalculation: ({ isFrozen, columnWidths, headerIndex, isCheckbox, header, row, freezedBgColor, index, theme, }: TableCellCalculationProps) => { leftOffset: number; cellBgColor: string | undefined; rowBgColor: string | undefined; cellTextColor: string | undefined; rowTextColor: string | undefined; }; export declare function globalSearchFilter>(data: T[], query: string): T[]; export {};