import ColumnDef, { Accessor } from "../types/ColumnDef"; interface AutoScaleConfig { autoExpandColumns: boolean; containerWidth: number; pinnedLeftWidth: number; pinnedRightWidth: number; mainBodyRef: { current: HTMLDivElement | null; }; isResizing?: boolean; /** * Currently collapsed header accessors. Auto-scale must only account for the * leaf columns that are actually visible for the current collapsed state — * otherwise it sums the widths of hidden child columns and under-expands, * leaving empty space on the right. */ collapsedHeaders?: Set; } type HeaderUpdateCallback = (headers: ColumnDef[]) => void; export declare const applyAutoScaleToHeaders: (headers: ColumnDef[], options: AutoScaleConfig) => ColumnDef[]; export declare class AutoScaleManager { private config; private onHeadersUpdate; private isResizingTracker; private containerWidthTracker; constructor(config: AutoScaleConfig, onHeadersUpdate: HeaderUpdateCallback); updateConfig(config: Partial): void; private triggerAutoScale; applyAutoScale(headers: ColumnDef[]): ColumnDef[]; setHeaders(headersOrUpdater: ColumnDef[] | ((prev: ColumnDef[]) => ColumnDef[]), currentHeaders: ColumnDef[]): ColumnDef[]; destroy(): void; } export {};