import { TileryController, TileryPanel, TileryTabInit } from 'tilery/internal'; /** * Context object passed to the {@link PanelActionsProps.renderPanelActions} * callback, giving it access to the layout controller and a way to close * the menu after an action is triggered. */ export type TileryPanelActionsRenderContext = { /** The Tilery layout controller for the current root. */ tilery: TileryController; /** Closes the actions dropdown menu. */ closeMenu: () => void; }; /** * Props for the {@link PanelActions} component. */ export type PanelActionsProps = { /** The panel whose actions are being rendered. */ panel: TileryPanel; /** The Tilery layout controller for the current root. */ tilery: TileryController; /** Whether to show the ellipsis button that opens the actions dropdown. */ showActionsButton: boolean; /** Whether to show the "+" new-tab button. */ showNewTabButton: boolean; /** * Called when the new-tab button is clicked. Should return a * {@link TileryTabInit} to append, or nothing to handle it externally. */ onNewTab?: (panel: TileryPanel, ctx: { tilery: TileryController; }) => TileryTabInit | void; /** * Renders additional menu items in the actions dropdown. Items are * appended after the built-in split/float/maximize/close entries. */ renderPanelActions?: (panel: TileryPanel, ctx: TileryPanelActionsRenderContext) => React.ReactNode; /** * Renders a custom icon inside the ellipsis trigger button. * Defaults to a three-dot icon when omitted. */ renderActionsButtonIcon?: (panel: TileryPanel) => React.ReactNode; }; /** * Toolbar rendered at the trailing end of a panel's tab bar. Provides a * new-tab button and an ellipsis menu with split, float, maximize, pop-out, * and close actions; collapses to a minimize-only button when the panel is * full-screen. */ export declare function PanelActions({ panel, tilery, showActionsButton, showNewTabButton, onNewTab, renderPanelActions, renderActionsButtonIcon, }: PanelActionsProps): import("react").JSX.Element | null; //# sourceMappingURL=panel-actions.d.ts.map