import type { GoodsInfo, AuditInfo } from '../type';
/**
 * 将分转换为元并保留两位小数
 * @param cents 分为单位的金额
 * @returns 元为单位的金额，保留两位小数
 */
export declare const convertCentsToYuan: (cents: number) => string;
export type ChangeRecord<T> = {
    [K in keyof T]?: T[K] | null;
};
/**
 * 格式化商品详情数据
 * @param data 原始API响应数据
 * @returns 格式化后的商品详情数据
 */
export declare const formatGoodsDetail: (data: any) => Partial<GoodsInfo>;
/**
 * 格式化商品审核详情数据
 * @param data 原始API响应数据
 * @returns 格式化后的商品审核详情数据
 */
export declare const formatAuditGoodsDetail: (data: any) => Partial<GoodsInfo & AuditInfo>;
/**
 * 根据文件MIME类型获取对应的图标URL
 * @param fileMime 文件MIME类型
 * @returns 图标URL
 */
export declare const getFileTypeIcon: (fileMime: string) => string;
/**
 * 获取变更记录的内容
 * @param beforeContent 变更前的内容
 * @param afterContent 变更后的内容
 * @returns 变更记录的内容，如果没有变更则返回null
 */
export declare const getChangeRecordContent: (beforeContent: any, afterContent: any) => any;
/**
 * 将值转换为布尔值
 * @param value 值
 * @returns 布尔值
 */
export declare const formatValueToBoolean: (value: any) => boolean;
