import type { HTMLAttributes } from "react"; export interface RollbackTarget { id: string; version: string; commitSha: string; commitMessage: string; deployedAt: string; isCurrent?: boolean; /** * Optional duration of the deploy (e.g. "24s") for context. */ duration?: string; } interface RollbackUIProps extends HTMLAttributes { /** * Deployment history, newest first. The current deploy should have `isCurrent: true`. */ history: RollbackTarget[]; /** * Fires when user confirms rollback to a specific target. */ onRollback?: (targetId: string) => void | Promise; } /** * RollbackUI — instant rollback selector showing recent versions. * * The current deploy is marked, every other version offers a "Roll back" button. * On select, the row enters confirm state (Confirm / Cancel buttons inline) before * firing onRollback. This protects against accidental rollbacks while still being one click. */ declare const RollbackUI: import("react").ForwardRefExoticComponent>; export { RollbackUI };