export type IChat = {
	time: Date;
	title: string;
	text: string;
	img_uri: string;
	is_group?: boolean;
	chat_name?: string;
	chat_img?: string;
	chat_id: string;
	last_message_author?: string;
	last_message_author_img?: string;
	last_message_time?: Date;
	last_message_text?: string;
	counter?: number;
	localeTimeString?: string;
	_selected?: boolean;
};

export type Component = {
	id?: string;
	style?: string;
	/** Parsed from a JSON attribute when omitted in HTML. */
	chats?: IChat[];
};

export type Events = {
	select: IChat;
};
