UNPKG

@towns-protocol/sdk

Version:

For more details, visit the following resources:

15 lines 1.14 kB
import TypedEmitter from 'typed-emitter'; import { MemberPayload_KeyFulfillment, MemberPayload_KeySolicitation } from '@towns-protocol/proto'; import { StreamEncryptionEvents } from './streamEvents'; import { StreamMember } from './streamStateView_Members'; import { EventSignatureBundle } from './decryptionExtensions'; export declare class StreamStateView_Members_Solicitations { readonly streamId: string; snapshotSigBundle?: EventSignatureBundle; snapshotEventId?: string; constructor(streamId: string); initSolicitations(eventHashStr: string, members: StreamMember[], sigBundle: EventSignatureBundle, encryptionEmitter: TypedEmitter<StreamEncryptionEvents> | undefined): void; applySolicitation(user: StreamMember, eventId: string, solicitation: MemberPayload_KeySolicitation, sigBundle: EventSignatureBundle, encryptionEmitter: TypedEmitter<StreamEncryptionEvents> | undefined): void; applyFulfillment(user: StreamMember, fulfillment: MemberPayload_KeyFulfillment, encryptionEmitter: TypedEmitter<StreamEncryptionEvents> | undefined): void; } //# sourceMappingURL=streamStateView_Members_Solicitations.d.ts.map