import { UseTransitionStylesProps } from '@floating-ui/react'; import { ComponentPropsWithoutRef, CSSProperties, RefObject } from 'react'; import { PanelDividerColor, PanelModalType, PanelPosition, PanelResizeConfig, ResolvedPanelOffset } from './Panel.types'; import { PanelContextValue } from './Panel.context'; import { FloatingUIProps } from '../FloatingUI/FloatingUI.context'; type OverlayPanelProps = { contextValue: PanelContextValue; panelClassName: string; resolvedPosition: PanelPosition; showDivider: boolean; modalType?: PanelModalType; closeOnOutsidePress?: boolean; floatingOffset?: ResolvedPanelOffset; open?: boolean; onOpenChange?: FloatingUIProps['onOpenChange']; transitionConfig: UseTransitionStylesProps; children: React.ReactNode; dividerColor?: PanelDividerColor; resizeConfig?: PanelResizeConfig; /** Forwarded from Panel: CSS custom-property overrides (`--bm-comp-panel-width` / `-height`). */ cssVarStyle?: CSSProperties; /** Forwarded from Panel: when true, suppress the slide-in animation on this mount. */ skipMountAnimation?: boolean; /** * Portal target; when set, panel renders inside this element using position: absolute. * `undefined` means no container (full-screen). A pending container is handled upstream: * Panel returns null before reaching here, so this is never `null`. */ container?: HTMLElement; /** * The element that opens the panel; clicks on it are excluded from outside-press * dismissal so it can toggle the panel without the close immediately re-firing. * Focus returns to the previously-focused element (typically this trigger) on close. * No effect on `kind="inline"`. */ triggerRef?: RefObject; } & ComponentPropsWithoutRef<'aside'>; export declare const OverlayPanel: ({ contextValue, panelClassName, resolvedPosition, showDivider, modalType, closeOnOutsidePress, floatingOffset, open, onOpenChange, transitionConfig, dividerColor, children, resizeConfig, cssVarStyle, skipMountAnimation, container, triggerRef, ...props }: OverlayPanelProps) => import("react/jsx-runtime").JSX.Element; export {};