export declare const canScrollTimelineIntoDirection: () => { canScrollRight: boolean; canScrollLeft: boolean; }; export declare const SCROLL_INCREMENT = 200; export declare const getTimelineContentWidth: () => number; export declare const EDGE_SCROLL_VERTICAL_INCREMENT = 60; export type TimelineEdgeScrollDirections = { x: 'left' | 'right' | null; y: 'up' | 'down' | null; }; export type TimelineEdgeAutoScroller = { update: (e: { clientX: number; clientY: number; }) => TimelineEdgeScrollDirections; stop: () => void; }; /** * Shared edge auto-scroll loop for drag gestures on the timeline (playhead * scrubbing, marquee selection, sequence reordering). Detects when the pointer * is in an edge zone and repeatedly invokes `onTick` while it stays there. The * consumer performs the actual scrolling (and any dependent updates) inside * `onTick`, so it can read a settled scroll position afterwards. */ export declare const startTimelineEdgeAutoScroll: ({ includeHorizontal, includeVertical, verticalTopOffset, onTick, }: { includeHorizontal: boolean; includeVertical: boolean; verticalTopOffset: number; onTick: (directions: TimelineEdgeScrollDirections) => void; }) => TimelineEdgeAutoScroller; export declare const getFrameWhileScrollingLeft: ({ durationInFrames, width, }: { durationInFrames: number; width: number; }) => number; export declare const isCursorInViewport: ({ frame, durationInFrames, }: { frame: number; durationInFrames: number; }) => boolean; export declare const ensureFrameIsInViewport: ({ direction, durationInFrames, frame, }: { direction: 'fit-left' | 'fit-right' | 'page-right' | 'page-left' | 'center'; durationInFrames: number; frame: number; }) => void; export declare const scrollToTimelineXOffset: (scrollPos: number) => void; export declare const getScrollPositionForCursorOnLeftEdge: ({ nextFrame, durationInFrames, }: { nextFrame: number; durationInFrames: number; }) => number; export declare const getScrollPositionForCursorOnRightEdge: ({ nextFrame, durationInFrames, }: { nextFrame: number; durationInFrames: number; }) => number; export declare const getFrameIncrementFromWidth: (durationInFrames: number, width: number) => number; export declare const getFrameWhileScrollingRight: ({ durationInFrames, width, }: { durationInFrames: number; width: number; }) => number; export declare const getFrameFromX: ({ clientX, durationInFrames, width, extrapolate, }: { clientX: number; durationInFrames: number; width: number; extrapolate: 'clamp' | 'extend'; }) => number; export declare const getFrameFromTimelineDrop: ({ clientX, durationInFrames, scrollLeft, timelineLeft, timelineWidth, }: { clientX: number; durationInFrames: number; scrollLeft: number; timelineLeft: number; timelineWidth: number; }) => number; /** * Horizontal position inside the scrollable timeline content (0 … scrollWidth) * for a viewport `clientX`, so pinch-anchoring matches the pointer (not a * rounded frame index). */ export declare const viewportClientXToScrollContentX: ({ clientX, scrollEl, }: { clientX: number; scrollEl: HTMLDivElement; }) => number; export declare const getScrollLeftToKeepCursorInPlace: ({ anchorContentX, oldScrollLeft, oldTimelineWidth, newTimelineWidth, }: { anchorContentX: number; oldScrollLeft: number; oldTimelineWidth: number; newTimelineWidth: number; }) => number; export declare const prepareToPreserveTimelineCursor: ({ currentFrame, currentDurationInFrames, anchorFrame, anchorContentX, anchorViewportX, }: { currentFrame: number; currentDurationInFrames: number; anchorFrame: number | null; /** Prefer this over `anchorFrame` when not null (subpixel-accurate anchor). */ anchorContentX: number | null; anchorViewportX: number | null; }) => () => void;