import type { ChatMessage, CompletionResult, NativeToolCall } from "../../../types.js"; import type { SalvagedWrite } from "../../tool-call-parser.js"; import type { SalvagedWriteOutcome } from "./tool-call-recovery.js"; export interface NativeSalvagePorts { readonly messages: ChatMessage[]; readonly toolsAttached: boolean; readonly notify: (level: "info" | "warn", message: string) => void; readonly applySalvagedWrite: (salvaged: SalvagedWrite) => Promise; } export interface NativeSalvageInput { readonly nativeToolCalls: readonly NativeToolCall[]; readonly assistantVisible: string; readonly assistantThinkContent: string; readonly hasThinking: boolean; readonly completion: Pick; } export declare const hasTruncatedNativeWrite: (calls: readonly NativeToolCall[]) => boolean; export declare const salvageTruncatedNativeWrite: (ports: NativeSalvagePorts, input: NativeSalvageInput) => Promise;