utils.d.ts 589 B

12345678910111213141516171819202122232425262728293031
  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({
  14. accept,
  15. multiple,
  16. capture,
  17. compressed,
  18. maxDuration,
  19. sizeType,
  20. camera,
  21. maxCount,
  22. }: {
  23. accept: any;
  24. multiple: any;
  25. capture: any;
  26. compressed: any;
  27. maxDuration: any;
  28. sizeType: any;
  29. camera: any;
  30. maxCount: any;
  31. }): Promise<File | File[]>;