mirror of
https://github.com/storytold/placeholder-artcraft.git
synced 2026-10-20 07:44:59 +00:00
0daf83dba9
Need to remove secrets before entire repo can be made public.
18 lines
594 B
TypeScript
18 lines
594 B
TypeScript
export interface SubscriptionState {
|
|
subscriptionInfo?: SubscriptionInfo;
|
|
}
|
|
interface SubscriptionInfo {
|
|
subscriptionToken: string;
|
|
productSlug: string;
|
|
namespace: string;
|
|
nextBillAt?: Date;
|
|
subscriptionEndAt?: Date;
|
|
}
|
|
export type SubscriptionActions = {
|
|
hasPaidPlan: () => boolean;
|
|
canCancelPlan: () => boolean;
|
|
fetchFromServer: () => Promise<void>;
|
|
};
|
|
export declare const useSubscriptionState: import('zustand').UseBoundStore<import('zustand').StoreApi<SubscriptionState & SubscriptionActions>>;
|
|
export {};
|
|
//# sourceMappingURL=subscription-state.d.ts.map
|