import type { AgentMessage, StreamFn } from "@mariozechner/pi-agent-core"; import { type ToolCallIdMode } from "../../tool-call-id.js"; import type { TranscriptPolicy } from "../../transcript-policy.js"; export declare function wrapStreamFnTrimToolCallNames(baseFn: StreamFn, allowedToolNames?: Set, guardOptions?: { unknownToolThreshold?: number; }): StreamFn; export declare function sanitizeReplayToolCallIdsForStream(params: { messages: AgentMessage[]; mode: ToolCallIdMode; allowedToolNames?: Set; preserveNativeAnthropicToolUseIds?: boolean; preserveReplaySafeThinkingToolCallIds?: boolean; repairToolUseResultPairing?: boolean; }): AgentMessage[]; export declare function wrapStreamFnSanitizeMalformedToolCalls(baseFn: StreamFn, allowedToolNames?: Set, transcriptPolicy?: Pick): StreamFn;