import { RowData } from '@tanstack/react-table';
import { ColumnDefWithId, TableSettings } from '@open-condo/ui/src/components/Table/types';
interface UsePersistentTableStateProps<TData extends RowData = RowData> {
    storageKey: string;
    columns: ColumnDefWithId<TData>[];
}
export declare function getInitialTableState<TData extends RowData>(storageKey: string, columns: ColumnDefWithId<TData>[], resetSettings?: boolean): TableSettings<TData>;
export declare const useTableSetting: <TData extends RowData = RowData>({ storageKey, columns }: UsePersistentTableStateProps<TData>) => {
    columnVisibility: import("@tanstack/react-table").VisibilityState;
    columnOrder: import("@tanstack/react-table").ColumnOrderState;
    columnSizing: import("@tanstack/react-table").ColumnSizingState;
    onColumnVisibilityChange: (updater: import("react").SetStateAction<import("@tanstack/react-table").VisibilityState>) => void;
    onColumnOrderChange: (updater: import("react").SetStateAction<import("@tanstack/react-table").ColumnOrderState>) => void;
    onColumnSizingChange: (updater: import("react").SetStateAction<import("@tanstack/react-table").ColumnSizingState>) => void;
    resetSettings: () => void;
};
export {};
//# sourceMappingURL=useTableSetting.d.ts.map