/*! * Structured error definitions for Fingerprint OSS * Copyright (c) 2025 Akshat Kotpalliwar * Licensed under LGPL-3.0 */ export type FingerprintErrorCode = 'CONFIG_INVALID' | 'GEO_TIMEOUT' | 'GEO_HTTP_ERROR' | 'GEO_INVALID_RESPONSE' | 'GEO_FETCH_FAILED' | 'UNKNOWN_ERROR'; export interface FingerprintWarning { code: FingerprintErrorCode; message: string; details?: Record; } export declare class FingerprintError extends Error { code: FingerprintErrorCode; details?: Record; constructor(code: FingerprintErrorCode, message: string, details?: Record); toJSON(): { details?: Record | undefined; code: FingerprintErrorCode; message: string; }; }