import * as react from 'react'; import { ReactNode } from 'react'; interface ResizableTableContextValue { getColumnWidth: (columnId: string) => number | undefined; onResize: (columnId: string, delta: number) => void; } /** * Hook for ColumnResizer (or other children) to access the resize context. * Returns `null` when used outside a ResizableTableContainer so the resizer * can still work in a standalone / uncontrolled fashion. */ declare const useResizableTable: () => ResizableTableContextValue | null; interface ResizableTableContainerProps { children: ReactNode; className?: string; /** Initial column widths keyed by column id. */ defaultColumnWidths?: Record; /** Callback fired after a column is resized. */ onColumnResize?: (columnId: string, width: number) => void; } declare const ResizableTableContainer: react.ForwardRefExoticComponent>; export { ResizableTableContainer, type ResizableTableContainerProps, useResizableTable };