/** * File Tracking Hook * * An afterTool hook that automatically tracks file accesses based on tool calls. * This approach is cleaner than modifying each tool directly. * * Usage: * ```typescript * const tracker = new FileAccessTracker(); * const agent = new Agent({ * hooks: { * afterTool: [createFileTrackingHook(tracker)] * } * }); * ``` */ import type { AfterToolHook } from '../hooks/types.js'; import type { FileAccessTracker } from './file-tracker.js'; /** * Create an afterTool hook that tracks file accesses * * @param tracker - FileAccessTracker instance to record accesses * @returns An afterTool hook function */ export declare function createFileTrackingHook(tracker: FileAccessTracker): AfterToolHook; /** * Tool names that this hook tracks */ export declare const TRACKED_TOOLS: readonly ["read_file", "write_file", "edit", "grep", "glob"];