@towns-protocol/sdk
Version:
For more details, visit the following resources:
14 lines • 986 B
TypeScript
import { FullyReadMarker, UserSettingsPayload_Snapshot_UserBlocks, UserSettingsPayload_Snapshot_UserBlocks_Block } from '@towns-protocol/proto';
import { ObservableRecord } from '../../observable/observableRecord';
export interface UserSettingsStreamModel {
streamId: string;
fullyReadMarkers: Record<string, Record<string, FullyReadMarker>>;
userBlocks: Record<string, UserSettingsPayload_Snapshot_UserBlocks>;
}
export declare class UserSettingsStreamsView extends ObservableRecord<string, UserSettingsStreamModel> {
constructor();
setFullyReadMarkers(userSettingsStreamId: string, streamId: string, fullyReadMarkers: Record<string, FullyReadMarker>): void;
setUserBlocks(userSettingsStreamId: string, userId: string, userBlocks: UserSettingsPayload_Snapshot_UserBlocks): void;
updateUserBlock(userSettingsStreamId: string, userId: string, userBlock: UserSettingsPayload_Snapshot_UserBlocks_Block): void;
}
//# sourceMappingURL=userSettingsStreams.d.ts.map