import type { TableRowData } from 'tdesign-vue-next'; import type { QdServiceTableCol } from './types'; export declare const SIZE_PADDING_MAP: Record; export declare const COMPONENT_FONT_MAP: Record; export declare const GLOBAL_SIZE_RATIO_MAP: Record; export declare const OPERATION_EXTRA_WIDTH = 8; export type QdCompensatableCol = QdServiceTableCol & { hidden?: boolean; }; export interface QdCachedCol { colKey: string; hidden?: boolean; width?: QdServiceTableCol['width']; minWidth?: QdServiceTableCol['minWidth']; fixed?: QdServiceTableCol['fixed']; } export interface QdColumnWidthStore { columns: C[]; tableSize?: string; globalSize?: string; } export declare function resolveSizeRatio(globalSize?: string): number; export declare function resolvePaddingDelta(tableSize?: string): number; export declare function compensateWidth(base: number, tableSize?: string, globalSize?: string): number; export declare function decompensateWidth(width: number, tableSize?: string, globalSize?: string): number; export declare function calcTextWidth(text: string, fontSize: number): number; export declare function calcOperationLinksWidth(links: string[], tableSize?: string, fontSize?: number): number; export declare function isSizeExemptColumn(col?: QdCompensatableCol): boolean; export declare function isCompensatableColumn(col?: QdCompensatableCol): boolean; export declare function mergeColumnsWithCache(original: C[], cached: QdCachedCol[] | undefined): C[]; export interface SizeCompensationOptions { operation?: { authoredColumns?: QdCompensatableCol[]; extraWidth: number; }; } export declare function applySizeCompensation(store: QdColumnWidthStore, originalColumns: QdCompensatableCol[], nextTableSize: string, nextGlobalSize: string, options?: SizeCompensationOptions): QdColumnWidthStore;