import * as Rx from "rxjs"; import { ReceiveEvents, GatewayPayload } from "../types"; import { Shard } from "./shard"; export type Dispatch = (event: E) => Rx.Observable; export type DispatchWithShard = (event: E) => Rx.Observable; export declare const listen: (source$: Rx.Observable) => Dispatch; export declare const listenWithShard: (source$: Rx.Observable) => DispatchWithShard; export declare const latest: (fromDispatch: Dispatch) => Dispatch;