import { UploadChangeHandler, UploadValue } from "./types.js";
//#region src/components/dataSourceComponents/fields/Upload/type.d.ts
interface UploadProps {
  renderMode?: string;
  fieldKey: string;
  maxSize?: number;
  minCount?: number;
  maxCount?: number;
  multiple?: boolean;
  presetType?: string[];
  presetTypeString?: string[];
  customType?: string[];
  enablePresetType?: boolean;
  enableCustomType?: boolean;
  allowPreview?: boolean;
  value?: UploadValue;
  typeMaxSizeMap?: Record<string, number>;
  enableMultilingual?: boolean;
  onChange?: UploadChangeHandler;
  disabled?: boolean;
  mediaUploadUrl?: string;
  getHeaders?: () => Record<string, string>;
  mediaConfig?: {
    data: {
      upload_onetime_limit: number;
      upload_maxsize: number;
    };
  };
  allowCamera?: boolean;
}
//#endregion
export { UploadProps };