import { AdapterConfig, IAdapter, Options, Provider, StreamOptions } from "./types/general"; import { FileBufferParams, FilePathParams, FileStreamParams } from "./types/add_file_params"; import { ResultObject, ResultObjectBoolean, ResultObjectBuckets, ResultObjectFiles, ResultObjectNumber, ResultObjectObject, ResultObjectStream } from "./types/result"; export declare abstract class AbstractAdapter implements IAdapter { protected _provider: Provider; protected _config: AdapterConfig; protected _client: any; protected _configError: null | string; protected _bucketName: null | string; constructor(config: string | AdapterConfig); get provider(): Provider; getProvider(): Provider; get config(): AdapterConfig; getConfig(): AdapterConfig; get configError(): null | string; getConfigError(): null | string; get serviceClient(): any; getServiceClient(): any; setSelectedBucket(bucketName: null | string): void; getSelectedBucket(): null | string; set selectedBucket(bucketName: null | string); get selectedBucket(): null | string; set bucketName(bucketName: null | string); get bucketName(): null | string; private getFileAndBucketAndOptions; private checkBucket; private checkFile; protected abstract _listBuckets(): Promise; protected abstract _createBucket(name: string, options: Options): Promise; protected abstract _clearBucket(name: string): Promise; protected abstract _deleteBucket(name: string): Promise; protected abstract _bucketExists(name: string): Promise; protected abstract _bucketIsPublic(name: string): Promise; protected abstract _listFiles(bucketName: string, numFiles: number): Promise; protected abstract _sizeOf(bucketName: string, fileName: string): Promise; protected abstract _addFile(params: FilePathParams | FileBufferParams | FileStreamParams): Promise; protected abstract _fileExists(bucketName: string, fileName: string): Promise; protected abstract _getFileAsStream(bucketName: string, fileName: string, options: StreamOptions): Promise; protected abstract _getPublicURL(bucketName: string, fileName: string, options: Options): Promise; protected abstract _getSignedURL(bucketName: string, fileName: string, options: Options): Promise; protected abstract _removeFile(bucketName: string, fileName: string): Promise; protected abstract _getPresignedUploadURL(bucketName: string, fileName: string, options: Options): Promise; listBuckets(): Promise; createBucket(...args: [bucketName?: string, options?: Options] | [options?: Options]): Promise; clearBucket(name?: string): Promise; deleteBucket(name?: string): Promise; bucketExists(name?: string): Promise; bucketIsPublic(name?: string): Promise; listFiles(...args: [bucketName?: string, numFiles?: number] | [numFiles?: number] | [bucketName?: string]): Promise; addFileFromPath(params: FilePathParams): Promise; addFileFromBuffer(params: FileBufferParams): Promise; addFileFromStream(params: FileStreamParams): Promise; addFile(params: FilePathParams | FileBufferParams | FileStreamParams): Promise; getFileAsStream(...args: [bucketName: string, fileName: string, options?: StreamOptions] | [fileName: string, options?: StreamOptions]): Promise; getPublicURL(...args: [bucketName: string, fileName: string, options?: Options] | [fileName: string, options?: Options]): Promise; getSignedURL(...args: [bucketName: string, fileName: string, options?: Options] | [fileName: string, options?: Options]): Promise; sizeOf(...args: [bucketName: string, fileName: string] | [fileName: string]): Promise; fileExists(...args: [bucketName: string, fileName: string] | [fileName: string]): Promise; removeFile(...args: [bucketName: string, fileName: string] | [fileName: string]): Promise; getPresignedUploadURL(...args: [bucketName: string, fileName: string, options?: Options] | [fileName: string, options?: Options]): Promise; }