export interface TransportErrorInit { /** The operation that failed, e.g. `preview.artifact`. */ operation: string; /** * A machine code: the server's own when its `error` field is one, * otherwise `request_failed`, `invalid_json`, `invalid_response`, * `network`, `service_not_configured`, or `not_implemented`. */ code: string; message: string; status?: number; retryable?: boolean; preparing?: boolean; details?: readonly string[]; /** The parsed body, for a caller that needs more than the code. */ payload?: unknown; cause?: unknown; } export declare class TransportError extends Error { readonly operation: string; readonly code: string; readonly status: number | undefined; readonly retryable: boolean; readonly preparing: boolean; readonly details: readonly string[]; readonly payload: unknown; constructor(init: TransportErrorInit); /** Structural, so an error from another module instance of this class still counts. */ static is(value: unknown): value is TransportError; }