import React from 'react'; import type { DocumentVersion } from '@pantheon-systems/css-client'; export interface HistoricalVersionBannerProps { /** The historical version being viewed. Omit when the version is not yet loaded — shows exit-only banner. */ version?: DocumentVersion; /** Callback to return to the latest version. */ onReturnToLatest: () => void; /** Callback to revert to the viewed version (creates a new version). */ onRestoreVersion?: (version: DocumentVersion) => Promise; /** Whether the current user is allowed to revert (admin/editor only). */ canRevert?: boolean; /** Whether a return-to-latest is in progress (shows a loading state). */ isReturning?: boolean; /** Additional CSS class name. */ className?: string; /** Called when the user clicks the "Previous" (older) stepper. */ onPrevious?: () => void; /** Called when the user clicks the "Next" (newer) stepper. */ onNext?: () => void; /** Whether there is an older version to step to. */ hasPrevious?: boolean; /** Whether there is a newer version to step to. */ hasNext?: boolean; } export declare function HistoricalVersionBanner({ version, onReturnToLatest, onRestoreVersion, canRevert, isReturning, className, onPrevious, onNext, hasPrevious, hasNext, }: HistoricalVersionBannerProps): React.ReactElement;