UNPKG

@ejekanshjain/cloud-storage

Version:

All in one package to handle files accross cloud storage services

29 lines 897 B
/// <reference types="node" /> import { z } from 'zod'; import { AddFileOptions } from './types'; declare const GCPStorageClientOptionsZ: z.ZodObject<{ projectId: z.ZodString; privateKey: z.ZodString; clientEmail: z.ZodString; bucket: z.ZodString; defaultMediaPublic: z.ZodBoolean; }, "strip", z.ZodTypeAny, { projectId: string; privateKey: string; clientEmail: string; bucket: string; defaultMediaPublic: boolean; }, { projectId: string; privateKey: string; clientEmail: string; bucket: string; defaultMediaPublic: boolean; }>; export declare const GCPStorageClient: (options?: z.infer<typeof GCPStorageClientOptionsZ>) => { addFile: (options: AddFileOptions) => Promise<string>; deleteFile: (filename: string) => Promise<void>; getFile: (filename: string) => Promise<Buffer>; }; export {}; //# sourceMappingURL=gcp.d.ts.map