export declare const openCodeTransportErrorCodes: readonly ["access_denied", "access_expired", "authentication_required", "runtime_start_failed", "runtime_exited", "native_history_missing", "transport_unavailable"]; export type OpenCodeTransportErrorCode = (typeof openCodeTransportErrorCodes)[number]; export declare const openCodeStartupReasons: readonly ["executable-not-found", "permission-denied", "launch-failed", "exited", "timed-out", "cancelled"]; export type OpenCodeStartupReason = (typeof openCodeStartupReasons)[number]; export type OpenCodeTransportAction = "sign_in" | "open_settings" | "open_terminal" | "reconnect"; export interface OpenCodeTransportFailure { code: OpenCodeTransportErrorCode; message: string; retryable: boolean; action: OpenCodeTransportAction; reason?: OpenCodeStartupReason; } export interface OpenCodeTransportErrorBody { error: OpenCodeTransportFailure; } export interface OpenCodeStudioErrorEvent { type: "studio.error"; properties: OpenCodeTransportFailure; } export declare function openCodeTransportFailure(code: Exclude): OpenCodeTransportFailure; export declare function openCodeTransportFailure(code: "runtime_start_failed", reason?: OpenCodeStartupReason): OpenCodeTransportFailure; /** Accept only the exact shared combination; arbitrary server text is untrusted. */ export declare function parseOpenCodeTransportFailure(value: unknown): OpenCodeTransportFailure | null; export declare function parseOpenCodeTransportErrorBody(value: unknown): OpenCodeTransportFailure | null; export declare function parseOpenCodeStudioErrorEvent(value: unknown): OpenCodeTransportFailure | null; //# sourceMappingURL=opencode-errors.d.ts.map