export type TOTPErrorCode = 'INVALID_SECRET' | 'INVALID_TOKEN' | 'EXPIRED_TOKEN' | 'INVALID_TIME_STEP' | 'INVALID_DIGITS' | 'INVALID_WINDOW' | 'RATE_LIMIT_EXCEEDED' | 'CRYPTO_NOT_AVAILABLE' | 'DECODE_ERROR' | 'ENCRYPTION_ERROR'; export declare class TOTPError extends Error { readonly code: TOTPErrorCode; readonly details?: any | undefined; constructor(code: TOTPErrorCode, message: string, details?: any | undefined); toJSON(): { name: string; code: TOTPErrorCode; message: string; details: any; }; } export declare function isTOTPError(error: unknown): error is TOTPError; export declare function getErrorCode(error: unknown): TOTPErrorCode | null; //# sourceMappingURL=errors.d.ts.map