import type { StreamInstance } from '../instance.js' import type { Topic } from '../types.js' export interface UnsubscribeAllOutput { unsubscribed: Topic[] } export type UnsubscribeAll = () => Promise export const createUnsubscribeAll = ( instance: Readonly ): UnsubscribeAll => { return async () => { return instance.request({ method: 'unsubscribeAll', }) } }