import type { ToolResult } from "../types.js"; export { fsList, fsRead } from "./fs/read.js"; export { fsAppend, fsDelete, fsEdit, fsWriteMany } from "./fs/mutations.js"; export { fsSearch } from "./fs/search.js"; export declare function withFileMutation(path: string, operation: () => Promise): Promise; export declare function writeFileAtomic(resolved: string, contents: string): Promise; export declare function pathInsideSandbox(resolvedPath: string, mode: "read" | "write"): boolean; export declare function isOutsideWorkingDirectory(resolvedPath: string): boolean; export declare function resolveFsToolPath(path: string): string; export interface FsReadOptions { maxBytes?: number | undefined; confirmed?: boolean | undefined; offset?: number | undefined; limit?: number | undefined; startLine?: number | undefined; endLine?: number | undefined; pattern?: string | undefined; context?: number | undefined; maxMatches?: number | undefined; caseInsensitive?: boolean | undefined; } export declare function fsWrite(path: string, content: string, options?: { confirmed?: boolean | undefined; }): Promise; export declare function fsReplaceLines(path: string, startLine: number, endLine: number, content: string, options?: { confirmed?: boolean | undefined; }): Promise; export interface FileWrite { path: string; content: string; }