1 import type { Action, ThunkDispatch, TypedStartListening } from '@reduxjs/toolkit';
2 import type { History } from 'history';
4 import type { ApiWithListener } from '@proton/shared/lib/api/createApi';
5 import type { AuthenticationStore } from '@proton/shared/lib/authentication/createAuthenticationStore';
6 import type { EventManager } from '@proton/shared/lib/eventManager/eventManager';
7 import type { ProtonConfig } from '@proton/shared/lib/interfaces';
8 import type { UnleashClient } from '@proton/unleash';
10 export interface ProtonThunkArguments {
12 eventManager: EventManager;
14 unleashClient: UnleashClient;
15 authentication: AuthenticationStore;
19 export type ProtonDispatch<T> = ThunkDispatch<T, ProtonThunkArguments, Action>;
21 export type SharedStartListening<RequiredState> = TypedStartListening<