export interface CursorPosition { row: number; col: number; } /** * Query the terminal for the current cursor position * * This uses ANSI DSR (Device Status Report) escape code to ask the terminal * for its current cursor position. The terminal responds with the position. * * @param timeout - Maximum time to wait for response in milliseconds (default: 1000) * @returns Promise resolving to cursor position {row, col} (1-based) * @throws Error if timeout or parsing fails * * @example * ```ts * const pos = await queryCursorPosition(); * console.log(`Cursor at row ${pos.row}, column ${pos.col}`); * ``` */ export declare function queryCursorPosition(timeout?: number): Promise; //# sourceMappingURL=cursor-position.d.ts.map