import { type Codec } from "./map.js"; export { type Codec, type CodecId } from "./map.js"; export { cidForWeb, cidV0ToV1Base32 } from "./helpers.js"; /** * Decode a Content Hash. * @param contentHash an hex string containing a content hash * @return the decoded content */ export declare const decode: (contentHash: string) => string; /** * General purpose encoding function * @param name Codec name * @param value Content to encode */ export declare const encode: (name: Codec, value: string) => string; /** * Extract the codec of a content hash * @param contentHash hex string containing a content hash * @return the extracted codec */ export declare const getCodec: (contentHash: string) => Codec | undefined; //# sourceMappingURL=index.d.ts.map