import { VNodeProps } from 'vue'
import { Channels } from '../index.js'
export interface SubscribeProps {
channels: Channels
}
/**
* Component-wrapper that subscribes
* for channels during component initialization
* and unsubscribes on unmount.
*
* It watches for `channels` changes
* and `isSubscribing` indicates loading state.
*
* ```html
*
*
* Loading
* {{ user.name }}
*
*
*
*
* ```
*/
export const Subscribe: new () => {
$props: VNodeProps & SubscribeProps
}