UNPKG

@codex-storage/sdk-js

Version:

Codex SDK to interact with the Codex decentralized storage network.

19 lines (16 loc) 635 B
import { Readable } from 'node:stream'; import { l as UploadStategy, k as UploadStategyOptions, S as SafeValue } from './types-C5Toly_l.mjs'; import { FormData } from 'undici'; import 'valibot'; declare class NodeUploadStategy implements UploadStategy { private readonly body; private readonly metadata; private abortController; constructor(body: string | Buffer | Uint8Array | null | Readable | FormData, metadata?: { filename?: string; mimetype?: string; }); upload(url: string, { auth }: UploadStategyOptions): Promise<SafeValue<string>>; abort(): void; } export { NodeUploadStategy };