import { AppEventContext, IPlugin } from "../app";
import { WheelRedrawHandler } from "../plugin-wheel/handler/WheelRedrawHandler";
interface SafariGestureEvent extends Event {
    scale: number;
    clientX: number;
    clientY: number;
}
/**
 * Safari 触控板捏合派发的是私有 `gesturestart/gesturechange/gestureend`，
 * 而不是带 ctrlKey 的 wheel，故需要单独把 `event.scale` 翻译为画布缩放。
 */
export declare class GestureEventPlugin implements IPlugin {
    eventCtx: AppEventContext;
    redrawHandler: WheelRedrawHandler;
    private lastScale;
    private focalGlobalPoint;
    constructor(eventCtx: AppEventContext);
    start(): void;
    stop(): void;
    onEnable(_event: Event): boolean;
    private onGestureStart;
    private onGestureChange;
    private onGestureEnd;
    protected beforeGestureStart(_event: SafariGestureEvent): void;
    protected beforeGestureChange(_event: SafariGestureEvent): void;
    protected afterGestureChange(_event: SafariGestureEvent): void;
    protected afterGestureEnd(_event: SafariGestureEvent): void;
    private getGlobalPoint;
}
export {};
//# sourceMappingURL=GestureEventPlugin.d.ts.map