UNPKG

cnpmcore

Version:
18 lines (17 loc) 912 B
/// <reference types="node" /> /// <reference types="node" /> import { Readable } from 'stream'; import { IncomingHttpHeaders } from 'http'; export declare class NFSAdapter { private readonly nfsClient; private readonly logger; uploadBytes(storeKey: string, bytes: Uint8Array): Promise<void>; appendBytes(storeKey: string, bytes: Uint8Array, position?: string, headers?: IncomingHttpHeaders): Promise<string | undefined>; uploadFile(storeKey: string, file: string): Promise<void>; downloadFile(storeKey: string, file: string, timeout: number): Promise<void>; remove(storeKey: string): Promise<void>; getStream(storeKey: string): Promise<Readable | undefined>; getBytes(storeKey: string): Promise<Uint8Array | undefined>; getDownloadUrl(storeKey: string): Promise<string | undefined>; getDownloadUrlOrStream(storeKey: string): Promise<string | Readable | undefined>; }