UNPKG

@etherna/sdk-js

Version:

Etherna SDKs for operations on the network

18 lines 554 B
import type { BatchId, BeeClient, Reference } from "../clients"; export interface WriterOptions { beeClient: BeeClient; } export interface WriterUploadOptions { signal?: AbortSignal; pin?: boolean; deferred?: boolean; encrypt?: boolean; tag?: string; batchId?: BatchId; onUploadProgress?(completion: number): void; } export declare abstract class BaseWriter<I> { constructor(item: I, opts: WriterOptions); abstract upload(opts?: WriterUploadOptions): Promise<Reference>; } //# sourceMappingURL=base-writer.d.ts.map