/** * open_document_in_cursor tool: Open files in Cursor editor using URI protocol with CLI fallback. */ import { z } from 'zod'; import type { ToolContext, ToolResult } from '../types.js'; /** * Input schema for open_document_in_cursor tool. */ export declare const OpenDocumentInputSchema: z.ZodObject<{ path: z.ZodString; line: z.ZodOptional; column: z.ZodOptional; }, z.core.$strip>; export type OpenDocumentInput = z.infer; /** * Output interface for open_document_in_cursor tool. */ export interface OpenDocumentOutput { success: boolean; method?: 'uri' | 'cli'; message?: string; error?: string; } /** * Check if cursor CLI is available on the system. * * @returns true if cursor command is available, false otherwise */ export declare function isCursorCliAvailable(): boolean; /** * Open a file in Cursor using URI protocol with CLI fallback. * * @param filePath - Absolute path to the file * @param options - Optional line and column numbers * @returns Result indicating success and method used */ export declare function openInCursor(filePath: string, options?: { line?: number; column?: number; }): Promise<{ success: boolean; method: 'uri' | 'cli' | 'failed'; error?: string; }>; /** * Handle open_document_in_cursor tool request. * Opens a file in Cursor editor at an optional line/column position. * * @param input - Tool input * @param context - Tool context * @returns Tool result */ export declare function handleOpenDocumentInCursor(input: OpenDocumentInput, context: ToolContext): Promise; //# sourceMappingURL=open-document-in-cursor.d.ts.map