import type { ChatLine } from "../../types.js"; export type StructuredPatchHunk = { oldStart: number; oldLines: number; newStart: number; newLines: number; lines: string[]; }; export type FileToolResult = { kind: "write"; toolName: "write_file"; path: string; appended: boolean; bytesWritten?: number; structuredPatch: StructuredPatchHunk[]; } | { kind: "edit"; toolName: "edit_file"; path: string; dryRun: boolean; editsApplied?: number; changed?: boolean; previews: string[]; structuredPatch: StructuredPatchHunk[]; }; export declare function useFileToolResult(line: ChatLine): FileToolResult | null;