import { LetterboxLayerCache } from "https://deno.land/x/earthstar_rich_threads@v2.3.0/mod.ts";
Methods
_createReplyDoc(): Promise<Earthstar.Doc | Earthstar.ValidationError>
content: string,
threadRootTimestamp: number,
threadRootAuthor: string,
deleteAfter?: number,
_createRootDoc(content: string, deleteAfter?: number): Promise<Earthstar.Doc | Earthstar.ValidationError>
_docToPost(postDoc: Earthstar.Doc): Post
_docToThreadRoot(rootDoc: Earthstar.Doc): Post
clearReplyDraft(threadRootTimestamp: number, threadRootAuthor: string)
clearThreadRootDraft(id: string)
createReply(): Promise<Post | Earthstar.ValidationError>
threadRootTimestamp: number,
threadRootAuthorPubKey: string,
content: string,
deleteAfter?: number,
createThread(content: string, deleteAfter?: number): Promise<Thread | Earthstar.ValidationError>
getDraftThreadParts(id: string): { title: string; content: string; } | undefined
getPostTimestamp(postDoc: Earthstar.Doc): number
getReplyDraft(threadRootTimestamp: number, threadRootAuthor: string): string | undefined
getReplyTimestamp(postDoc: Earthstar.Doc): number
getThreadRootDraftContent(id: string): string | undefined
getThreadRootDraftIds(): string[]
getThreadRoots(): Post[]
getThreadRootTimestamp(rootDoc: Earthstar.Doc): number
getThreads(): Thread[]
getThreadTitle(thread: Thread): string | undefined
lastThreadItem(thread: Thread): Post
markReadUpTo()
threadRootTimestamp: number,
threadRootAuthorPubKey: string,
readUpToTimestamp: number,
setReplyDraft(): Promise<Earthstar.Doc | Earthstar.ValidationError>
threadRootTimestamp: number,
threadRootAuthor: string,
content: string,
setThreadRootDraft(content: string, id?: string): Promise<string | Earthstar.ValidationError>
threadHasUnreadPosts(thread: Thread): boolean