UNPKG

@ethersphere/bee-js

Version:
11 lines (10 loc) 451 B
import { Bytes } from './bytes'; import { Reference } from './typed-bytes'; export declare const SWARM_MANIFEST_CODEC = 250; export declare const SWARM_FEED_CODEC = 251; export type DecodedCID = { type: 'feed' | 'manifest'; reference: Reference; }; export declare function convertReferenceToCid(reference: string | Uint8Array | Bytes, type: 'feed' | 'manifest'): string; export declare function convertCidToReference(cid: string): DecodedCID;