import { ZoomToElementOptions, ZoomToElementTarget } from 'react-zoom-pan-pinch'; import { Margin } from '../components'; type ZoomToElementsOptions = { scale?: number; animationTime?: number; animationType?: NonNullable; /** Free space to keep around the elements, in em of the table font size */ margin?: Margin; }; /** * Zoom to display several elements at once. * * The library's own "zoomToElement" takes an array of targets since v4.1.0 (issue #388), so all that is left * here is the "margin" option: the library only offers pixel offsets, which move the view without making any * room, and our margins are expressed in em of the table font size. */ export declare function useZoomToElements(): (elements: ZoomToElementTarget[], options?: ZoomToElementsOptions) => Promise; export {};