import type { StoreState } from '../../types/index.js'; import type { UnsubscribeRecipientFromTopicType } from './../types/index.js'; import type { SubscriptionTopic } from '@farfetch/blackout-client'; /** * Returns the error given a user subscription action. * * @param state - Application state. * * @returns User subscription error. */ export declare const getUserSubscriptionsError: (state: StoreState) => import("../../types/nullable.types.js").Nullable; /** * Returns the error when the update user subscriptions action fails. * * @param state - Application state. * * @returns Error for the update subscription action. */ export declare const getUpdateUserSubscriptionsError: (state: StoreState) => import("@farfetch/blackout-client").BlackoutError | null | undefined; /** * Returns the result of a user subscription. * * @param state - Application state. * * @returns User subscription result. */ export declare const getUserSubscriptions: (state: StoreState) => import("../../types/nullable.types.js").Nullable; /** * Returns the user subscribed topics for the specified platform. * * @param state - Application state. * @param platform - Platform to filter the subscriptions. * * @returns User subscribed topics for the specified platform. */ export declare const getUserSubscribedTopicsForPlatform: (state: StoreState, platform: string) => SubscriptionTopic[]; /** * Returns the user subscribed topics for the specified address. * * @param state - Application state. * @param address - Address to filter the subscriptions. * * @returns User subscribed topics for the specified address. */ export declare const getUserSubscribedTopicsForAddress: (state: StoreState, address: string) => SubscriptionTopic[]; /** * Returns the loading status of a user subscription. * * @param state - Application state. * * @returns User subscription loading status. */ export declare const areUserSubscriptionsLoading: (state: StoreState) => boolean; /** * Retrieves if user subscriptions have been fetched. * * Will return true if a fetch request * has been made that returned either successfully or failed * and false otherwise. * * @example * ``` * import { areUserSubscriptionsFetched } from '@farfetch/blackout-redux'; * * const mapStateToProps = state => ({ * isFetched: areUserSubscriptionsFetched(state) * }); * ``` * @param state - Application state. * * @returns isFetched status of the subscription packages. */ export declare const areUserSubscriptionsFetched: (state: StoreState) => boolean; /** * Returns a specific unsubscribe recipient from topic request state from the redux * store. * * @param state - Application state. * @param recipientId - Id of the recipient (address) to get the unsubscribe request state. * * @returns The unsubscribe request state if available on the redux store or undefined. */ export declare const getUnsubscribeRecipientFromTopicRequest: (state: StoreState, recipientId: string) => UnsubscribeRecipientFromTopicType | undefined; /** * Returns all unsubscribe recipient from topic requests state from the redux * store. * * @param state - Application state. * * @returns All unsubscribe recipient from topic requests state. */ export declare const getUnsubscribeRecipientFromTopicRequests: (state: StoreState) => (UnsubscribeRecipientFromTopicType & { recipientId: string; })[];