import type { PageStatus } from '../../lib/page-editor-service.js';
import { type ViewportId } from './viewports.js';
export type SaveState = 'idle' | 'saving' | 'saved' | 'error';
interface EditorTopBarProps {
    title: string;
    status: PageStatus;
    dirty: boolean;
    saveState: SaveState;
    publishing: boolean;
    canEdit: boolean;
    canPublish: boolean;
    viewport: ViewportId;
    /** Breadcrumb root label + back-button text (e.g. "Pages" or "Posts"). */
    backLabel?: string;
    onViewport: (v: ViewportId) => void;
    onBack: () => void;
    onPreview: () => void;
    /**
     * Open the draft on the public site (real front-end) in a new tab. When
     * omitted the "View on site" button is hidden — e.g. for unsaved documents
     * or installs without a public URL.
     */
    onViewOnSite?: () => void;
    /**
     * Open the version history panel. When omitted the History button is
     * hidden — e.g. for unsaved documents that have no versions yet.
     */
    onHistory?: () => void;
    /** Whether the inline site preview (iframe of the public site) is showing. */
    sitePreview?: boolean;
    /**
     * Toggle the inline site preview — renders the draft through the consumer's
     * real public route inside the editor. Hidden when omitted (unsaved docs).
     */
    onToggleSitePreview?: () => void;
    onOpenSettings: () => void;
    onSaveDraft: () => void;
    onPublish: () => void;
    /**
     * Section types the canvas renders as placeholders (custom / unmanaged).
     * When non-empty the editor is in "structure" mode: the eye preview is
     * labeled as a structure preview and "View on site" is promoted to a
     * labeled button as the primary design preview.
     */
    structuralTypes?: string[];
}
export declare function EditorTopBar({ title, status, dirty, saveState, publishing, canEdit, canPublish, viewport, backLabel, onViewport, onBack, onPreview, onViewOnSite, onHistory, sitePreview, onToggleSitePreview, onOpenSettings, onSaveDraft, onPublish, structuralTypes, }: EditorTopBarProps): import("react/jsx-runtime").JSX.Element;
export {};
//# sourceMappingURL=EditorTopBar.d.ts.map