import { CLOUD_PROVIDERS } from './providers'; import { S3RequestOptions, S3UploadOptions, S3GetOptions, S3PresignedUploadOptions } from './types'; /** * A simple class wrapping of the pico s3 functions. */ export declare class PicoS3 { options: S3RequestOptions; /** * @param {S3RequestOptions} options The authentication details of the S3 bucket. * * You can simple set this to `true` to get the library to infer the authentication deails of the bucket from the environment variables. * * Here are the environment variables that need to be set: * ``` * provider = process.env.PICO_S3_CLOUD_PROVIDER * region = process.env.PICO_S3_REGION * bucket = process.env.PICO_S3_BUCKET * accessKeyId = process.env.PICO_S3_ACCESS_KEY_ID * secretAccessKey = process.env.PICO_S3_SECRET_ACCESS_KEY * ``` */ constructor(options: S3RequestOptions | true); upload(options: { file: Buffer | string; } & S3UploadOptions): Promise; getObject(options: S3GetOptions): Promise>; getProviderConfig(): import("./types").SERVICE_PROVIDER_CONFIG; getProvider(): CLOUD_PROVIDERS; getObjectBuffer(options: S3GetOptions): Promise>; getObjectDataUrl(options: S3GetOptions): Promise; getObjectBinary(options: S3GetOptions): Promise; deleteObject(options: S3GetOptions): Promise; objectExists(options: S3GetOptions): Promise; getObjectMetadata(options: S3GetOptions): Promise<{ [k: string]: string; }>; getObjectEtag(options: S3GetOptions): Promise; getTextFile(options: S3GetOptions): Promise; getPresignedUrl(options: S3GetOptions): Promise; getPresignedUploadUrl(options: Omit & Partial): Promise; }