import type { LeafHelp } from './help.js'; import type { ErrorPayload } from './io.js'; /** Schema-driven fallback: turn a result object into agent-ready plain markdown. * Field order follows the leaf's declared output schema; any extra keys append * after. Scalars (and nested objects) list as `- name: value` bullets, prose * fields render as paragraphs, and arrays become a count lead-in plus a table * or bullets. No root tag — the result is read as a continuation of the prompt. */ export declare function renderResult(result: Record, help: LeafHelp): string; /** Render a structured failure as an instruction-shaped block: what broke, what * was received, and the recovery road sign — the same recovery info the JSON * payload carries, shaped for the model to act on. */ export declare function renderError(p: ErrorPayload): string;