declare const REPLY_FIELDS: readonly ["messageToUser", "replyText", "response", "text"]; export type UserVisibleReplyField = (typeof REPLY_FIELDS)[number]; export type UserVisibleControlEnvelope = "action" | "planner" | "evaluator" | "spawn"; export type UserVisibleModelOutput = { kind: "empty"; fieldPath: readonly UserVisibleReplyField[]; } | { kind: "text"; text: string; format: "plain" | "json"; fieldPath: readonly UserVisibleReplyField[]; } | { kind: "control"; envelope: UserVisibleControlEnvelope; malformed: boolean; fieldPath: readonly UserVisibleReplyField[]; } | { kind: "invalid"; reason: "reply-envelope-without-text" | "reply-envelope-too-deep" | "reply-control-characters"; fieldPath: readonly UserVisibleReplyField[]; }; /** * Return a typed projection of model output. Reply scaffolds are recursively * unwrapped; planner, action, evaluator, and spawn records are explicit * control results rather than strings a caller might accidentally display. */ export declare function sanitizeUserVisibleModelOutput(value: string | undefined): UserVisibleModelOutput; export declare function looksLikeActionEnvelopeJson(text: string): boolean; export declare function looksLikeEvaluatorEnvelopeJson(text: string): boolean; export declare function looksLikeSpawnEnvelopeJson(text: string): boolean; export {};