import type { StandardJSONSchemaV1 } from "#compiled/@standard-schema/spec/index.js";
import type { HandleMessageStreamEvent } from "#protocol/message.js";
import type { JsonObject } from "#shared/json.js";
/**
 * Normalizes a client-supplied output schema into the wire-safe JSON Schema
 * representation accepted by eve message routes.
 */
export declare function normalizeOutputSchemaForRequest<TOutput>(schema: StandardJSONSchemaV1<unknown, TOutput> | JsonObject | undefined): JsonObject | undefined;
/**
 * Extracts the most recent finalized structured result from a turn event list.
 */
export declare function extractCompletedResult<TOutput>(events: readonly HandleMessageStreamEvent[]): TOutput | undefined;
