UNPKG

cnpmcore

Version:

Private NPM Registry for Enterprise

16 lines (15 loc) 870 B
import type { IncomingHttpHeaders } from 'node:http'; import type { Readable } from 'node:stream'; 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>; }