UNPKG

@ethersphere/bee-js

Version:
7 lines (6 loc) 791 B
import { Bee, BeeRequestOptions, CollectionUploadOptions, UploadOptions, UploadResult } from '..'; import { BatchId } from './typed-bytes'; import { UploadProgress } from './upload-progress'; export declare function hashDirectory(dir: string): Promise<import("./typed-bytes").Reference>; export declare function streamDirectory(bee: Bee, dir: string, postageBatchId: BatchId | string | Uint8Array, onUploadProgress?: (progress: UploadProgress) => void, options?: CollectionUploadOptions, requestOptions?: BeeRequestOptions): Promise<UploadResult>; export declare function streamFiles(_bee: Bee, _files: File[] | FileList, _postageBatchId: BatchId, _onUploadProgress?: (progress: UploadProgress) => void, _options?: UploadOptions, _requestOptions?: BeeRequestOptions): Promise<UploadResult>;