import { DatabaseModel } from '..'; import { DocumentId } from '../document/Document'; import { GroupId } from '../group'; import { RecipeId } from '../recipe'; import { UserId } from '../user'; import { ChatMessage } from './ChatMessage'; import { ChatRoomPrivacy } from './ChatRoomPrivacy'; export interface ChatRoom extends DatabaseModel { id: ChatRoomId; admins: UserId[]; members: UserId[]; messages?: ChatMessage[]; privacy: ChatRoomPrivacy; name?: string; publicId: string; /** The group this chat is linked to. */ group?: GroupId; /** The user this chat is linked to. */ user?: UserId; /** The recipe this chat is linked to. */ recipe?: RecipeId; /** The document this chat is linked to. */ document?: DocumentId; } export declare type ChatRoomId = string;