UNPKG

@stoar/cli

Version:

CLI tool for STOAR - decentralized file storage on Arweave

31 lines 786 B
export interface BundleItem { id: string; signature: string; owner: string; tags: Array<{ name: string; value: string; }>; data: Uint8Array; } export interface BundleInfo { id: string; items: Array<{ id: string; owner: string; size: number; tags: Record<string, string>; fileName?: string; contentType?: string; }>; totalItems: number; } /** * Parse an ANS-104 bundle and extract data items */ export declare function parseBundle(bundleData: Uint8Array): Promise<BundleInfo>; /** * Fetch and parse a bundle transaction from Arweave */ export declare function fetchAndParseBundle(transactionId: string, gateway?: string): Promise<BundleInfo>; //# sourceMappingURL=bundle.d.ts.map