/**
 * useRollback Hook
 *
 * Manages state for the rollback dialog.
 *
 * @since v1.43.3
 */
import type { PluginVersionEntry } from '../../../core/history/index.js';
import type { RollbackView } from './rollback-types.js';
export interface UseRollbackOptions {
    /** Available versions to rollback to */
    availableVersions: PluginVersionEntry[];
    /** Maximum visible items in list */
    maxVisible?: number;
}
export interface RollbackHookResult {
    view: RollbackView;
    selectedIndex: number;
    scrollOffset: number;
    navigateUp: () => void;
    navigateDown: () => void;
    visibleVersions: PluginVersionEntry[];
    hasMoreAbove: boolean;
    hasMoreBelow: boolean;
    selectedVersion: PluginVersionEntry | undefined;
}
/**
 * Hook to manage rollback dialog state
 */
export declare function useRollback({ availableVersions, maxVisible }: UseRollbackOptions): RollbackHookResult;
//# sourceMappingURL=useRollback.d.ts.map