import { TableState } from "@tanstack/table-core";
import { DataTableColumnDef, DataTableSort, DataTableQuery, GroupedData, RQLFilter } from "../data-table.types";
export declare function queryToTableState(query: DataTableQuery): Partial<TableState>;
export declare function getColumnsWithFilterFn<TData, TValue>(columns?: DataTableColumnDef<TData, TValue>[], filters?: RQLFilter[]): DataTableColumnDef<TData, TValue>[];
export declare function groupData<TData>(data: TData[], group_by?: string, columns?: DataTableColumnDef<TData, any>[]): GroupedData<TData>[];
export declare const hasQueryChanged: (oldQuery: DataTableQuery | null, newQuery: DataTableQuery) => boolean;
export declare function getInitialColumnVisibility<TData, TValue>(columns?: DataTableColumnDef<TData, TValue>[]): Record<string, boolean> | {};
export declare function sanitizeTableQuery(query: DataTableQuery): DataTableQuery;
export declare function getDefaultTableQuery(defaultSort: DataTableSort, oldQuery?: DataTableQuery): DataTableQuery;
//# sourceMappingURL=index.d.ts.map