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;
    onOpenSettings: () => void;
    onSaveDraft: () => void;
    onPublish: () => void;
}
export declare function EditorTopBar({ title, status, dirty, saveState, publishing, canEdit, canPublish, viewport, backLabel, onViewport, onBack, onPreview, onViewOnSite, onOpenSettings, onSaveDraft, onPublish, }: EditorTopBarProps): import("react/jsx-runtime").JSX.Element;
export {};
//# sourceMappingURL=EditorTopBar.d.ts.map