/** * 썸 치수·위치 산출. React 훅과 CDN 바인딩이 공유한다. * SSR 경로에서도 평가되므로 `document`·`window` 를 참조하지 않는다. */ export type AxisMetrics = { readonly scrollOffset: number; readonly scrollSize: number; readonly clientSize: number; readonly trackSize: number; readonly thumbMinSize: number; }; export type ThumbGeometry = { /** `false` 이면 트랙·썸을 감춘다 */ readonly visible: boolean; readonly size: number; /** 트랙 기준 썸 오프셋 (px) */ readonly offset: number; }; export declare const computeThumbGeometry: (metrics: AxisMetrics) => ThumbGeometry; /** 호출자가 넘겨야 하는 축별 `dragBasisSize` 기준 */ export declare const DRAG_BASIS: { readonly y: "clientSize"; readonly x: "trackSize"; }; export type DragScrollDeltaInput = { readonly pointerDelta: number; readonly scrollSize: number; readonly clientSize: number; readonly dragBasisSize: number; readonly thumbSize: number; }; /** * 포인터 이동량(px) → 스크롤 오프셋 변화량(px). * 환산 분모 기준이 축마다 다르므로 `dragBasisSize` 는 호출자가 `DRAG_BASIS` 대로 넘긴다. */ export declare const computeDragScrollDelta: (input: DragScrollDeltaInput) => number; export type HorizontalTrackBoxInput = { readonly clientWidth: number; readonly scrollLeft: number; readonly sideGap: number; }; export type HorizontalTrackBox = { readonly translateX: number; readonly width: number; }; /** 가로 트랙은 스크롤 컨테이너 안에 있어 함께 밀리므로, 되돌릴 오프셋과 폭을 산출한다. */ export declare const computeHorizontalTrackBox: (input: HorizontalTrackBoxInput) => HorizontalTrackBox;