import React from 'react'; type RolloutModeProps = { mode: 'rollout'; /** Sync the editor's cursors into the rollout's saved snapshot. */ onSave: () => void; /** Open the discard / revert dialog. */ onRevert: () => void; /** Open the cancel-rollout confirmation. */ onCancelRollout: () => void; isSyncing: boolean; /** * Save is a no-op when editor cursors equal saved cursors. Caller diffs * the two cursor maps and passes the result. */ hasUnsavedChanges: boolean; }; type DraftModeProps = { mode: 'draft'; /** Open the publish-now dialog. */ onPublish: () => void; /** Open the create-rollout dialog. */ onSaveAsRollout: () => void; /** Open the discard dialog. */ onDiscard: () => void; isPublishing: boolean; }; type PrimaryActionButtonProps = RolloutModeProps | DraftModeProps; /** * The split publish/save button on the editor topbar. Shape depends on * session mode: * * - **Rollout-edit** — primary "Save" + chevron menu with "Revert to * saved state…" and "Cancel rollout plan…". * - **Draft** — primary "Publish" + chevron menu with "Publish now", * "Save as rollout plan…", and "Discard pending changes…". * * The menu's open state and outside-click dismissal are owned here so the * parent doesn't have to plumb a ref + useEffect just to render this UI. */ export declare function PrimaryActionButton(props: PrimaryActionButtonProps): React.ReactElement; export {};