/** * @internal */ export type FileOrBuffer = File | Uint8Array | BufferOrStringWithName; /** * @internal */ export type BufferOrStringWithName = { data: Uint8Array | string; name: string; }; /** * @internal */ export type FileOrBufferOrString = FileOrBuffer | string; export type BuildFormDataOptions = { rewriteFileNames?: { fileStartNumber: number; }; uploadWithoutDirectory?: boolean; metadata?: Record; }; export type UploadableFile = FileOrBufferOrString | Record; export type UploadOptions = { files: TFiles; } & BuildFormDataOptions; export type UploadFile = | { name?: string; type?: string; uri: string } | Record; export type InternalUploadMobileOptions = { files: UploadFile[]; } & BuildFormDataOptions;