import { type Codec as InternalCodec } from '@ensdomains/content-hash'; import { type Hex } from 'viem'; import { type ErrorType } from '../errors/utils.js'; export type ProtocolType = 'ipfs' | 'ipns' | 'bzz' | 'onion' | 'onion3' | 'sia' | 'ar' | null; export type DecodedContentHash = { protocolType: ProtocolType; decoded: string; }; export type GetDisplayCodecErrorType = ErrorType; export declare const getDisplayCodec: (encoded: string) => ProtocolType; export type GetInternalCodecErrorType = ErrorType; export declare const getInternalCodec: (displayCodec: NonNullable) => InternalCodec; export type DecodeContentHashErrorType = ErrorType | GetDisplayCodecErrorType; export declare function decodeContentHash(encoded: Hex): DecodedContentHash | null; export type IsValidContentHashErrorType = ErrorType | GetDisplayCodecErrorType; export declare function isValidContentHash(encoded: unknown): boolean; export type GetProtocolTypeErrorType = ErrorType; export declare function getProtocolType(encoded: string): { protocolType: NonNullable; decoded: string; } | null; export type EncodeContentHashErrorType = ErrorType | GetProtocolTypeErrorType; export declare function encodeContentHash(text: string): Hex; //# sourceMappingURL=contentHash.d.ts.map