1 | import { Store } from '@uppy/core';
|
2 | import { Reducer, Middleware, Store as Redux } from 'redux';
|
3 |
|
4 | export interface ReduxStoreOptions {
|
5 | store: Redux<object>;
|
6 | id?: string;
|
7 | selector?: (state: any) => object;
|
8 | }
|
9 |
|
10 | declare class ReduxStore implements Store {
|
11 | constructor(opts: ReduxStoreOptions);
|
12 | getState(): object;
|
13 | setState(patch: object): void;
|
14 | subscribe(listener: any): () => void;
|
15 | }
|
16 |
|
17 | export default function createReduxStore(opts: ReduxStoreOptions): ReduxStore;
|
18 | export const reducer: Reducer<object>;
|
19 | export const middleware: Middleware;
|