type HeaderBag = Headers | Record | undefined; declare class ZpiError extends Error { status: number; code?: string | number; raw: unknown; requestId?: string; constructor(message: string, status: number, raw: unknown, requestId?: string); } declare class ZpiInvalidParamsError extends ZpiError { errors: Array<{ path?: string; message?: string; }>; constructor(body: unknown, status: number, requestId?: string); } declare class ZpiExecError extends ZpiError { error: string; errors: unknown; context?: unknown; project?: string; constructor(body: unknown, status: number, requestId?: string); } declare class ZpiAuthError extends ZpiError { constructor(body: unknown, status: number, requestId?: string); } declare class ZpiPlanGateError extends ZpiError { requiredPlan?: string; upgradeUrl?: string; constructor(body: unknown, status: number, requestId?: string); } declare class ZpiNotFoundError extends ZpiError { constructor(body: unknown, status: number, requestId?: string); } declare class ZpiMethodNotAllowedError extends ZpiError { /** The verb the BE says this endpoint wants — from `content.expected`, else the * RFC 9110 `Allow` header. Actionable without parsing `.message`. */ expected?: string; constructor(body: unknown, status: number, headers?: HeaderBag, requestId?: string); } declare class ZpiRateLimitError extends ZpiError { limit?: number; used?: number; window?: "minute" | "month" | string; retryAfterSec?: number; retryAfter?: number; requested?: number; constructor(body: unknown, status: number, headers: HeaderBag, requestId?: string); } declare class ZpiBulkNotEnabledError extends ZpiError { constructor(body: unknown, status: number, requestId?: string); } declare class ZpiBulkCapError extends ZpiError { cap?: number; submitted?: number; constructor(body: unknown, status: number, requestId?: string); } declare class ZpiIdempotencyError extends ZpiError { constructor(body: unknown, status: number, requestId?: string); } declare class ZpiServerError extends ZpiError { constructor(body: unknown, status: number, requestId?: string); } declare class ZpiDisabledError extends ZpiError { constructor(body: unknown, status: number, requestId?: string); } declare class ZpiNetworkError extends ZpiError { constructor(message: string, cause?: unknown); } declare class ZpiTimeoutError extends ZpiError { constructor(message: string, cause?: unknown); } declare class ZpiAbortError extends ZpiError { constructor(message: string, cause?: unknown); } declare class ZpiWebhookVerifyError extends ZpiError { constructor(message: string); } declare class ZpiMcpError extends ZpiError { data?: unknown; constructor(message: string, opts: { code?: number | string; data?: unknown; raw: unknown; requestId?: string; }); } export { ZpiAbortError as Z, ZpiAuthError as a, ZpiBulkCapError as b, ZpiBulkNotEnabledError as c, ZpiDisabledError as d, ZpiError as e, ZpiExecError as f, ZpiIdempotencyError as g, ZpiInvalidParamsError as h, ZpiMethodNotAllowedError as i, ZpiNetworkError as j, ZpiNotFoundError as k, ZpiPlanGateError as l, ZpiRateLimitError as m, ZpiServerError as n, ZpiTimeoutError as o, ZpiMcpError as p, ZpiWebhookVerifyError as q };