/** * Copyright (c) Microsoft. All rights reserved. */ import * as React from 'react'; import { LabelerSelectionStore } from '../stores/LabelerSelectionStore'; /** * Creates a side effect to react whenever the selection state * changes to inform the user of the labeler that selection * has changed. Note that the callback is passed only when the * user has finished "dragging" the mouse to avoid many calls to * the callback. * * @param selectionStore The store that contains the selection state. * @param onSelectionChange A callback to fire when selection changes. */ export declare const useSelectionReaction: (selectionStore: LabelerSelectionStore, rootRef: React.MutableRefObject, onSelectionChange: (selectionStart: number, selectionEnd: number, targets: { start: Element; end: Element; }) => void) => void;