/** * Internal dependencies */ import type { GenericId } from './entities'; export type SureCartProductId = GenericId; export type SureCartProductSelection = | AllSureCartProducts | SomeSureCartProducts; export type AllSureCartProducts = { readonly type: 'all-surecart-products'; }; export type SomeSureCartProducts = { readonly type: 'some-surecart-products'; readonly value: SelectedSureCartProductIds; }; export type SelectedSureCartProductIds = { readonly type: 'surecart-ids'; readonly productIds: ReadonlyArray< SureCartProductId >; readonly mode: 'or' | 'and'; readonly excluded?: boolean; };