/** @internal */ /** @internal */ import { BaseError } from 'make-error'; import { CID } from '../../ipfs'; export declare class DecodingError extends BaseError { } export declare class ContentTypeMismatchError extends DecodingError { constructor(cid: CID); } export declare class LinkDoesNotExistError extends DecodingError { constructor(name: string); } export declare const isDecodingError: (obj: any) => obj is DecodingError; export declare const defaultError: (maybeErr: DecodingError | T, def: T) => T; declare const _default: { ContentTypeMismatchError: typeof ContentTypeMismatchError; LinkDoesNotExistError: typeof LinkDoesNotExistError; isDecodingError: (obj: any) => obj is DecodingError; defaultError: (maybeErr: DecodingError | T, def: T) => T; }; export default _default;