/** @packageDocumentation * @module Base */ import "./PointerCaptor.scss"; import * as React from "react"; import { CommonProps } from "@bentley/ui-core"; /** Properties of [[PointerCaptor]] component. * @internal */ export interface PointerCaptorProps extends CommonProps { /** Describes if the pointer is down. */ isPointerDown: boolean; /** Function called when component is clicked. */ onClick?: () => void; /** Function called when the pointer is pressed. */ onPointerDown?: (e: PointerEvent) => void; /** Function called when the pointer is moved. */ onPointerMove?: (e: PointerEvent) => void; /** Function called when the pointer is released. */ onPointerUp?: (e: PointerEvent) => void; } /** A component which will capture the pointer down event. * @internal */ export declare class PointerCaptor extends React.PureComponent { componentDidMount(): void; componentWillUnmount(): void; render(): JSX.Element; private _handlePointerDown; private _handleDocumentPointerUp; private _handleDocumentPointerMove; } /** @internal */ export interface PointerCaptorArgs { readonly clientX: number; readonly clientY: number; } /** @internal */ export declare type PointerCaptorEvent = MouseEvent | TouchEvent; /** Captures mouse and touch events of an element. Used in drag or resize interactions. * @internal */ export declare const usePointerCaptor: (onPointerDown?: ((args: PointerCaptorArgs, e: PointerCaptorEvent) => void) | undefined, onPointerMove?: ((args: PointerCaptorArgs, e: PointerCaptorEvent) => void) | undefined, onPointerUp?: ((e: PointerCaptorEvent) => void) | undefined) => (instance: T | null) => void; //# sourceMappingURL=PointerCaptor.d.ts.map