import { ActionsType } from './appState'; import { CanvasPixels } from './canvas'; /** internal */ export type PointerAction = 'click' | 'dblclick' | 'longpress' | 'startdrag' | 'enddrag' | null; export type PointerType = 'mouse' | 'touch'; /** internal */ export interface PointerState { positionChanged: boolean; stateChanged: boolean; isDown: boolean; type: PointerType; action: PointerAction; x: CanvasPixels; y: CanvasPixels; } /** internal */ export declare const state: PointerState; /** internal */ export interface UpdatePointerPayload { cssX: number; cssY: number; isDown: boolean; type: PointerType; } /** internal */ export interface PointerActions { update(payload: UpdatePointerPayload): PointerState; setAction(action: PointerAction): PointerState; } /** internal */ export declare const actions: ActionsType;