UNPKG

@towns-protocol/sdk

Version:

For more details, visit the following resources:

22 lines 1.35 kB
import TypedEmitter from 'typed-emitter'; import { Snapshot, MediaPayload_Snapshot } from '@towns-protocol/proto'; import { RemoteTimelineEvent } from './types'; import { StreamStateView_AbstractContent } from './streamStateView_AbstractContent'; import { StreamEncryptionEvents, StreamStateEvents } from './streamEvents'; export declare class StreamStateView_Media extends StreamStateView_AbstractContent { readonly streamId: string; info: { spaceId: string; channelId: string; userId: string; chunkCount: number; chunks: Uint8Array[]; perChunkEncryption: boolean; perChunkIVs: Uint8Array[]; } | undefined; constructor(streamId: string); applySnapshot(_snapshot: Snapshot, content: MediaPayload_Snapshot, _emitter: TypedEmitter<StreamEncryptionEvents> | undefined): void; appendEvent(event: RemoteTimelineEvent, _cleartext: Uint8Array | string | undefined, _encryptionEmitter: TypedEmitter<StreamEncryptionEvents> | undefined, _stateEmitter: TypedEmitter<StreamStateEvents> | undefined): void; prependEvent(event: RemoteTimelineEvent, cleartext: Uint8Array | string | undefined, encryptionEmitter: TypedEmitter<StreamEncryptionEvents> | undefined, stateEmitter: TypedEmitter<StreamStateEvents> | undefined): void; } //# sourceMappingURL=streamStateView_Media.d.ts.map