import type { AgentTool } from '@earendil-works/pi-agent-core'; import { type TruncationResult } from './truncate.js'; export type GrepToolInput = { pattern: string; path?: string; glob?: string; ignoreCase?: boolean; literal?: boolean; context?: number; limit?: number; }; export interface GrepToolDetails { truncation?: TruncationResult; matchLimitReached?: number; linesTruncated?: boolean; } /** * Grep tool - Search file contents for a pattern */ export declare function createGrepTool(cwd: string): AgentTool; /** Default grep tool using process.cwd() */ export declare const grepTool: AgentTool;