import { type Tool } from 'ai'; import { z } from 'zod'; import { type FileStateTracker } from './file-state.ts'; export type ToolInit = { cwd: string; }; export type FileToolInit = ToolInit & { fileState: FileStateTracker; }; export declare const DEFAULT_READ_LINES = 2000; declare const readFileInputSchema: z.ZodObject<{ path: z.ZodString; offset: z.ZodOptional; limit: z.ZodOptional; }, z.core.$strip>; declare const writeFileInputSchema: z.ZodObject<{ path: z.ZodString; content: z.ZodString; }, z.core.$strip>; export type ReadFileInput = z.infer; export type ReadFileOutput = { content: string; }; export type WriteFileInput = z.infer; export type WriteFileOutput = { ok: boolean; }; export declare function readFileTool(init: FileToolInit): Tool; export declare function writeFileTool(init: FileToolInit): Tool; export {};