import { AuthErrorView, AuthTransportScope } from '../types/errors.js'; import { AuthServiceHealth } from './auth-service-health.js'; export interface ToAuthErrorViewOptions { health?: AuthServiceHealth; scope?: AuthTransportScope; } export declare function readAuthTransportScope(record: Record | undefined, fallback?: AuthTransportScope): AuthTransportScope | undefined; /** * Map arbitrary Athena / BAUI / fetch errors into a single {@link AuthErrorView}. * `message` is always presentation-safe. Never throws. */ export declare function toAuthErrorView(error: unknown, options?: ToAuthErrorViewOptions): AuthErrorView;