1 | import { Observable, OperatorFunction } from 'rxjs';
|
2 | import { Middleware, Action } from 'redux';
|
3 |
|
4 | declare class StateObservable<S> extends Observable<S> {
|
5 | value: S;
|
6 | private __notifier;
|
7 | constructor(input$: Observable<S>, initialState: S);
|
8 | }
|
9 |
|
10 | declare interface Epic<Input = unknown, Output extends Input = Input, State = void, Dependencies = any> {
|
11 | (action$: Observable<Input>, state$: StateObservable<State>, dependencies: Dependencies): Observable<Output>;
|
12 | }
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | declare function combineEpics<Input = unknown, Output extends Input = Input, State = void, Dependencies = any>(...epics: Epic<Input, Output, State, Dependencies>[]): Epic<Input, Output, State, Dependencies>;
|
18 |
|
19 | interface Options<D = any> {
|
20 | dependencies?: D;
|
21 | }
|
22 | interface EpicMiddleware<Input = unknown, Output extends Input = Input, State = void, Dependencies = any> extends Middleware<{}, State> {
|
23 | run(rootEpic: Epic<Input, Output, State, Dependencies>): void;
|
24 | }
|
25 | declare function createEpicMiddleware<Input = unknown, Output extends Input = Input, State = void, Dependencies = any>(options?: Options<Dependencies>): EpicMiddleware<Input, Output, State, Dependencies>;
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | declare function ofType<Input, Type extends string, Output extends Input = Extract<Input, Action<Type>>>(...types: [Type, ...Type[]]): OperatorFunction<Input, Output>;
|
34 |
|
35 | declare const resetDeprecationsSeen: () => void;
|
36 |
|
37 | export { Epic, EpicMiddleware, StateObservable, resetDeprecationsSeen as __FOR_TESTING__resetDeprecationsSeen, combineEpics, createEpicMiddleware, ofType };
|