UNPKG

@russ-b/nestjs-common-tools

Version:
13 lines (12 loc) 503 B
import { S3Client } from '@aws-sdk/client-s3'; import { Readable } from 'stream'; export declare class S3Service { private readonly options; private readonly s3Client; private readonly logger; private readonly bucket; constructor(options: Record<string, string>, s3Client: S3Client); uploadObject(key: string, body: Buffer | Uint8Array | string, contentType?: string): Promise<void>; deleteObject(key: string): Promise<void>; getObject(key: string): Promise<Readable>; }