import type { UploadFileType, UploadRule } from '../../../typings/admin/comm/upload';
/** 规则展示名（i18n）；PDF 等无 key 时回退 rule.name */
export declare function uploadRuleLabel(rule: {
    type: string;
    name?: string;
}): string;
/** 默认上传规则 */
export declare const DEFAULT_UPLOAD_RULES: UploadRule[];
export declare function extname(path?: string): string;
export declare function filename(path?: string): string;
export declare function getFileType(path: string, rules?: UploadRule[]): UploadFileType;
export declare function getUploadRule(type: string, rules?: UploadRule[]): UploadRule;
export declare function getUrls(list: Array<{
    url?: string;
}>): string[];
export declare function pathJoin(...parts: string[]): string;
export declare function uploadUid(): string;
