/** * Close codes mirrored from `voice_code/core/close_codes.py`. * * `kind` drives retry policy and presentation: `fatal` will not succeed on * retry, `expected` is a normal end of session, `transient` keeps reconnecting. * Code 4000 is reserved for the client's own pong-timeout close. */ export declare enum VoiceCloseCode { Unauthenticated = 4001, Forbidden = 4003, SessionReplaced = 4008, ServerBusy = 4029, InternalError = 4500, AuthUnavailable = 4503 } export type VoiceCloseKind = "fatal" | "expected" | "transient"; export type VoiceCloseAction = "signIn" | "openSettings"; export interface IVoiceCloseCodeInfo { readonly kind: VoiceCloseKind; readonly action?: VoiceCloseAction; } /** Return the registry entry for `code`, or `undefined` if it is unknown. */ export declare function voiceCloseCodeInfo(code: number): IVoiceCloseCodeInfo | undefined; /** Whether `code` ends the session. Unknown codes, including 1006, stay retryable. */ export declare function isTerminalCloseCode(code: number): boolean;