import {EventsFnOptions} from './DOMSource'; import {makeDOMDriver as make, VNode, DOMDriverOptions} from './index'; import {Stream} from 'most'; import {Stream as xsStream} from 'xstream'; import {Driver} from '@cycle/run'; export interface DOMSource { select(selector: string): DOMSource; elements(): Stream>; element(): Stream; events( eventType: K, options?: EventsFnOptions, bubbles?: boolean ): Stream; events(eventType: string, options?: EventsFnOptions): Stream; } export const makeDOMDriver: ( sel: string | Element | DocumentFragment, opts?: DOMDriverOptions ) => Driver, DOMSource> = make as any;