import { RuleObject } from "antd/es/form";
import { DageFileResponseType } from "../DageUpload";

export interface DageFileCheckboxMethods {
  validate(
    rule: RuleObject,
    value: any,
    callback: (error?: string | undefined) => void
  ): Promise<void>;
  setFileList(list: DageFileResponseType[]): void;
}

export interface DageFileCheckboxProps {
  /**
   * 选中文件类型
   * @example model,video,audio
   */
  value?: string;
  action: string;
  disabled?: boolean;
  onChange?(v: string): void;
  onFileChange?(list: DageFileResponseType[]): void;
}
