import stream from 'stream'; import { ReadStream } from 'fs'; import AWS from 'aws-sdk'; export type File = { filename: string; mimetype: string; encoding: string; createReadStream(): ReadStream; }; export type UploadedFileResponse = { filename: string; mimetype: string; encoding: string; url: string; }; export type S3UploadStream = { writeStream: stream.PassThrough; promise: Promise; };