import React from 'react'; interface ExitConfirmDialogProps { /** In-flight `addChangesetOperation` POSTs that haven't returned yet. */ pendingCount: number; /** Saved-but-unpublished operations in the current draft changeset. */ unpublishedCount?: number; onStay: () => void; onLeave: () => void; onSaveAsRollout: () => void; } /** * Spec § 7.8 — exit-confirm dialog. Shown when in-app navigation is * attempted while: * - In-flight saves haven't reached the server, OR * - The draft has saved-but-unpublished operations. * * Three options: * - Stay: cancel the navigation. * - Leave: navigate anyway. In-flight typing is dropped; the unpublished * draft remains on the server and the user can resume it later. * - Save as rollout plan and leave: open the rollout-schedule flow; on * success the editor navigates to the original destination URL. * * Browser-tab close uses the native `beforeunload` prompt instead — the * platform doesn't allow custom UI for that path. */ export declare function ExitConfirmDialog({ pendingCount, unpublishedCount, onStay, onLeave, onSaveAsRollout }: ExitConfirmDialogProps): React.ReactElement; export {};