-
-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathindex.d.mts
More file actions
26 lines (25 loc) · 784 Bytes
/
index.d.mts
File metadata and controls
26 lines (25 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
interface GCSAdapterOptions {
projectId?: string;
keyFilename?: string;
bucket: string;
bucketPrefix?: string;
directAccess?: boolean;
baseUrl?: string;
}
type GCSAdapterConstructorArgs = [GCSAdapterOptions];
declare class GCSAdapter {
private _bucket;
private _bucketPrefix;
private _directAccess;
private _gcsClient;
private _baseUrl;
constructor(...args: GCSAdapterConstructorArgs);
createFile(filename: string, data: Buffer | string, contentType?: string): Promise<void>;
deleteFile(filename: string): Promise<void>;
getFileData(filename: string): Promise<Buffer>;
getFileLocation(config: {
mount: string;
applicationId: string;
}, filename: string): string;
}
export { GCSAdapter as default };