///
import { Bit } from '../helpers/BitLike';
import { NormalItem } from '../helpers/normalizeItem';
import { IconProps } from '../Icon';
import { ListSeparatorProps } from '../ListSeparator';
import { SurfaceProps } from '../Surface';
import { TextProps } from '../text/Text';
import { SelectableStore } from './SelectableStore';
import { VirtualListItemProps } from './VirtualListItem';
export declare type ListItemViewProps = {
item?: Bit;
normalizedItem?: Partial;
shownLimit?: number;
searchTerm?: string;
renderText?: ItemRenderText;
hide?: ListItemHide;
beforeTitle?: React.ReactNode;
oneLine?: boolean;
preventSelect?: boolean;
};
export declare type ItemRenderText = (text: string) => JSX.Element;
export declare type ListItemHide = {
hideTitle?: boolean;
hideIcon?: boolean;
hideSubtitle?: boolean;
hideBody?: boolean;
hideItemDate?: boolean;
hideDate?: boolean;
hideMeta?: boolean;
hideBorder?: boolean;
};
export declare type HandleSelection = (index: number, event?: any) => any;
export declare type ListItemSimpleProps = Omit & ListItemSpecificProps & {
onClick?: (e: Event, props: ListItemSimpleProps) => any;
};
export declare type ListItemProps = ListItemSimpleProps & Omit, 'index'> & {
index?: number;
id?: string;
identifier?: string;
subType?: string;
people?: Bit[];
hidePeople?: boolean;
itemViewProps?: ListItemViewProps;
selectableStore?: SelectableStore;
extraData?: any;
draggable?: boolean;
draggableItem?: any;
showFullContent?: boolean;
};
export declare type ListItemSpecificProps = ListItemHide & {
oneLine?: boolean;
selectable?: boolean;
indent?: number;
subId?: string | number;
location?: React.ReactNode;
preview?: React.ReactNode;
title?: React.ReactNode;
subTextOpacity?: number;
above?: React.ReactNode;
before?: React.ReactNode;
subTitle?: React.ReactNode;
date?: Date;
icon?: any;
index?: number;
afterTitle?: React.ReactNode;
after?: React.ReactNode;
titleProps?: Partial;
iconBefore?: boolean;
iconProps?: Partial;
separatorProps?: Partial;
className?: string;
renderText?: ItemRenderText;
children?: React.ReactNode;
disableSelect?: boolean;
disableFilter?: boolean;
onSelect?: HandleSelection;
onOpen?: HandleSelection;
borderRadius?: number;
isSelected?: boolean | ((index: number) => boolean);
titleFlex?: number;
subTitleProps?: Partial;
onClickLocation?: (index: number, e?: Event) => any;
separator?: React.ReactNode;
groupName?: string;
deletable?: boolean;
onDelete?: (item: ListItemSimpleProps) => any;
editable?: boolean;
onEdit?: (nextTitle: string) => any;
onCancelEdit?: (nextTitle: string) => any;
onStartEdit?: () => any;
};
//# sourceMappingURL=ListItemViewProps.d.ts.map