import { Viewer } from 'openseadragon'; import { ShapeSelection } from './selection/shape-selection'; import { BaseShape } from './shapes/base-shape'; import { Rect } from './utils/rect'; export interface ViewerSelectionOptions { /** * callback that will be called after the drawing is done. * @param rect bounding box of the selected aria * @param shape the shape object used to draw the selection * @required */ onSelection: (rect: Rect, shape: BaseShape) => void; /** * if set to true, the shape will automatically * be added to the canvas after drawing is finished. * @default false */ keep: boolean; } export declare type ViewerSelectionType = (options: ViewerSelectionOptions) => ShapeSelection; export declare function wrapSelectionCallback(viewer: Viewer, options: ViewerSelectionOptions): (rect: import("openseadragon").Rect, shape: BaseShape) => void; export declare function selection(this: Viewer, options: ViewerSelectionOptions): ShapeSelection; export declare function initSelection(this: Viewer): void; //# sourceMappingURL=selection.d.ts.map