import { Doc } from '../view/Doc';
export declare class DocumentEventBridge {
    private doc;
    private stage;
    private layer;
    private scrollContainer;
    private padding;
    private smooth;
    private pointerDown;
    private hasDragged;
    private downClientX;
    private downClientY;
    private lastMoveEvent;
    private readonly dragThreshold;
    private dragRaf;
    private scrollRaf;
    private autoScrollRaf;
    private activePointerId;
    private lastClientX;
    private lastClientY;
    private readonly AUTO_EDGE;
    private readonly AUTO_MAX_SPEED;
    private unsubRequestScroll;
    private unsubAutoStart;
    private unsubAutoMove;
    private unsubAutoStop;
    constructor(doc: Doc, options?: {
        padding?: number;
        smooth?: boolean;
    });
    bind(stage: any, layer: any, scrollContainer?: HTMLElement): void;
    unbind(): void;
    private bindPointerEvents;
    private unbindPointerEvents;
    private isInStage;
    private onDown;
    private onMove;
    private onUp;
    private emit;
    private onScroll;
    private onRequestScroll;
    private ensureCaretVisibleByHiddenInput;
    private onAutoStart;
    private onAutoMove;
    private onAutoStop;
    private isForeignPointer;
    private updatePointerPosition;
    startAutoScrollLoop(): void;
    stopAutoScrollLoop(): void;
    private applyAutoScroll;
    private calcDelta;
    private calcSpeed;
    private clamp;
}
