@ozen-ui/kit
Version:
React component library
15 lines (14 loc) • 793 B
TypeScript
import type { RefObject } from 'react';
import type { StoredValue } from '../../../../hooks/useStoredValue';
import type { BottomSheetBaseRootRef, BottomSheetBaseSnap } from '../../entities';
import type { BottomSheetBaseFindClosestSnap, BottomSheetBaseSnapsControl } from '../../hooks';
export declare const useBottomSheetBaseSnaps: ({ minSnap, maxSnap, defaultSnap, rootRef, onAnimationStart, onAnimationFinish, isReady, findClosestSnap, }: {
minSnap: BottomSheetBaseSnap;
maxSnap: BottomSheetBaseSnap;
defaultSnap: BottomSheetBaseSnap;
rootRef: RefObject<BottomSheetBaseRootRef>;
onAnimationStart?: () => void;
onAnimationFinish?: () => void;
isReady: boolean;
findClosestSnap: StoredValue<BottomSheetBaseFindClosestSnap>;
}) => BottomSheetBaseSnapsControl;