import { CoreLanguageCode } from '@digitaldefiance/i18n-lib'; import { BrightChainStringKey } from '../enumerations'; import { FriendsErrorCode } from '../enumerations/friendsErrorCode'; import { TranslatableBrightChainError } from './translatableBrightChainError'; /** * Error class for Friends system operations. * Extends {@link TranslatableBrightChainError} so the error message is * resolved via i18n. Carries a typed {@link FriendsErrorCode} so callers * (and the API layer) can map to the appropriate HTTP status without * string matching. */ export declare class FriendsServiceError extends TranslatableBrightChainError { readonly code: FriendsErrorCode; constructor(code: FriendsErrorCode, messageOrLanguage?: string | CoreLanguageCode, language?: CoreLanguageCode); /** * Get the i18n string key for a given FriendsErrorCode. */ static getStringKeyForCode(code: FriendsErrorCode): BrightChainStringKey; } //# sourceMappingURL=friendsServiceError.d.ts.map