1 | import React from 'react';
|
2 | import { MutationFunction } from 'react-apollo';
|
3 | import { AddToListMutation, ProductListItemOptions, ProductListState, RemoveFromListMutation, UpdateListInput, UpdateListOptions } from '.';
|
4 | import { Mutation } from '../../types';
|
5 | import { Action } from './product-list-reducer';
|
6 | export declare function loginAction({ loginMutation }: {
|
7 | loginMutation: MutationFunction<Mutation['addToCustomerProductList']>;
|
8 | }): (dispatch: React.Dispatch<Action>, getState: () => ProductListState) => void;
|
9 | export declare function refreshAction(): (dispatch: React.Dispatch<Action>) => void;
|
10 | export declare function updateAction({ updateAPI, removeMutation, addMutation, options, articleNumber, variantToReplace, variantArticleNumber }: {
|
11 | updateAPI: boolean;
|
12 | removeMutation: RemoveFromListMutation;
|
13 | addMutation: AddToListMutation;
|
14 | options: UpdateListOptions;
|
15 | variantToReplace?: string;
|
16 | variantArticleNumber: string;
|
17 | articleNumber: string;
|
18 | }): (dispatch: React.Dispatch<Action>, getState: () => ProductListState) => void;
|
19 | export declare function removeAction({ updateAPI, articleNumber, variantArticleNumber, removeMutation }: UpdateListInput & {
|
20 | removeMutation: RemoveFromListMutation;
|
21 | updateAPI: boolean;
|
22 | articleNumber: string;
|
23 | }): (dispatch: React.Dispatch<Action>, getState: () => ProductListState) => void;
|
24 | export declare function clearAction({ updateAPI, removeMutation }: {
|
25 | updateAPI: boolean;
|
26 | removeMutation: RemoveFromListMutation;
|
27 | }): (dispatch: React.Dispatch<Action>, getState: () => ProductListState) => void;
|
28 | export declare function addAction({ articleNumber, variantArticleNumber, addMutation, options, updateAPI }: UpdateListInput & {
|
29 | addMutation: AddToListMutation;
|
30 | options: ProductListItemOptions;
|
31 | updateAPI: boolean;
|
32 | articleNumber: string;
|
33 | }): (dispatch: React.Dispatch<Action>, getState: () => ProductListState) => void;
|