import { RefObject } from 'react'; import { TileryLayoutState, TileryPanelId, TileryPopoutPanelOptions, TileryReducerAction } from 'tilery/internal'; /** * Controller returned by {@link useTileryPopoutWindows} for managing panel * popout windows. */ export type TileryPopoutWindowController = { /** * Map of panel IDs to the root `
` inside their popout window, used as * React portal targets. */ popoutRoots: Record; /** * Opens a popout window for the given panel (or focuses it if already open). * * @returns `true` if the window was opened or focused, `false` if blocked. */ requestPopoutPanel: (panelId: TileryPanelId, opts?: TileryPopoutPanelOptions) => boolean; /** Closes the popout window and returns the panel to its floating state. */ returnPopoutPanelToFloating: (panelId: TileryPanelId) => void; }; /** * Synchronises open popout windows with the layout state, opening new windows * for panels that become popped-out and closing windows whose panels return to * floating or are removed. */ export declare function useTileryPopoutWindows({ containerRef, state, dispatchWithLifecycle, }: { containerRef: RefObject; state: TileryLayoutState; dispatchWithLifecycle: (action: TileryReducerAction) => void; }): TileryPopoutWindowController; //# sourceMappingURL=use-popout-windows.d.ts.map