export declare function formatSubmittedEcho(opts: { buffer: string; promptText: string; isTTY: boolean; terminalWidth?: number; attachmentSummary?: string; }): string; export declare function visualRowCount(buffer: string, promptVisibleLen: number, cols: number): number; export declare function visualCursorPos(buffer: string, cursorIdx: number, promptVisibleLen: number, cols: number): { row: number; col: number; }; export interface VisualPositionMap { readonly rowAt: readonly number[]; readonly colAt: readonly number[]; readonly totalRows: number; } export declare function buildVisualPositionMap(buffer: string, promptVisibleLen: number, cols: number): VisualPositionMap;