Repository URL to install this package:
|
Version:
2.6.18 ▾
|
import { GalleryProps } from './typings';
/**
* @todo isArray needs to be used here to make sure the list is array type
*/
declare const isNonEmptyArray: (list: import("./typings").ItemProps[]) => boolean;
/**
* get device type based on the window width
*/
declare function getDeviceType(): "mobile" | "tablet" | "desktop";
/**
* get item display count based on the device type
*/
declare function getItemDisplayCount(props: GalleryProps): string | number | undefined;
/**
* @description used to get item width based displayCount on the device width
*/
declare function getItemWidth(displayCount: number): number;
export { isNonEmptyArray, getItemDisplayCount, getDeviceType, getItemWidth, };