import * as React from 'react'; import { Direction, ZoomTransform } from '../interfaces'; import { UseInteractionsProps } from './useInteractions'; import { m4 } from '../math'; interface UsePanProps { value?: ZoomTransform; onChange?: (value: ZoomTransform) => void; defaultValue?: ZoomTransform; /** * Constrain the zoom transform. */ constraint?: (transform: ZoomTransform) => ZoomTransform; /** * Direction to pan. 'x' pans horizontally, 'y' pans vertically, 'xy' pans both. */ direction?: Direction; onClick?: NonNullable; skip?: boolean | ((event: MouseEvent) => boolean); } export declare function usePan(options?: UsePanProps): { ref: React.MutableRefObject; setRef: (newElement: Element) => void; value: m4.Matrix4x4; setValue: React.Dispatch>; state: string; }; export {}; //# sourceMappingURL=usePan.d.ts.map