import fsPromises from "node:fs/promises"; import type { AgentPlugin } from "../runtime/plugin-types.js"; import type { PluginSpec } from "./registry.js"; type PluginFileSystem = Pick; type GrepOutputMode = "files_with_matches" | "content" | "count"; type SearchContentOptions = { pattern: string; path: string; glob?: string; outputMode: GrepOutputMode; lineNumbers: boolean; ignoreCase: boolean; signal: AbortSignal; }; type SearchContentFn = (options: SearchContentOptions) => Promise; type GlobFilesOptions = { pattern: string; cwd: string; }; type GlobFilesFn = (options: GlobFilesOptions) => Promise; type FilesPluginOptions = { cwd?: string; allowedPaths?: string[]; fs?: PluginFileSystem; searchContent?: SearchContentFn; globFiles?: GlobFilesFn; }; export type FilesPluginConfigOptions = Pick; declare const filesPlugin: (options?: FilesPluginOptions) => AgentPlugin; export default filesPlugin; export declare const spec: PluginSpec;