import * as react_jsx_runtime from 'react/jsx-runtime'; import React__default, { RefObject } from 'react'; type ScrollRole = "master" | "slave" | "drag"; interface SyncScrollProviderProps { children: React__default.ReactNode; } /** * Provider component that manages synchronized scrolling between multiple elements. * Supports master-slave relationships where masters can control slaves but not vice versa. */ declare function SyncScrollProvider({ children }: SyncScrollProviderProps): react_jsx_runtime.JSX.Element; interface BaseScrollOptions { /** Whether to enable scroll syncing (default: true) */ enabled?: boolean; /** Axis to sync: 'vertical', 'horizontal', or 'both' (default: 'vertical') */ axis?: "vertical" | "horizontal" | "both"; /** Optional ref to use instead of creating a new one */ ref?: RefObject; } interface UseSyncScrollOptions extends BaseScrollOptions { /** Unique identifier for this scrollable element */ id?: string; /** Role: 'master' (controls others), 'slave' (controlled by master), 'drag' (like master but for drag interactions) */ role?: ScrollRole; } /** * Hook for a master scroll element that controls all other elements. * * @example * ```tsx * function MasterPanel() { * const scrollRef = useSyncScroll(); * return
...
; * } * ``` */ declare function useSyncScroll(options?: BaseScrollOptions): React__default.RefObject; /** * Hook for a slave scroll element that is controlled by masters. * Slaves can sync with other slaves but cannot control masters. * * @example * ```tsx * function SlavePanel() { * const scrollRef = useScrollSlave(); * return
...
; * } * ``` */ declare function useScrollSlave(options?: BaseScrollOptions): React__default.RefObject; /** * Hook for drag-controlled scrolling that acts like a master. * Typically used with custom drag handlers. * * @example * ```tsx * function DragPanel() { * const scrollRef = useSyncDrag(); * // Add custom drag handling logic * return
...
; * } * ``` */ declare function useSyncDrag(options?: BaseScrollOptions): React__default.RefObject; export { type BaseScrollOptions, type ScrollRole, SyncScrollProvider, type UseSyncScrollOptions, useScrollSlave, useSyncDrag, useSyncScroll };