export type ApiHttpErrorBody = string | number | boolean | null | Blob | undefined | ApiHttpErrorBody[] | { [key: string]: ApiHttpErrorBody; }; /** An HTTP error response without a documented OpenAPI error schema. */ export type ApiHttpError = { kind: "http"; status: number; body: ApiHttpErrorBody; }; /** Errors created by the TypedApi runtime before a typed HTTP error body is available. */ export type ApiClientError = { kind: "network"; cause: unknown; } | { kind: "aborted"; cause: unknown; } | { kind: "parse"; status: number; rawBody: string; cause: unknown; }; /** Standard result wrapper returned by generated API wrapper methods. */ export type ApiResult = { ok: true; status: number; response: TResponse; error?: never; } | { ok: false; status: number; response?: undefined; error: TError | ApiClientError | string; }; export type ApiSuccessResult = Extract, { ok: true; }>; export type ApiErrorResult = Extract, { ok: false; }>; //# sourceMappingURL=ApiResult.d.ts.map