/** * Cursor Tool to ActionType Mappers * * Maps Cursor's 11 tool types to normalized ActionType format. * Handles tool call lifecycle (started → completed) and result extraction. * * @module agents/cursor/normalizer/mappers */ import type { ActionType } from '../../types/agent-executor.js'; import type { CursorToolCall } from '../types/tools.js'; /** * Tool mapping result containing action type and display content. */ export interface ToolMapping { /** Normalized action type */ actionType: ActionType; /** Display content for UI */ content: string; } /** * Map tool call to ActionType (for started events without result). * * @param toolCall - Cursor tool call * @param workDir - Working directory for path relativization * @returns Tool mapping with action type and content */ export declare function mapToolToAction(toolCall: CursorToolCall, workDir: string): ToolMapping; /** * Map tool call with result to ActionType (for completed events). * * @param toolCall - Cursor tool call with result * @param workDir - Working directory for path relativization * @returns Tool mapping with action type and content including result */ export declare function mapToolToActionWithResult(toolCall: CursorToolCall, workDir: string): ToolMapping; /** * Make absolute path relative to working directory. * * @param absolutePath - Absolute file path * @param workDir - Working directory * @returns Relative path, or original if not under workDir */ export declare function makePathRelative(absolutePath: string, workDir: string): string; //# sourceMappingURL=mappers.d.ts.map