UNPKG

@mbc-cqrs-serverless/core

Version:
17 lines (16 loc) 500 B
import { S3Client } from '@aws-sdk/client-s3'; import { ConfigService } from '@nestjs/config'; declare const CLIENT_INSTANCE: unique symbol; export declare class S3Service { private readonly config; private readonly [CLIENT_INSTANCE]; readonly privateBucket: string; constructor(config: ConfigService); get client(): S3Client; putItem(key: string, item: any): Promise<{ Bucket: string; Key: string; }>; getItem(key: string): Promise<any>; } export {};