export type SofyaConfigErrorCode = /** A configured destination does not use secure transport or explicit loopback. */ "INSECURE_TRANSPORT" /** No cryptographic random source could generate a session identifier. */ | "SECURE_RANDOM_UNAVAILABLE" | "UNSUPPORTED_MODE" | "INVALID_GATEWAY_CONFIG" | "INVALID_CHUNK_MS" /** The `sofya_gateway` server refused the audio format (close `1003`). */ | "UNSUPPORTED_AUDIO_FORMAT"; /** Non-auth configuration error, thrown before any connection is opened. */ export declare class SofyaConfigError extends Error { readonly code: SofyaConfigErrorCode; constructor(code: SofyaConfigErrorCode, message: string); } /** Gateway close: the monthly minute quota is exhausted. Terminal (AB#4440). */ export declare const QUOTA_EXCEEDED_CLOSE_CODE = 4429; /** Gateway close: no capacity right now (concurrent sessions or opens per minute). Transient (AB#4449). */ export declare const CAPACITY_EXHAUSTED_CLOSE_CODE = 1013; /** * Payload of the gateway usage-limit signals: `error` with `quota_exceeded` * (terminal) and `capacity_warning` with `capacity_exhausted` (the SDK keeps * reconnecting). Fixed messages; the server's reason text is never forwarded. */ export interface SofyaServiceLimit { provider: string; code: "quota_exceeded" | "capacity_exhausted"; message: string; } export declare const quotaExceededError: (provider: string) => SofyaServiceLimit; export declare const capacityExhaustedWarning: (provider: string) => SofyaServiceLimit; //# sourceMappingURL=errors.d.ts.map