export type ContentProtocol = 'ipfs' | 'ipns' | 'bzz' | 'onion' | 'onion3'; export type Codec = 'ipfs-ns' | 'ipns-ns' | 'swarm-ns' | 'onion' | 'onion3'; export interface Content { protocol: ContentProtocol | null; data: string; } /** * Decode content hash value to readable format * @param encoded */ export declare function decode(encoded: string): string; /** * Encode content to hash value to store on chain * @param text */ export declare function encode(text: string): string | null; export declare function isValid(encoded: string): boolean;