import type { ToolDefinition } from "@opencode-ai/plugin"; import type { AstGrepSearchArgs, AstGrepSearchOutput } from "./types"; type CommandResult = { exitCode: number; stdout: string; stderr: string; }; export type CommandRunner = (command: string[], cwd: string) => Promise; export declare function runCommand(command: string[], cwd: string): Promise; export declare function executeAstGrepSearch(args: AstGrepSearchArgs, context: { directory: string; }, runner?: CommandRunner): Promise; export declare function createAstGrepSearchTool(runner?: CommandRunner): ToolDefinition; export {};