/** * Error thrown when the eve server returns a non-successful HTTP response. */ export declare class ClientError extends Error { /** Stable eve error code when the response body provides one. */ readonly code: string | undefined; /** * HTTP status code returned by the server. */ readonly status: number; /** * Raw response body text. */ readonly body: string; /** * Response headers, normalized to lowercase names. */ readonly headers: Readonly>; constructor(status: number, body: string, headers?: ConstructorParameters[0]); } /** * Thrown by `ClientSession.send()`, `respond()`, `clear()`, and live stream connections when the server * answers `409 session_stranded`: another eve version built the session's owner, so it can never * execute on that deployment and new input is not delivered. Call `reset()` on the session, then * create a new one. `stream({ follow: false })` still reads recorded history. */ export declare class ClientSessionStrandedError extends ClientError { readonly code: "session_stranded"; /** The eve version that built the session, when it recorded one. */ readonly eveVersion: string | undefined; constructor(status: number, body: string, headers: ConstructorParameters[0] | undefined, details: { readonly eveVersion: string | undefined; }); } /** Builds the most specific client error for a failed eve session request. */ export declare function createClientError(status: number, body: string, headers?: ConstructorParameters[0]): ClientError;