import { ShowtimeUploadError, ShowtimeUploadKind, ShowtimeUploadRules } from '../ShowtimeUpload.types'; /** 已选择文件及其识别出的上传类别。 */ export interface ShowtimeValidatedUploadFile { file: File; kind: ShowtimeUploadKind; } /** 单次原生文件选择时传入的校验参数。 */ export interface ShowtimeUploadValidationOptions { kinds: ShowtimeUploadKind[]; rules: ShowtimeUploadRules; limit: number; currentCount: number; } /** 一组本地文件的校验结果。 */ export interface ShowtimeUploadValidationResult { accepted: ShowtimeValidatedUploadFile[]; errors: ShowtimeUploadError[]; } /** * 在创建上传状态前校验原生文件选择结果。 * * 此 Hook 不维护状态:每次选择都由门面组件传入最新属性和条目数量,确保模型同步关系明确。 */ export declare function useUploadValidation(): (files: File[], options: ShowtimeUploadValidationOptions) => ShowtimeUploadValidationResult;