import { TFunction } from 'i18next'; export default class IpldExploreError extends Error { private readonly options; readonly translationKey: string; constructor(options: Record); /** * See IpldExploreError for usage. * You must pass a t function that is registered with namespace 'explore' and keyPrefix 'errors'. * * @param t - the i18next-react t function * @returns the translated string * @example * const {t} = useTranslation('explore', { keyPrefix: 'errors' }) * t('NameOfErrorClassThatExtendsIpldExploreError') */ toString(t: TFunction<'translation', 'translation'>): string; } export declare class BlockFetchTimeoutError extends IpldExploreError { readonly translationKey = "BlockFetchTimeoutError"; } export declare class BlockFetchError extends IpldExploreError { readonly translationKey = "BlockFetchError"; } export declare class CidSyntaxError extends IpldExploreError { readonly translationKey = "CidSyntaxError"; }