import type { ThunkDispatch } from 'redux-thunk'; import type { TAppNotificationApiError, TStatusCode } from '@commercetools-frontend/constants'; import showApiErrorNotification from "./show-api-error-notification.js"; import showUnexpectedErrorNotification from "./show-unexpected-error-notification.js"; type ApiError = { statusCode: TStatusCode; body: { message: string; errors?: TAppNotificationApiError | TAppNotificationApiError[]; }; }; export type ActionError = Error | ApiError; export type DispatchActionError = ThunkDispatch | ReturnType>; export default function handleActionError(error: ActionError): (dispatch: DispatchActionError) => import("@commercetools-frontend/notifications").TAddNotificationAction | undefined; } & import("@commercetools-frontend/notifications").TNotification> | import("@commercetools-frontend/notifications").TAddNotificationAction | null; export {};