import type { BlackoutError, Subscription, SubscriptionPackage, SubscriptionPackagesResult } from '@farfetch/blackout-client'; import type { StateWithResult } from '../../types/index.js'; export type SubscriptionsState = { user: UserSubscriptionsState; packages: SubscriptionPackagesState; }; export type UserSubscriptionsState = StateWithResult; export type SubscriptionPackagesResultNormalized = Omit & { packages: Array; }; export type SubscriptionPackagesState = Record>; export type UnsubscribeRecipientFromTopicRequests = Record; export type UnsubscribeRecipientFromTopicType = { subscriptionId: string; topicId: string; isFetching: boolean; success: boolean | undefined; error: BlackoutError | undefined | null; };