import { Request, Response, RequestHandler } from 'express'; import { WebhooksConfig } from '@polar-sh/adapter-utils'; export { EntitlementContext, EntitlementHandler, EntitlementProperties, EntitlementStrategy, Entitlements } from '@polar-sh/adapter-utils'; interface CheckoutConfig { accessToken?: string; successUrl?: string; returnUrl?: string; includeCheckoutId?: boolean; server?: "sandbox" | "production"; theme?: "light" | "dark"; } declare const Checkout: ({ accessToken, successUrl, returnUrl, server, theme, includeCheckoutId, }: CheckoutConfig) => (req: Request, res: Response) => Promise; interface CustomerPortalConfig { accessToken?: string; getCustomerId: (req: Request) => Promise; server?: "sandbox" | "production"; returnUrl?: string; } declare const CustomerPortal: ({ accessToken, server, getCustomerId, returnUrl, }: CustomerPortalConfig) => (req: Request, res: Response) => Promise; declare const Webhooks: ({ webhookSecret, onPayload, entitlements, ...eventHandlers }: WebhooksConfig) => RequestHandler; export { Checkout, type CheckoutConfig, CustomerPortal, type CustomerPortalConfig, Webhooks };