UNPKG

autumn-js

Version:
31 lines (26 loc) 921 B
import { z } from 'zod/v4'; import React from 'react'; declare const CustomerDataSchema: z.ZodObject<{ name: z.ZodOptional<z.ZodNullable<z.ZodString>>; email: z.ZodOptional<z.ZodNullable<z.ZodString>>; fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.core.$strip>; type CustomerData = z.infer<typeof CustomerDataSchema>; interface AuthPluginOptions { provider: "better-auth" | "supabase" | "clerk"; instance?: any; useOrg?: boolean; useUser?: boolean; } declare global { var __autumnAuth: AuthPluginOptions; } interface AutumnProviderProps { customerId?: string; customerData?: CustomerData; authPlugin?: AuthPluginOptions; children?: React.ReactNode; defaultReturnUrl?: string; } declare const AutumnProvider: ({ customerId, customerData, authPlugin, children, defaultReturnUrl, }: AutumnProviderProps) => React.JSX.Element; export { AutumnProvider };