import { ReactNode } from 'react'; import '../../../index.scss'; export interface ListProps { /** * Data for List */ listItems: Array; /** * Icon position if added */ iconPosition?: 'left' | 'right'; /** * If list item is string then use this props to give its max length */ textMaxWidth?: string; /** * List onClick function */ onListItemClick: (data: any) => any; /** * The content that to be displayed if no data not found */ noDataContent: string | ReactNode; /** * Image that to be displayed if you don't have data */ noDataImage?: string; /** * Size of the image that to be displayed if you don't have data */ noDataImageSize?: 'x-large' | 'large' | 'medium' | 'small' | 'x-small'; } export interface ListItemProps { /** * list item text */ text: string | ReactNode; /** * Icon if needed to add in the list */ iconName?: string; /** * To disable list item set it to true */ disable?: boolean; } declare const List: ({ listItems, iconPosition, textMaxWidth, onListItemClick, noDataContent, noDataImage, noDataImageSize, }: ListProps) => import("react/jsx-runtime").JSX.Element; export default List;