import { createToken } from '@tinkoff/dippy' ; description export const PUBSUB_FACTORY_TOKEN = createToken < ( ) => PubSub > ( 'pubsubFactory' ) ; description export const PUBSUB_TOKEN = createToken < PubSub > ( 'pubsub' ) ; description export const ROOT_PUBSUB_TOKEN = createToken < PubSub > ( 'rootPubsub' ) ; export interface PubSub { subscribe ( event , fn ) : ( ) => boolean ; publish ( event , ... args ) : any ; }