import { SubscriptionResponse } from "rpclibrary"

export class IPubSub<UpdateType>{
    publish: (topic: string, p: UpdateType) => void
    subscribe: (topic:string, callback: (p:UpdateType)=>any) => Promise<SubscriptionResponse>
    unsubscribe: (uuid: string) => Promise<void>
}
