import { type Tool } from 'ai'; import { z } from 'zod'; import type { FileToolInit } from './fs-tools.ts'; declare const editSpecSchema: z.ZodObject<{ oldString: z.ZodString; newString: z.ZodString; replaceAll: z.ZodOptional; }, z.core.$strip>; declare const editFileInputSchema: z.ZodObject<{ path: z.ZodString; oldString: z.ZodString; newString: z.ZodString; replaceAll: z.ZodOptional; }, z.core.$strip>; declare const multiEditInputSchema: z.ZodObject<{ path: z.ZodString; edits: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>; export type EditSpec = z.infer; export type EditFileInput = z.infer; export type EditFileOutput = { ok: boolean; replacements: number; snippet: string; }; export type MultiEditInput = z.infer; export type MultiEditOutput = { ok: boolean; replacements: number; snippet: string; }; export declare function editFileTool(init: FileToolInit): Tool; export declare function multiEditTool(init: FileToolInit): Tool; export declare function applyEdit(content: string, edit: EditSpec): { next: string; count: number; }; export {};