import { DatabaseModel } from '..'; import { ChatRoomId } from '../chat'; import { RichText } from '../text/RichText'; import { UserId } from '../user'; import { DocumentPrivacy } from './DocumentPrivacy'; import { DocumentTag } from './DocumentTag'; export interface Document extends DatabaseModel { id: DocumentId; slug: string; parentId: DocumentId | null; creator?: UserId; title: string; description?: string; body: RichText; chatRoom: ChatRoomId; privacy: DocumentPrivacy; tags: DocumentTag[]; thumbnailUrl?: string; /** Is this document locked from deletion? */ isLocked: boolean; /** Does the document have children? */ hasChildren: boolean; } export declare type DocumentId = string;