import React from "react"; /** * VirtualTable is not crated by , the header cell width cannot auto align the body cell width which has large content. * So VirtualTable get the columns widths by following steps: * 1. Only render the headers with flex style * 2. Get the widths of the table headers in ref * 3. Calculate the sticky position of the fixed column/header if exists * 4. Render the table body columns with the headers widths gotten in step 2 * * If the Virtual Table is render inside a container with open animation e.g. , * the colWidths may be calculated during the transition and get the wrong width * wrap the getColumnWidths function by useDebounce to get the final correct column widths */ export declare const useColumnWidths: () => { headerRef: React.RefObject; getHeaderRef: (node: HTMLDivElement | null) => void; columnWidths: number[]; calcColumnWidths: () => void; };