import { AttachParams, AttachResult, EntitledParams, EntitledResult, EventParams, EventResult } from './general.mjs'; import { C as Customer, a as CreateCustomerParams, U as UpdateCustomerParams, B as BillingPortalParams, b as BillingPortalResponse } from './cusTypes-DEdFHlrl.mjs'; export { e as CustomerData, c as CustomerFeature, d as CustomerProduct, P as ProductStatus } from './cusTypes-DEdFHlrl.mjs'; import { Product, CreateProductParams } from './products.mjs'; export { FreeTrial, PriceTier, ProductItem } from './products.mjs'; export { A as AppEnv, F as FreeTrialDuration, I as Infinite, P as ProductItemInterval, a as ProductItemIntervalType, U as UsageModel } from './prodEnums-BnhKkH4e.mjs'; interface AutumnError { message: string; code: string; } declare class Autumn { private readonly secretKey; private readonly publishableKey; private level; private headers; private url; constructor(options?: { secretKey?: string; publishableKey?: string; url?: string; }); getLevel(): "secret" | "publishable"; private handleResponse; get(path: string): Promise<{ data: null; error: { message: any; code: any; }; } | { data: any; error: null; }>; post(path: string, body: any): Promise<{ data: null; error: { message: any; code: any; }; } | { data: any; error: null; }>; customers: { get: (id: string) => Promise<{ data: Customer | null; error: AutumnError | null; }>; create: (params?: CreateCustomerParams) => Promise<{ data: Customer | null; error: AutumnError | null; }>; update: (id: string, params: UpdateCustomerParams) => Promise<{ data: Customer | null; error: AutumnError | null; }>; billingPortal: (id: string, params?: BillingPortalParams) => Promise<{ data: BillingPortalResponse | null; error: AutumnError | null; }>; }; products: { get: (id: string) => Promise<{ data: Product | null; error: AutumnError | null; }>; create: (params?: CreateProductParams) => Promise<{ data: Product | null; error: AutumnError | null; }>; }; attach(params: AttachParams): Promise<{ data: null; error: AutumnError; } | { data: AttachResult; error: null; }>; entitled(params: EntitledParams): Promise<{ data: null; error: AutumnError; } | { data: EntitledResult; error: null; }>; event(params: EventParams): Promise<{ data: null; error: AutumnError; } | { data: EventResult; error: null; }>; } export { Autumn, type AutumnError, BillingPortalParams, BillingPortalResponse, CreateCustomerParams, CreateProductParams, Customer, Product, UpdateCustomerParams };