@towns-protocol/sdk
Version:
For more details, visit the following resources:
19 lines • 1.52 kB
TypeScript
import TypedEmitter from 'typed-emitter';
import { RemoteTimelineEvent } from './types';
import { ChannelPayload_Snapshot, Snapshot } from '@towns-protocol/proto';
import { StreamStateView_AbstractContent } from './streamStateView_AbstractContent';
import { StreamEncryptionEvents, StreamEvents, StreamStateEvents } from './streamEvents';
import { DecryptedContent } from './encryptedContentTypes';
export declare class StreamStateView_Channel extends StreamStateView_AbstractContent {
readonly streamId: string;
spaceId: string;
private reachedRenderableContent;
constructor(streamId: string);
getStreamParentId(): string | undefined;
needsScrollback(): boolean;
applySnapshot(snapshot: Snapshot, content: ChannelPayload_Snapshot, _cleartexts: Record<string, Uint8Array | string> | undefined, _encryptionEmitter: TypedEmitter<StreamEncryptionEvents> | undefined): void;
prependEvent(event: RemoteTimelineEvent, cleartext: Uint8Array | string | undefined, encryptionEmitter: TypedEmitter<StreamEncryptionEvents> | undefined, _stateEmitter: TypedEmitter<StreamStateEvents> | undefined): void;
appendEvent(event: RemoteTimelineEvent, cleartext: Uint8Array | string | undefined, encryptionEmitter: TypedEmitter<StreamEncryptionEvents> | undefined, _stateEmitter: TypedEmitter<StreamStateEvents> | undefined): void;
onDecryptedContent(_eventId: string, _content: DecryptedContent, _emitter: TypedEmitter<StreamEvents>): void;
}
//# sourceMappingURL=streamStateView_Channel.d.ts.map