import React from 'react'; interface RolloutPlanSummary { rolloutPlanId: number; uuid: string; name: string; /** ISO 8601 string parseable by `new Date()`. Null is filtered upstream. */ startTime: string; /** ISO 8601 string or null for indefinite. */ endTime: string | null; } interface SessionPickerProps { /** Op count for the user's existing draft. 0 means "no draft to resume". */ draftOpCount: number; /** ISO timestamp of the draft's last update; rendered as a hint. */ draftLastUpdated: string | null; /** * Upcoming + currently-live rollout plans the user could resume editing * (sorted by start_time ascending). Past plans are filtered out by the * caller. Empty array hides the "Continue a saved rollout plan" section. */ rolloutPlans: ReadonlyArray; /** * Editor URL for the current route (e.g. `/admin/page-builder/edit/homepage`). * Used to build per-rollout edit links: clicking a rollout navigates to * `?session=` so the page handler loads that * rollout's changeset instead of the user's draft. */ editPath: string; /** * Allow the user to dismiss the picker without choosing anything (e.g. * after they reopened it from the topbar badge). Suppresses the close X * when the dialog is the entry-point and there's no other action they * could take besides one of the cards. */ allowDismiss?: boolean; onContinueDraft: () => void; onStartFresh: () => void; /** Reopen-from-badge flow: optional close handler for the X button. */ onDismiss?: () => void; } /** * Spec § 7.8 — entry session picker. Shown on editor mount when the user * has *something* to choose between (existing draft ops, scheduled rollout * plans, or both); also reopened on demand from the topbar SessionModeBadge * so the user can switch sessions mid-edit. * * Three card types: * 1. **Continue your draft** — only shown when `draftOpCount > 0`. Resumes * the in-progress changeset where the user left off. * 2. **Start new changeset** — discards the current draft (if any) and * creates a fresh one. The primary action when there's no draft. * 3. **Saved rollout plan** — navigates to `?session=`. * The page handler resolves the rollout, pins the editor to its * changeset, and the topbar badge flips to the rollout name. */ export declare function SessionPicker({ draftOpCount, draftLastUpdated, rolloutPlans, editPath, allowDismiss, onContinueDraft, onStartFresh, onDismiss }: SessionPickerProps): React.ReactElement; export {};