import type DataGrid from "./DataGrid";
interface ScrollerState {
    x?: number;
    y?: number;
    move: boolean;
    focus: boolean;
    size: number;
    ratio: number;
    has: boolean;
}
declare class Scroller {
    grid: DataGrid;
    horizontalScroller: ScrollerState;
    verticalScroller: ScrollerState;
    mouseOriginalX?: number;
    mouseOriginalY?: number;
    constructor(grid: DataGrid);
    /**
     * 初始化滚动条配置
     */
    reset(): void;
    update(diff: number, dir: "HORIZONTAL" | "VERTICAL"): void;
    setPosition(): void;
    isInsideHorizontalScroller(mouseX: number, mouseY: number): boolean;
    isInsideHorizontalScrollerBar(mouseX: number, mouseY: number): boolean;
    isInsideVerticalScroller(mouseX: number, mouseY: number): boolean;
    isInsideVerticalScrollerBar(mouseX: number, mouseY: number): boolean;
    mouseDown(x: number, y: number): void;
    mouseMove(x: number, y: number): void;
    mouseUp(): void;
    draw(): void;
}
export default Scroller;
