import { creem } from './index.mjs'; export { C as CheckboxFieldConfig, a as CheckoutCustomer, b as CreateCheckoutInput, c as CreateCheckoutResponse, d as CreatePortalInput, e as CreatePortalResponse, f as CustomFieldInput, R as RetrieveSubscriptionInput, S as SearchTransactionsInput, g as SearchTransactionsResponse, h as SubscriptionData, T as TextFieldConfig, i as TransactionData } from './search-transactions-types-DJyPIg0H.mjs'; export { C as CancelSubscriptionInput, a as CancelSubscriptionResponse, H as HasAccessGrantedResponse } from './has-active-subscription-types-D3Rjv4Qe.mjs'; import 'creem/models/components'; import 'zod'; import 'better-auth'; import '@better-auth/core/db'; import '@creem_io/webhook-types'; import './creem-server.mjs'; import 'creem'; /** * Creem client plugin for Better-Auth. * * Provides client-side methods for interacting with Creem: * - `authClient.creem.createCheckout()` - Create a checkout session * - `authClient.creem.createPortal()` - Create a customer portal session * - `authClient.creem.cancelSubscription()` - Cancel a subscription * - `authClient.creem.retrieveSubscription()` - Get subscription details * - `authClient.creem.searchTransactions()` - Search transactions * - `authClient.creem.hasAccessGranted()` - Check if user has access granted * * @example * ```typescript * import { createAuthClient } from "better-auth/client"; * import { creemClient } from "./lib/creem-betterauth/client"; * * export const authClient = createAuthClient({ * plugins: [creemClient()] * }); * * // Usage in components - hover over createCheckout to see clean parameter types! * const { data, error } = await authClient.creem.createCheckout({ * productId: "prod_abc123", * units: 1, * successUrl: "/success" * }); * ``` */ declare const creemClient: () => { id: "creem"; $InferServerPlugin: ReturnType; pathMethods: { "/creem/create-portal": "POST"; "/creem/cancel-subscription": "POST"; "/creem/retrieve-subscription": "POST"; "/creem/search-transactions": "POST"; }; }; export { creemClient };