import type { RecordBoardColumnType } from '../types'; /** Grid 根节点在 `layoutVariant="phone"` 时追加的 class,用于收紧单元格 padding 等 */ export declare const RECORD_BOARD_PHONE_GRID_CLASS = "pisell-record-board-grid--phone"; export interface AdaptColumnsForPhoneLayoutOptions { /** 列 key → 最大宽度(px),在比例缩放后再取 min */ widthCapsByKey?: Record; /** 列 key → 宽度缩放比例(相对原 width);未配置则用 defaultWidthRatio */ widthRatioByKey?: Record; /** 默认 numeric width 缩放比例 @default 5/6 */ defaultWidthRatio?: number; /** 是否去掉 fixed 列(手机横向滚动场景) @default true */ unsetFixed?: boolean; } /** * 手机 Table:收窄列宽并去掉 fixed,供 RecordBoard Grid 在 layoutVariant=phone 时统一调用。 * 业务可通过 grid.phoneColumnWidthCaps / phoneColumnWidthRatioByKey 覆盖特定列。 */ export declare function adaptColumnsForPhoneLayout(columns: RecordBoardColumnType[], options?: AdaptColumnsForPhoneLayoutOptions): RecordBoardColumnType[]; export declare function mergeRecordBoardPhoneGridClassName(className?: string): string | undefined; /** * 手机 Table:`scroll.x: 'max-content'` 会按内容撑出比「列宽之和」更宽的滚动区域, * 列宽已被 adaptColumnsForPhoneLayout 收窄后仍保留 max-content 时,右侧会出现可滚动的空白。 * 与预约 buildReservationMobileTableGridConfig 去掉横向 scroll 的策略一致,改为数值宽度。 */ export declare function resolveRecordBoardPhoneScrollX(scrollX: number | string | undefined, sumColumnWidths: number, options?: { selectionColumnWidth?: number; }): number | string | undefined;