import { ElementStyle } from "./ElementStyle"; export declare class Joystick { private isMousePressed; private touchId; private transformProperty; private isTransform3dSupported; private stickX; private stickY; container: HTMLElement; style: { stick?: ElementStyle; base?: ElementStyle; }; stickElement: HTMLElement; baseElement: HTMLElement; isMouseSupporting: boolean; isStationaryBase: boolean; isVisible: boolean; baseX: number; baseY: number; isStickLimited: boolean; stickLimitRadius: number; isPreferringCssTransform: boolean; centerAnchorElement: HTMLElement; onDeltaChanged: (joystick: Joystick) => void; onDown: (joystick: Joystick) => void; onUp: (joystick: Joystick) => void; constructor(options: Partial); destroy(): void; recalculatePosition(): void; getDeltaX(): number; getDeltaY(): number; private getBaseElementCenterX(); private getBaseElementCenterY(); private getStickCenterX(); private getStickCenterY(); private returnStickToBase(); private buildStickElement(); private buildBaseElement(); private initializeElements(); private initBaseStyle(); private initStickStyle(); private bindListeners(); private onTouchStart; private onTouchEnd; private onTouchMove; private onMouseDown; private onMouseUp; private onMouseMove; private up(); private down(x, y); private move(x, y); private moveStick(x, y); private moveElement(style, x, y); }