import type { AgentExecution } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/api_pb";
/**
 * Compares two `AgentExecution` snapshots and returns a hybrid object
 * that reuses old references for unchanged subtrees.
 *
 * The runner appends new messages and mutates the streaming tail.
 * Messages at stable indices with unchanged content keep the previous
 * reference so downstream `React.memo` can skip re-renders.
 *
 * When `prev` is `null` (first snapshot), returns `next` unchanged.
 */
export declare function structuralShare(prev: AgentExecution | null, next: AgentExecution): AgentExecution;
//# sourceMappingURL=structural-share.d.ts.map