import { ChangeEvent, CSSProperties } from 'react';

export interface IFileResult {
  name: string;
  size: number;
  data: string;
}

export interface IInputUpload {
  id?: string;
  value?: string;
  onChange: (
    event: ChangeEvent<HTMLInputElement> | IFileResult | FileList | null,
  ) => void;
  accept?: string;
  label?: string;
  helpText?: string;
  style?: CSSProperties;
  readAsArrayBuffer?: boolean;
  name: string;
  disabled?: boolean;
  read?: boolean;
}
