UNPKG

@towns-protocol/sdk

Version:

For more details, visit the following resources:

39 lines 1.06 kB
import { OTWMention, TimelineEvent } from '../../../views/models/timelineTypes'; export declare class ConversationBuilder { events: TimelineEvent[]; lastTimestamp: number; private get index(); private nextId; private checkId; private nextTimestamp; getEvents(): TimelineEvent[]; sendMessage(params: { from: string; body: string; mentions?: OTWMention[]; id?: string; threadId?: string; }): ConversationBuilder; sendTip(params: { tip: number; ref: `0x${string}`; id?: string; from: string; to: string; }): ConversationBuilder; editMessage(params: { edits: string; newBody: string; mentions?: OTWMention[]; id?: string; senderId?: string; }): ConversationBuilder; redactMessage(params: { redacts: string; id?: string; senderId?: string; isAdmin?: boolean; }): ConversationBuilder; private makeEvent; } //# sourceMappingURL=ConversationBuilder.d.ts.map