import { ResponseStream, Response, RequestOptions, RequestInput, makeHTTPDriver as make, } from './index'; import {Stream} from 'most'; import xs from 'xstream'; import {Driver} from '@cycle/run'; export interface HTTPSource { filter(predicate: (request: RequestOptions) => boolean): HTTPSource; select(category?: string): Stream & ResponseStream>; isolateSource(source: HTTPSource, scope: string | null): HTTPSource; isolateSink( sink: Stream, scope: string | null ): Stream; } export const makeHTTPDriver: () => Driver< xs, HTTPSource > = make as any;