/** * The row and dialog pieces of `VersionHistoryPanel`: one version's table row and * action cluster (`VersionRow`), the selected version's body (`SelectedVersionBody`), * the two-version compare dialog (`CompareDialog`), and the rollback confirm * dialog (`RollbackConfirmDialog`). All generic and kind-agnostic. */ import type { ReactNode } from 'react'; import type { VersionHistoryEntry } from './version-history-panel'; interface VersionRowProps { readonly entry: VersionHistoryEntry; readonly showTags: boolean; readonly canCompare: boolean; /** This row is the armed Compare source. */ readonly compareArmed: boolean; readonly readOnly: boolean; /** An edit-tags affordance is available (the consumer supplied `onEditTags`). */ readonly canEditTags: boolean; readonly onView: (version: number) => void; readonly onCompare: (version: number) => void; readonly onEditTags: (version: number) => void; readonly onRollback: (version: number) => void; } /** One version's row: its number, timestamp, status mark, optional tags, and the * View / Compare / Edit tags / Roll back action cluster. */ export declare function VersionRow({ entry, showTags, canCompare, compareArmed, readOnly, canEditTags, onView, onCompare, onEditTags, onRollback, }: VersionRowProps): ReactNode; /** The selected version's opaque body, rendered through `JsonTree`. */ export declare function SelectedVersionBody({ entry }: { readonly entry: VersionHistoryEntry; }): ReactNode; /** A structural diff of two version bodies, in a dialog. */ export declare function CompareDialog({ from, to, fromBody, toBody, onClose, }: { readonly from: number; readonly to: number; readonly fromBody: unknown; readonly toBody: unknown; readonly onClose: () => void; }): ReactNode; /** The rollback confirmation, surfacing any rollback failure verbatim. */ export declare function RollbackConfirmDialog({ version, rollbackPending, rollbackError, extraDescription, onCancel, onConfirm, }: { readonly version: number; readonly rollbackPending: boolean | undefined; readonly rollbackError: string | undefined; readonly extraDescription: string | undefined; readonly onCancel: () => void; readonly onConfirm: (version: number) => void; }): ReactNode; export {}; //# sourceMappingURL=version-history-rows.d.ts.map