/** Error raised by the client (config / transport / validation) or relayed from the server. */ export declare class CortexClientError extends Error { readonly kind: "config" | "validation" | "transport" | "upstream"; /** Server-supplied error code, when kind === "upstream". */ readonly code?: string | undefined; constructor(kind: "config" | "validation" | "transport" | "upstream", message: string, /** Server-supplied error code, when kind === "upstream". */ code?: string | undefined); } /** Exit codes — agents branch on these, so they are part of the contract. */ export declare const EXIT: { readonly ok: 0; readonly unknown: 1; readonly config: 2; readonly validation: 3; readonly upstream: 4; readonly transport: 5; }; export declare function exitCodeFor(err: unknown): number; //# sourceMappingURL=types.d.ts.map