import { ColumnInfo } from '../column' declare function formatsFunc(params: FormatsParams, ...args: any[]): any; /** * 全局格式化 */ export class VhbGlobalFormats { mixin(map: { [type: string]: typeof formatsFunc }): VhbGlobalFormats; get(type: string): typeof formatsFunc; add(type: string, callback: typeof formatsFunc): VhbGlobalFormats; delete(type: string): VhbGlobalFormats; } export interface FormatsParams { cellValue: any; row: any, column: ColumnInfo; }