import type { TableColumnOptions } from "../useTablePersistence"; type CompactTableUrl = Record; type UseCompactTableUrlReturn = { readonly toUrlValue: (state: TableColumnOptions) => CompactTableUrl; readonly fromUrlValue: (decoded: unknown) => unknown; }; /** * Provides transform functions for compacting table state before URL encoding * and expanding it back after URL decoding. * * The compaction strategy: * - Short property keys (columnOrder → co, columnVisibility → cv, etc.) * - columnVisibility stored as an array of visible column names only * - columnOrder stored as visible-column order when visibility is available * - columnSizing stored under a short key (`cs`) * - `expanded` is excluded from the URL and restored from localStorage via * `usePersistedState`'s `mergeWithStorageOnRead` * - Empty pinning arrays are excluded * * These transforms are designed to plug into {@link usePersistedState}'s * `toUrlValue` and `fromUrlValue` options. */ export declare const useCompactTableUrl: () => UseCompactTableUrlReturn; export {};