import { DomSource , EventsFnOptions , StandardEvents } from '../types' ; import { Stream } from 'most' ; import { VNode } from 'mostly-dom' ; export function useCapture ( domSource ) { return { select ( cssSelector ) { return domSource . select ( cssSelector ) ; } , elements < T extends Element > ( ) { return domSource . elements < T > ( ) ; } , events ( eventType ) { return domSource . events ( eventType , { useCapture : true } ) ; } , namespace ( ) { return domSource . namespace ( ) ; } , isolateSource ( source , scope ) { return domSource . isolateSource ( source , scope ) ; } , isolateSink ( sink , scope ) { return domSource . isolateSink ( sink , scope ) ; } } ; }