UNPKG

@towns-protocol/sdk

Version:

For more details, visit the following resources:

26 lines 1.34 kB
import { EncryptedData } from '@towns-protocol/proto'; import TypedEmitter from 'typed-emitter'; import { StreamEncryptionEvents, StreamStateEvents } from './streamEvents'; export declare class MemberMetadata_DisplayNames { log: import("@towns-protocol/dlog").DLogger; private decryptionDispatchCount; readonly streamId: string; readonly userIdToEventId: Map<string, string>; readonly plaintextDisplayNames: Map<string, string>; readonly displayNameEvents: Map<string, { userId: string; pending: boolean; }>; constructor(streamId: string); addEncryptedData(eventId: string, encryptedData: EncryptedData, userId: string, pending: boolean | undefined, cleartext: Uint8Array | string | undefined, encryptionEmitter: TypedEmitter<StreamEncryptionEvents> | undefined, stateEmitter: TypedEmitter<StreamStateEvents> | undefined): void; onConfirmEvent(eventId: string, emitter?: TypedEmitter<StreamStateEvents>): void; onDecryptedContent(eventId: string, content: string, emitter?: TypedEmitter<StreamStateEvents>): void; private emitDisplayNameUpdated; private removeEventForUserId; private addEventForUserId; info(userId: string): { displayName: string; displayNameEncrypted: boolean; }; } //# sourceMappingURL=memberMetadata_DisplayNames.d.ts.map