<commit_before>import { Middleware, MiddlewareAPI } from 'redux';
import { Stream } from 'most';

export declare interface Epic<T> {
  (action$: Stream<T>, store: MiddlewareAPI<any>): Stream<T>;
}

export interface EpicMiddleware<T> extends Middleware {
  replaceEpic (nextEpic: Epic<T>): void;
}

export declare function createEpicMiddleware<T> (rootEpic: Epic<T>): EpicMiddleware<T>;

export declare function combineEpics<T> (epicsArray: Epic<T>[]): Epic<T>;

export declare function select<T> (actionType: string, stream: Stream<T>): Stream<T>;

export declare function selectArray<T> (actionTypes: string[], stream: Stream<T>): Stream<T>;<commit_msg>Add curried TS type definition variants for select & selectArray<commit_after>import { Middleware, MiddlewareAPI } from 'redux';
import { Stream } from 'most';

export declare interface Epic<T> {
  (action$: Stream<T>, store: MiddlewareAPI<any>): Stream<T>;
}

export interface EpicMiddleware<T> extends Middleware {
  replaceEpic (nextEpic: Epic<T>): void;
}

export declare function createEpicMiddleware<T> (rootEpic: Epic<T>): EpicMiddleware<T>;

export declare function combineEpics<T> (epicsArray: Epic<T>[]): Epic<T>;

export declare function select<T> (actionType: string, stream: Stream<T>): Stream<T>;
export declare function select<T> (actionType: string): (stream: Stream<T>) => Stream<T>;

export declare function selectArray<T> (actionTypes: string[], stream: Stream<T>): Stream<T>;
export declare function selectArray<T> (actionTypes: string[]): (stream: Stream<T>) => Stream<T>;
{'fraction_non_alphanumeric': 0.14544279250161604, 'fraction_numerical': 0.0, 'mean_word_length': 7.5054945054945055, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 47, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2695222', 'n_tokens_mistral': 490, 'n_tokens_neox': 479, 'n_words': 143}