// Type definitions for redux-socket.io 1.4 // Project: https://github.com/itaylor/redux-socket.io#readme // Definitions by: Igor Voropaev // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// import { Middleware, Action, Dispatch } from 'redux'; export interface MiddlewareOptions { eventName?: string; execute?: (action: Action, emitBound: SocketIOClient.Socket, next: Dispatch, dispatch: Dispatch) => any; } export default function createSocketIoMiddleware( socket: SocketIOClient.Socket, criteria: (string | ReadonlyArray | ((type: string, action: Action) => boolean)), options?: MiddlewareOptions ): Middleware;