@ejekanshjain/cloud-storage
Version:
All in one package to handle files accross cloud storage services
29 lines • 858 B
TypeScript
/// <reference types="node" />
import { z } from 'zod';
import { AddFileOptions } from './types';
declare const S3ClientOptionsZ: z.ZodObject<{
region: z.ZodString;
accessKey: z.ZodString;
accessSecret: z.ZodString;
bucket: z.ZodString;
host: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
bucket: string;
region: string;
accessKey: string;
accessSecret: string;
host?: string | undefined;
}, {
bucket: string;
region: string;
accessKey: string;
accessSecret: string;
host?: string | undefined;
}>;
export declare const S3Client: (options: z.infer<typeof S3ClientOptionsZ>) => {
addFile: (options: AddFileOptions) => Promise<string>;
deleteFile: (filename: string) => Promise<void>;
getFile: (filename: string) => Promise<Buffer>;
};
export {};
//# sourceMappingURL=s3.d.ts.map