@ethersphere/bee-js
Version:
Javascript client for Bee
11 lines (10 loc) • 451 B
TypeScript
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;