import { a as MutableFileStore } from "./shared-Byn69p18.js"; import { a as ExecInput, c as ExecToolOptions, l as ExecToolOutput } from "./shared-r-ii1gfO.js"; import { a as writeInputSchema, c as readInputSchema, i as WriteToolOptions, l as EditToolOptions, r as publishInputSchema, s as ReadToolOptions, t as PublishToolOptions, u as editInputSchema } from "./shared-J7HCZ3Nd.js"; import { Tool } from "ai"; import { z } from "zod"; //#region src/tools/common/fs/delete.d.ts interface DeleteToolOptions { store: MutableFileStore; } declare const deleteInputSchema: z.ZodObject<{ path: z.ZodString; recursive: z.ZodOptional; }, z.core.$strip>; //#endregion //#region src/tools/common/fs/find.d.ts interface FoundEntry { path: string; type: "file" | "dir"; } interface FindWorkspaceLike { fs: { find(directory: string, pattern?: string, options?: { limit?: number; offset?: number; exclude?: string[]; }): Promise; }; } interface FindToolOptions { workspace: FindWorkspaceLike; } declare const findInputSchema: z.ZodObject<{ path: z.ZodDefault; pattern: z.ZodString; exclude: z.ZodOptional]>>; limit: z.ZodOptional; offset: z.ZodOptional; }, z.core.$strip>; //#endregion //#region src/tools/common/fs/grep.d.ts interface GrepContextLine { line: number; text: string; isMatch: boolean; } interface GrepMatch { path: string; line: number; text: string; context?: GrepContextLine[]; } interface GrepOptions { regex?: boolean; ignoreCase?: boolean; context?: number; limit?: number; offset?: number; include?: string; exclude?: string[]; } interface GrepWorkspaceLike { fs: { grep(pattern: string, path: string, options?: GrepOptions): Promise; }; } interface GrepToolOptions { workspace: GrepWorkspaceLike; } declare const grepInputSchema: z.ZodObject<{ path: z.ZodDefault; query: z.ZodString; include: z.ZodOptional]>>; exclude: z.ZodOptional]>>; regex: z.ZodOptional; ignoreCase: z.ZodOptional; context: z.ZodOptional; limit: z.ZodOptional; offset: z.ZodOptional; }, z.core.$strip>; //#endregion //#region src/tools/common/fs/list.d.ts interface ListWorkspaceLike { fs: { readdir(path: string, options?: { limit?: number; offset?: number; }): Promise>; }; } interface ListToolOptions { workspace: ListWorkspaceLike; } declare const listInputSchema: z.ZodObject<{ path: z.ZodString; limit: z.ZodOptional; offset: z.ZodOptional; }, z.core.$strip>; //#endregion //#region src/tools/ai-sdk/tools.d.ts declare function createReadTool(options: ReadToolOptions): Tool>; declare function createWriteTool(options: WriteToolOptions): Tool>; declare function createEditTool(options: EditToolOptions): Tool>; declare function createDeleteTool(options: DeleteToolOptions): Tool>; declare function createListTool(options: ListToolOptions): Tool>; declare function createFindTool(options: FindToolOptions): Tool>; declare function createGrepTool(options: GrepToolOptions): Tool>; declare function createExecTool(options: ExecToolOptions): Tool; declare function createPublishTool(options: PublishToolOptions): Tool>; //#endregion export { createGrepTool as a, createReadTool as c, GrepToolOptions as d, FindToolOptions as f, createFindTool as i, createWriteTool as l, createEditTool as n, createListTool as o, DeleteToolOptions as p, createExecTool as r, createPublishTool as s, createDeleteTool as t, ListToolOptions as u }; //# sourceMappingURL=shared-BAcOKgPO.d.ts.map