import { ButtonConfig } from "../types"; /** * useOperationColumn * * 操作列专用逻辑 Hook,负责: * 1. 根据权限判断操作列是否需要显示 * 2. 计算操作列宽度(支持按钮自定义宽度) * 3. 支持行级 visible 配置 * @param buttonConfigs 操作列按钮配置 * @param maxbtn 操作列最多显示按钮数量(超过的不参与宽度计算) * @param userPermissions 当前用户权限列表 */ export declare function useOperationColumn(buttonConfigs: ButtonConfig[], maxbtn?: number, userPermissions?: string[]): { hasAnyButton: import("vue").ComputedRef; optWidth: import("vue").ComputedRef; hasAnyVisibleButton: (rows: any[]) => boolean; getMaxOptWidth: (rows: any[]) => any; getVisibleButtons: (row: any) => ButtonConfig[]; };