UNPKG

mattermost-redux

Version:

Common code (API client, Redux stores, logic, utility functions) for building a Mattermost client

14 lines (13 loc) 1.07 kB
import type { Limits, Subscription, Product, CloudCustomer, CloudState } from '@mattermost/types/cloud'; import type { GlobalState } from '@mattermost/types/store'; export declare function getCloudLimits(state: GlobalState): Limits; export declare function getCloudSubscription(state: GlobalState): Subscription | undefined; export declare function getCloudCustomer(state: GlobalState): CloudCustomer | undefined; export declare function getCloudProducts(state: GlobalState): Record<string, Product> | undefined; export declare function getCloudLimitsLoaded(state: GlobalState): boolean; export declare function getCloudErrors(state: GlobalState): CloudState['errors']; export declare function getCloudInvoices(state: GlobalState): CloudState['invoices']; export declare function getSubscriptionProduct(state: GlobalState): Product | undefined; export declare function getSubscriptionProductName(state: GlobalState): string; export declare function checkHadPriorTrial(state: GlobalState): boolean; export declare function isCurrentLicenseCloud(state: GlobalState): boolean;