/**
 * A hook for building WindowTitleBars.
 */
/**
 * Creates a drag region that interacts with Finsemble's useDOMBasedMovement for moving windows.
 * Functions are returned which must be set on the drag region's React onMouseDown and onMouseUp event handlers.
 *
 * Note that this component doesn't need to worry about stopping the window movement because that is handled by FEA
 * via its own mouseup and blur event handlers (see electron-adapter/src/render/Window.ts).
 *
 * A mouseDown followed by a mouseMove is required to start window movement. By waiting for mouseMove we avoid accidentally
 * slipping into window movement mode due to a click or double click on the titlebar.
 *
 * Once in window movement mode, a requestAnimationFrame begins running in e2o.ts that tracks mouse movement and causes
 * the window to follow that movement (by reporting the mouse position up to the window service, which then decides based
 * on it's snapping algorithm whether to allow the window to move, or do other things like cause grouped windows to also move).
 *
 * We don't allow dragging a window when it is maximized. While operating systems do allow dragging a maximized window (on
 * Mac the window moves at its full maximized state, on Windows it unmaximizes to normal state and then moves) we can't allow
 * this because a maximized window may be part of a group, and if we were to move the window then the group would become indeterminate.
 */
export declare const useDragRegion: (maximized: boolean) => {
    onMouseDown: import("react").MouseEventHandler<HTMLDivElement>;
    onMouseMove: import("react").MouseEventHandler<HTMLDivElement>;
};
//# sourceMappingURL=useDragRegion.d.ts.map