/** * This file is part of the NocoBase (R) project. * Copyright (c) 2020-2024 NocoBase Co., Ltd. * Authors: NocoBase Team. * * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. * For more information, please refer to: https://www.nocobase.com/agreement. */ import type { MouseEvent as ReactMouseEvent, RefObject } from 'react'; interface UseFloatToolbarVisibilityOptions { modelUid: string; containerRef: RefObject; toolbarContainerRef: RefObject; updatePortalRect: () => void; schedulePortalRectUpdate: () => void; } interface UseFloatToolbarVisibilityResult { isToolbarVisible: boolean; shouldRenderToolbar: boolean; handleSettingsMenuOpenChange: (open: boolean) => void; handleChildHover: (e: ReactMouseEvent) => void; handleHostMouseEnter: () => void; handleHostMouseLeave: (e: ReactMouseEvent) => void; handleToolbarMouseEnter: () => void; handleToolbarMouseLeave: (e: ReactMouseEvent) => void; handleResizeDragStart: () => void; handleResizeDragEnd: () => void; } export declare const useFloatToolbarVisibility: ({ modelUid, containerRef, toolbarContainerRef, updatePortalRect, schedulePortalRectUpdate, }: UseFloatToolbarVisibilityOptions) => UseFloatToolbarVisibilityResult; export {};