/**
 * Trace-layer helpers.
 *
 * A trace is a `MemoryEntry` with `layer === 'trace'` that captures an ordered
 * sequence of agent actions and their final outcome. v1 stores steps as
 * markdown in `content`; `renderTraceContent` is the canonical formatter.
 */
export interface TraceStep {
    action: string;
    observation: string;
    timestamp?: string;
}
export interface TraceRecord {
    task: string;
    steps: TraceStep[];
    outcome: 'success' | 'failure' | 'partial';
}
/**
 * Render a trace record as agent-readable markdown.
 *
 * Format:
 *   Task: <task>
 *   Outcome: <outcome>
 *   Steps:
 *     1. <action>
 *        → <observation>   (omitted if observation is empty)
 *     2. ...
 */
export declare function renderTraceContent(rec: TraceRecord): string;
/**
 * Parse a JSON string into an array of TraceStep. Throws on invalid shape.
 */
export declare function parseSteps(json: string): TraceStep[];
//# sourceMappingURL=trace.d.ts.map