UNPKG

432 BTypeScriptView Raw
1/// <reference types="react" />
2import type { Direction } from './interface';
3export declare function getOffset(value: number, min: number, max: number): number;
4export declare function getDirectionStyle(direction: Direction, value: number, min: number, max: number): import("react").CSSProperties;
5/** Return index value if is list or return value directly */
6export declare function getIndex<T>(value: T | T[], index: number): T;