type DragOptions = {
to: HTMLElement | {
x: number;
y: number;
};
delta?: {
x: number;
y: number;
};
steps?: number;
duration?: number;
};
/**
*
* @param fireEvent This can be either fireEvent from @testing-library/react or fireEvent from @storybook/test
* @param element The element to drag
* @param options
* @param options.to The target element or coordinates to drag to
* @param options.delta An x/y delta to drag the element by (this will override the "to" option)
* @param options.steps The number of steps in the drag action (more = smoother)
* @param options.duration The duration of the drag action in ms
*/
export declare function drag(fireEvent: any, element: HTMLElement, { to: inTo, delta, steps, duration }: DragOptions): Promise;
export {};