UNPKG

a0-purchases

Version:

Lightweight subscription management for AI apps with auto-detecting providers

22 lines 850 B
import React from 'react'; import { CustomerInfo, PurchasesOfferings } from './revenuecat-types'; import { PurchasesConfig } from './types'; export declare function A0PurchaseProvider({ children, config, }: { children: React.ReactNode; /** Optional configuration passed directly to Purchases.initialize */ config?: PurchasesConfig; }): React.JSX.Element; export declare function useA0Purchases(): { isPremium: boolean; isLoading: boolean; isAnonymous: boolean; userId: string | null; purchase: (packageId: string) => Promise<void>; restore: () => Promise<void>; logIn: (userId: string) => Promise<void>; logOut: () => Promise<void>; refreshCustomerInfo: () => Promise<void>; getCustomerInfo: () => CustomerInfo | null; offerings: PurchasesOfferings; }; //# sourceMappingURL=react-hooks.d.ts.map