import { PointerActivity } from "./pointer_activity"; declare const _PointerAction: { readonly CONTEXTMENU: "contextmenu"; readonly PAN_AND_ZOOM: "pan-and-zoom"; readonly SELECTION: "selection"; }; export type _PointerAction = typeof _PointerAction[keyof typeof _PointerAction]; /** * Reports pointer activity. */ declare class PointerActivityObserver { private readonly _callback; private readonly _targets; private readonly _resolvedOptions; /** * Creates a new `PointerActivityObserver` object. * @param callback - A function that is called whenever a pointer activity is detected. * @param options - An optional object that customizes this observer. */ constructor(callback: PointerActivityObserver.Callback, options?: PointerActivityObserver.Options); /** * Starts observing of the `target` element. * @param target - An `Element` to be observed. */ observe(target: Element): void; /** * Ends the observing of `target` element. * @param target - An `Element` to be unobserved. */ unobserve(target: Element): void; /** * Ends the all observing. */ disconnect(): void; /** * @hidden * @experimental */ static _enableDevMode(): void; } declare namespace PointerActivityObserver { /** * A function that is called whenever a pointer activity is detected. * @callback * @param {PointerActivity} activity - The `PointerActivity` created when a `pointerenter` event fires on the target element. */ type Callback = (activity: PointerActivity) => void; /** * The options to customize the `PointerActivityObserver` object. */ type Options = { /** * If `true`, do not automatically pointer capture for target of the `PointerActivityObserver`. */ noAutoCapture?: boolean; }; } export { PointerActivityObserver, }; //# sourceMappingURL=pointer_observer.d.ts.map