UNPKG

cnpmcore

Version:
19 lines (18 loc) 887 B
/// <reference types="node" /> import { AppendResult, NFSClient, UploadOptions, UploadResult, DownloadOptions } from '../common/typing'; import { Readable } from 'stream'; export declare class NFSClientAdapter implements NFSClient { private logger; private config; private _client; get client(): any; url?(key: string): string; protected init(): Promise<void>; appendBytes(bytes: Uint8Array, options: UploadOptions): Promise<AppendResult>; createDownloadStream(key: string): Promise<Readable | undefined>; readBytes(key: string): Promise<Uint8Array | undefined>; remove(key: string): Promise<void>; upload(filePath: string, options: UploadOptions): Promise<UploadResult>; uploadBytes(bytes: Uint8Array, options: UploadOptions): Promise<UploadResult>; download(key: string, filePath: string, options: DownloadOptions): Promise<void>; }