import { A as AutumnError } from '../error-TNbN4XE4.js'; import { a as Customer, B as BillingPortalResponse } from '../cusTypes-BT7wlTNj.js'; interface AttachResult { checkout_url?: string; customer_id: string; product_ids: string[]; code: string; message: string; } interface EventResult { id: string; code: string; customer_id: string; feature_id?: string; event_name?: string; } interface EntitledBalance { feature_id: string; unlimited: boolean; usage_allowed: boolean; required_quantity: number | null; balance: number | null; } interface EntitledResult { customer_id: string; feature_id: string; code: string; allowed: boolean; balances: EntitledBalance[]; } interface UseAutumnOptions { autoCreate?: boolean; } declare const useAutumn: (options?: UseAutumnOptions) => { customer: Customer | null; loading: boolean; error: AutumnError | null; attach: ({ productId }: { productId: string; }) => Promise; sendEvent: ({ featureId, value, }: { featureId: string; value: number; }) => Promise<{ data: null; error: AutumnError; } | { data: EventResult; error: null; }>; entitled: ({ featureId }: { featureId: string; }) => Promise<{ data: null; error: AutumnError; } | { data: EntitledResult; error: null; }>; openBillingPortal: () => Promise; }; export { type UseAutumnOptions, useAutumn };