utils.d.ts 605 B

12345678910111213141516171819202122
  1. export interface File {
  2. url: string;
  3. size?: number;
  4. name?: string;
  5. type: string;
  6. duration?: number;
  7. time?: number;
  8. isImage?: boolean;
  9. isVideo?: boolean;
  10. }
  11. export declare function isImageFile(item: File): boolean;
  12. export declare function isVideoFile(item: File): boolean;
  13. export declare function chooseFile({ accept, multiple, capture, compressed, maxDuration, sizeType, camera, maxCount, }: {
  14. accept: any;
  15. multiple: any;
  16. capture: any;
  17. compressed: any;
  18. maxDuration: any;
  19. sizeType: any;
  20. camera: any;
  21. maxCount: any;
  22. }): Promise<File | File[]>;