import React from 'react'; export type DiscardMode = 'all' | 'route'; export interface DiscardConfirmDialogProps { open: boolean; /** * The route the user is currently viewing — drives the label of the * "this page only" option and the route filter sent on confirm. */ currentRouteId: string; currentRouteName?: string; /** * Op count for the current route, when known. Renders as a small hint. * Pass `undefined` to omit; pass `0` to hide the "this page only" option * entirely (nothing to discard on this page). */ currentRouteOpCount: number | undefined; /** * Per-route breakdown for the "all" option's hint text. Sorted by count * descending by the caller. Pass `[]` if unknown. */ routeBreakdown: ReadonlyArray<{ route: string; count: number; }>; totalOpCount: number; busy?: boolean; /** * When true, the dialog reframes its copy for rollout-edit mode: "revert" * instead of "discard", and the option subtitles describe the rollback to * the rollout's saved snapshot rather than draft destruction. Server * semantics (rolllout vs draft) are inferred there; this prop only * controls UI text. */ rolloutMode?: boolean; onConfirm: (mode: DiscardMode) => void | Promise; onCancel: () => void; } /** * Two-mode discard dialog (spec § 7.6 / § 7.8). The default is to discard * the whole draft (legacy behavior). Users editing across multiple routes * can opt into a route-scoped discard that leaves their other-route work * intact. */ export declare function DiscardConfirmDialog({ open, currentRouteId, currentRouteName, currentRouteOpCount, routeBreakdown, totalOpCount, busy, rolloutMode, onConfirm, onCancel }: DiscardConfirmDialogProps): React.ReactElement;