/** * P1EditorSubheader * * Document task bar (48px). Renders: panel toggles, undo/redo, an optional * focus mode toggle, and a publish-control slot supplied by the caller. Agent * presence is shown on the block it's editing (AgentBlockMarker/AgentBlockOverlay), * not here. */ import React from 'react'; import type { RolePermissions } from '@pantheon-systems/css-client'; export interface P1EditorSubheaderProps { puckActions: React.ReactNode; hasPast: boolean; hasFuture: boolean; onUndo: () => void; onRedo: () => void; leftPanelVisible?: boolean; rightPanelVisible?: boolean; onToggleLeftPanel?: () => void; onToggleRightPanel?: () => void; /** * Controls contributed by feature plugins, placed alongside the document's * own controls. The toolbar does not know what they are. */ featureActions?: React.ReactNode; /** The caller-composed publish control. */ publishControl?: React.ReactNode; /** Backend-resolved permissions; absent means no restrictions (backward compat). */ permissions?: RolePermissions | null; /** * Whether focus mode is on. While on, the panel toggles are disabled and the * root element carries a `data-p1-focus-mode` attribute. */ focusMode?: boolean; /** Toggles focus mode. The focus mode button renders only when this is provided. */ onToggleFocusMode?: () => void; } export declare function P1EditorSubheader({ puckActions, hasPast, hasFuture, onUndo, onRedo, leftPanelVisible, rightPanelVisible, onToggleLeftPanel, onToggleRightPanel, featureActions, publishControl, permissions, focusMode, onToggleFocusMode, }: P1EditorSubheaderProps): React.ReactElement;