import type { AssistantMessage } from "@earendil-works/pi-ai";
import type { ExtensionAPI } from "../../types.ts";
export { type ScaffoldStrip, stripAgentScaffold } from "./scaffold-strip.ts";
/**
 * Rewrites the visible text blocks of a finalized assistant message; tool calls, thinking and
 * model-only text stay as they are. A block that held only scaffolding keeps its slot with empty
 * text. Returns undefined when nothing was removed.
 */
export declare function scrubAssistantMessage(message: AssistantMessage): AssistantMessage | undefined;
/**
 * On the chat surface (senpi#2398) a finalized assistant message loses a leading routing line,
 * handoff blocks and ledger lines before event listeners, RPC clients and the session file see it.
 * Streamed `message_update` deltas are not rewritten.
 */
export default function chatReplyScrubExtension(pi: ExtensionAPI): void;
//# sourceMappingURL=index.d.ts.map