import type { AgentTool } from "../../../agent-core/index.js"; import { type Static, Type } from "typebox"; import type { ToolDefinition } from "../extensions/types.js"; declare const applyPatchSchema: Type.TObject<{ patchText: Type.TString; }>; export type ApplyPatchToolInput = Static; export interface ApplyPatchToolDetails { diff: string; patch: string; firstChangedLine?: number; modifiedFiles: string[]; } export interface ApplyPatchOperations { readFile: (absolutePath: string) => Promise; writeFile: (absolutePath: string, content: string) => Promise; atomicWrite?: (absolutePath: string, content: string) => Promise; removeFile: (absolutePath: string) => Promise; mkdir: (absolutePath: string) => Promise; access?: (absolutePath: string) => Promise; stat?: (absolutePath: string) => Promise<{ isDirectory: boolean; }>; } declare const defaultApplyPatchOperations: ApplyPatchOperations; export { defaultApplyPatchOperations }; export interface ApplyPatchToolOptions { operations?: ApplyPatchOperations; } export declare function createApplyPatchToolDefinition(cwd: string, options?: ApplyPatchToolOptions): ToolDefinition; export declare function createApplyPatchTool(cwd: string, options?: ApplyPatchToolOptions): AgentTool; //# sourceMappingURL=apply-patch.d.ts.map