import { SessionStore } from './base'; import { TSessionFn, TSessionMatcher } from './definitions'; /** A session manager that allows multi processes */ export declare class ConcurrentSessionManager extends SessionStore { /** Stores streams of active sessions */ private readonly _streams; /** * set an empty Stream Map and the symbol when new template is added * @param session the function for generating sessions * @param match determines whether the session should be created or not */ use(session: TSessionFn, match: TSessionMatcher): this; /** * Pass a context to every active session that matches the session id * Or create sessions if the context matches the conditions of them * @param ctx the context */ run(ctx: T): Promise; }