import { LoadingState } from '../loading/reducer'; import { FetchTransactionSuccessAction } from '../transaction/actions'; import { AuthorizationFlowClearAction, AuthorizationFlowFailureAction, AuthorizationFlowRequestAction, AuthorizationFlowSuccessAction, FetchAuthorizationsFailureAction, FetchAuthorizationsRequestAction, FetchAuthorizationsSuccessAction, GrantTokenFailureAction, GrantTokenRequestAction, GrantTokenSuccessAction, RevokeTokenFailureAction, RevokeTokenRequestAction, RevokeTokenSuccessAction } from './actions'; import { Authorization } from './types'; export type AuthorizationState = { data: Authorization[]; loading: LoadingState; error: string | null; authorizationFlowError: string | null; }; export declare const INITIAL_STATE: { data: never[]; loading: never[]; error: null; authorizationFlowError: null; }; type AuthorizationReducerAction = FetchAuthorizationsRequestAction | FetchAuthorizationsSuccessAction | FetchAuthorizationsFailureAction | GrantTokenRequestAction | GrantTokenSuccessAction | GrantTokenFailureAction | RevokeTokenRequestAction | RevokeTokenSuccessAction | RevokeTokenFailureAction | FetchTransactionSuccessAction | AuthorizationFlowRequestAction | AuthorizationFlowSuccessAction | AuthorizationFlowFailureAction | AuthorizationFlowClearAction; export declare function authorizationReducer(state: AuthorizationState | undefined, action: AuthorizationReducerAction): AuthorizationState; export {};