import { Reducer } from 'redux'; import { IReduxReducer } from './types'; interface IUser { email: string; id: string; profilePicture: string; } declare enum ActionTypes { SHOULD_LOGIN = "SHOULD_LOGIN", DID_LOGIN_SUCCESSFULLY = "DID_LOGIN_SUCCESSFULLY", DID_FAIL_LOGIN = "DID_FAIL_LOGIN", DID_PROVIDE_EMAIL = "DID_PROVIDE_EMAIL" } declare const actions: { shouldLogin: () => Readonly<{ type: ActionTypes.SHOULD_LOGIN; }>; didLoginSuccessfully: (user: IUser) => Readonly<{ type: ActionTypes.DID_LOGIN_SUCCESSFULLY; payload: IUser; }>; dudFailLogin: (s: string) => Readonly<{ type: ActionTypes.DID_FAIL_LOGIN; payload: string; }>; didProvideEmail: (email: string) => Readonly<{ type: ActionTypes.DID_PROVIDE_EMAIL; payload: string; }>; }; interface IState { error: string | undefined; user: IUser | undefined; isLoading: boolean; } declare const reducer: Reducer; export declare const loginReducer: IReduxReducer, typeof actions>; export {};