import React from 'react'; export interface RolloutPlanInput { name: string; startTime: string; endTime: string | null; } /** * Subset of `rollout_plan` columns needed for the client-side overlap check. * Caller should supply the same set the server's overlap query considers — * "active or upcoming" plans, i.e. `end_time IS NULL OR end_time > NOW()`. * Past plans should be filtered out by the caller so the overlap math stays * cheap. */ export interface ExistingRolloutPlan { rolloutPlanId: number; name: string; startTime: string; endTime: string | null; } interface RolloutDialogProps { open: boolean; onClose: () => void; onSubmit: (plan: RolloutPlanInput) => void; isBusy: boolean; /** * Active-or-upcoming rollout plans the new plan would have to coexist with. * Used for the live overlap check that mirrors spec § 5.9.1 — same * algorithm as the server's `createRolloutPlan` endpoint, so the user * sees the same verdict before submission. */ existingPlans?: ReadonlyArray; /** * When set, the dialog opens in **edit mode**: title/submit copy change, * fields pre-fill from this plan's values, and the overlap check skips * the plan being edited (so re-saving the same window doesn't conflict * with itself). */ editingPlan?: { rolloutPlanId: number; name: string; startTime: string; endTime: string | null; } | null; } export declare function RolloutDialog({ open, onClose, onSubmit, isBusy, existingPlans, editingPlan }: RolloutDialogProps): React.ReactElement; export {};