UNPKG

ssb-typescript

Version:

TypeScript type definitions for Secure Scuttlebutt

17 lines (16 loc) 1.32 kB
import { Msg, PostContent, BlogContent, AboutContent, ContactContent, VoteContent, UnboxedMsg, MsgId, MsgInThread, AttendeeContent, GatheringContent } from './readme'; export declare function isMsg(msg: any): msg is Msg<any>; export declare function isRootMsg(msg: Msg<any>): boolean; export declare function isReplyMsgToRoot(rootKey: MsgId): (msg: MsgInThread) => boolean; export declare function isIndirectReplyMsgToRoot(rootKey: MsgId): (msg: MsgInThread) => boolean; export declare function isPostMsg(msg: Msg<any>): msg is Msg<PostContent>; export declare function isRootPostMsg(msg: Msg<any>): msg is Msg<PostContent>; export declare function isReplyPostMsg(msg: Msg<any>): msg is Msg<PostContent>; export declare function isAboutMsg(msg: Msg<any>): msg is Msg<AboutContent>; export declare function isContactMsg(msg: Msg<any>): msg is Msg<ContactContent>; export declare function isVoteMsg(msg: Msg<any>): msg is Msg<VoteContent>; export declare function isGatheringMsg(msg: Msg<any>): msg is Msg<GatheringContent>; export declare function isAttendeeMsg(msg: Msg<any>): msg is Msg<AttendeeContent>; export declare function isPrivate(msg: Msg<any> | UnboxedMsg): boolean; export declare function isPublic(msg: Msg<any> | UnboxedMsg): boolean; export declare function isBlogMsg(msg: Msg<any>): msg is Msg<BlogContent>;