Opens a stream for writing.
The unique identifier for the stream.
An object to write to the stream.
Subscribes to a stream to receive its events.
The unique identifier for the stream.
The subscriber callbacks.
A promise resolving to an object containing an unsubscribe function.
Interface for managing streaming actions, allowing creation and subscription to streams. Implementations can provide different storage backends (e.g., in-memory, database, cache).