import type ColumnDef from "../../types/ColumnDef"; import type { Accessor } from "../../types/ColumnDef"; import type { HandleResizeStartProps } from "../../types/HandleResizeStartProps"; /** * Handler for when resize dragging starts */ export declare const handleResizeStart: ({ autoExpandColumns, collapsedHeaders, containerWidth, event, header, headers, mainBodyRef, onColumnWidthChange, onAutoExpandNaturalWidths, reverse, setHeaders, setIsResizing, shrinkFloors, startWidth, }: HandleResizeStartProps) => void; export type ApplyColumnAutoFitWithAutoExpandParams = { collapsedHeaders: Set; containerWidth: number; getTargetLeafWidth: (leafHeader: ColumnDef) => number; header: ColumnDef; headerCellElement: HTMLElement | null; headers: ColumnDef[]; mainBodyRef: HandleResizeStartProps["mainBodyRef"]; /** Persist the auto-fitted column(s)' widths as their natural widths. */ onAutoExpandNaturalWidths?: (widths: Map) => void; reverse: boolean; /** Natural-width shrink floors (accessor -> px) for compensating neighbors. */ shrinkFloors?: Map; }; /** * Apply a one-shot "fit to content" width for a column while preserving autoExpand * compensation (same redistribution rules as dragging the resize handle). */ export declare const applyColumnAutoFitWithAutoExpand: ({ header, headers, collapsedHeaders, containerWidth, mainBodyRef, reverse, headerCellElement, getTargetLeafWidth, onAutoExpandNaturalWidths, shrinkFloors, }: ApplyColumnAutoFitWithAutoExpandParams) => void;