/**
 * OMK Cockpit — scroll utilities for left-pane transcript viewport.
 */
export type Rect1 = {
    x: number;
    y: number;
    w: number;
    h: number;
};
export type Rect = Rect1;
export type WheelEvent = {
    x: number;
    y: number;
    deltaY: -1 | 1;
    shiftKey: boolean;
    altKey: boolean;
    ctrlKey: boolean;
};
export declare function pointInRect1(x: number, y: number, rect: Rect1 | null | undefined): boolean;
export declare function pointInRect(x: number, y: number, rect: Rect | null | undefined): boolean;
export declare function parseSgrWheelEvents(input: Buffer | string): WheelEvent[];
export declare function maxScrollFromBottom(totalLines: number, viewportHeight: number): number;
export declare function updateScrollFromWheel(args: {
    scrollFromBottom: number;
    totalLines: number;
    viewportHeight: number;
    deltaY: -1 | 1;
    step?: number;
}): number;
export declare function sliceFromBottom(args: {
    lines: readonly string[];
    viewportHeight: number;
    scrollFromBottom: number;
}): string[];
export declare function clamp(value: number, min: number, max: number): number;
/** Enable alt screen, hide cursor, and enable SGR mouse mode for wheel events. */
export declare function enableMouseMode(): void;
/** Restore terminal mouse/cursor/screen mode. */
export declare function disableMouseMode(): void;
