import type { JudgmentRequest, JudgmentResult } from "../judgment/types.js"; import type { JudgmentImageAssets } from "../judgment/wire.js"; export interface SystemOneParsedRequest { modelId: string; request: JudgmentRequest; imageAssets?: JudgmentImageAssets; } /** `POST /v1/systemone` response body; `cost` (USD) appears only when the route billed one. */ export interface SystemOneResponseBody { model: string; answers: JudgmentResult["answers"]; usage: { input_tokens: number; output_tokens: number; cost?: number; }; } /** * Validate the routing-relevant parts of a System One request body, including * top-level embedded images and inline TypeSafe image assets. * * @throws {AIError.ValidationError} when required routing fields are missing * or malformed, supplied image data is invalid, or an asset uses multipart * `part`, which this JSON ingress cannot read. */ export declare function parseRequest(body: unknown): SystemOneParsedRequest; /** Re-encode a judgment result in TypeSafe's response shape. */ export declare function encodeResponse(result: JudgmentResult): SystemOneResponseBody; /** @deprecated Use `noStoreErrorResponse` from `auth-gateway/http`. */ export { noStoreErrorResponse as formatError } from "../auth-gateway/http.js";