UNPKG

@towns-protocol/sdk

Version:

For more details, visit the following resources:

11 lines 921 B
import { MembershipOp } from '@towns-protocol/proto'; import { TimelineEvent, TimelineEvent_OneOf, Membership } from './timelineTypes'; import { StreamTimelineEvent } from '../../types'; import { DecryptedContent } from '../../encryptedContentTypes'; import { DecryptionSessionError } from '../../decryptionExtensions'; export declare function toEvent(timelineEvent: StreamTimelineEvent, userId: string): TimelineEvent; export declare function toDecryptedEvent(event: TimelineEvent, decryptedContent: DecryptedContent, userId: string): TimelineEvent; export declare function toDecryptedContentErrorEvent(event: TimelineEvent, error: DecryptionSessionError): TimelineEvent; export declare function toMembership(membershipOp?: MembershipOp): Membership; export declare function getFallbackContent(senderDisplayName: string, content?: TimelineEvent_OneOf, error?: string): string; //# sourceMappingURL=timelineEvent.d.ts.map