import { BoxBackgroundColor } from '@viasat/beam-shared/components/box'; import { PanelCloseReason, PanelDividerColor, PanelKind, PanelPosition } from './Panel.types'; export interface PanelContextValue { /** * The panel kind — used by sub-components to vary behaviour per kind. */ kind: PanelKind; /** * Whether to show a dismissible button */ dismissible?: boolean; /** * Aria label for the dismissible button */ closeButtonAriaLabel?: string; /** * Panel position (determines divider placement) */ position?: PanelPosition; /** * Request the panel to close for the given reason. Runs `onBeforeClose` if * provided and only calls `onOpenChange(false)` when the guard returns `true`. */ requestClose: (reason: PanelCloseReason) => void; /** * Default background color for all panel surfaces (Header, Body, Footer). * Subcomponent-level backgroundColor props take priority. */ backgroundColor?: BoxBackgroundColor; /** * Default divider color for all panel dividers (Header, Footer). * Subcomponent-level dividerColor props take priority. */ dividerColor?: PanelDividerColor; } export declare const PanelContext: import('react').Context; export declare const usePanelContext: () => PanelContextValue;