utils.d.ts 667 B

123456789101112131415161718192021222324
  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, mediaType, extension, }: {
  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. mediaType: any;
  23. extension: any;
  24. }): Promise<File | File[]>;