/** @packageDocumentation * @module Toolbar */ import * as React from "react"; import { Point } from "@bentley/ui-core"; import { Direction } from "../../../utilities/Direction"; /** Properties of [[withDragInteraction]] HOC. * @beta */ export interface WithDragInteractionProps { /** Drag direction to open the panel. */ direction: Direction; /** Function called when the item is clicked. */ onClick?: () => void; /** Function called when item is dragged or long pressed to open panel. */ onOpenPanel?: () => void; } /** HOC to add open panel action via drag interaction. * @beta */ export declare const withDragInteraction:

(Component: React.JSXElementConstructor

& C) => (props: JSX.LibraryManagedAttributes) => JSX.Element; /** @internal */ export declare const getDragDistance: (from: Point, to: Point, direction: Direction) => number; //# sourceMappingURL=WithDragInteraction.d.ts.map