import { z } from "zod"; import type { AgentTool } from "@kenkaiiii/gg-agent"; import { type ToolOperations } from "./operations.js"; import { type ReadTracker } from "./read-tracker.js"; import { type WriteGuardSettings } from "../core/workspace-guard.js"; type MutationCallback = (filePath: string) => void | Promise; /** Post-write diagnostics provider (LSP). Non-empty results are appended to successful tool output. */ type DiagnosticsProvider = (filePath: string, content: string, source?: "write") => Promise; declare const WriteParams: z.ZodObject<{ file_path: z.ZodString; content: z.ZodString; }, z.core.$strip>; export declare function createWriteTool(cwd: string, readFiles?: ReadTracker, ops?: ToolOperations, planModeRefOrOnFileMutated?: { current: boolean; } | MutationCallback, onFileMutated?: MutationCallback, onPreFileMutation?: MutationCallback, getDiagnostics?: DiagnosticsProvider, getWriteGuardSettings?: () => WriteGuardSettings | undefined): AgentTool; export {}; //# sourceMappingURL=write.d.ts.map