import { C as EngineInfo } from "./types-BZXvyqcb.mjs"; import { ChallengeWireErrorCode, ChallengeWireInput } from "@kya-os/checkpoint-shared"; //#region src/engine/render-types.d.ts /** Per-request host settings for the engine renderer. */ interface EngineRenderOptions { /** Serve the body-readable HTTP 200 for Challenge / Instruct (negotiated mode). */ bodyReadable200?: boolean; /** Registered context for a canonical Delegation challenge. */ delegationChallenge?: ChallengeWireInput; /** The host tried to resolve registered context and got none. */ challengeContextRequested?: boolean; } /** The rendered answer. `status: null` passes the request through. */ interface EngineRenderedResponse { status: number | null; /** Ordered `[name, value]` pairs, applied in order. Names may repeat. */ headers: [name: string, value: string][]; body?: unknown; } /** The TS challenge-wire codes plus `invalid-input` for an unparseable input. */ type EngineRenderErrorCode = ChallengeWireErrorCode | 'invalid-input'; /** What every binding returns. */ interface EngineRenderEnvelope { success: boolean; result?: EngineRenderedResponse; error?: { code: EngineRenderErrorCode; message: string; }; } /** One control the engine enforces, and the engine version it arrived in. */ interface EngineCapability { id: string; since: string; } /** The engine's self-description: attribution stamp plus capabilities. */ interface EngineManifest { manifestVersion: number; engine: EngineInfo; capabilities: EngineCapability[]; } /** A typed render failure, with the same codes as `ChallengeWireError`. */ declare class EngineRenderError extends TypeError { readonly code: EngineRenderErrorCode; constructor(code: EngineRenderErrorCode, message: string); } //#endregion export { EngineRenderErrorCode as a, EngineRenderError as i, EngineManifest as n, EngineRenderOptions as o, EngineRenderEnvelope as r, EngineRenderedResponse as s, EngineCapability as t }; //# sourceMappingURL=render-types-CPBSWMXR.d.mts.map