UNPKG

@caidrive/shared

Version:

caidrive.shared.components

38 lines (37 loc) 911 B
/// <reference types="node" /> import { S3Client as Client } from "@aws-sdk/client-s3"; import { Result } from "../../../core"; import { StorageService } from "../storage.service.client"; import { IStorageService } from "../storage.service"; import { StorageFile } from "../storage.file"; /** * What it does. * * @param name - Parameter description. * @returns Type and description of the returned object. * * @example * ``` * Write me later. * ``` */ export declare class AwsStorageService extends StorageService<Client> implements IStorageService { private resourceTypes; private mimeTypes; /** * */ private sanitize; /** * */ constructor(client: Client); /** * */ addResource(data: Buffer, file: StorageFile, path: string): Promise<Result<string>>; /** * */ static create(client: Client): Result<AwsStorageService>; }