@better-auth-ui/core
Version:
Authentication components and data utilities for [Better Auth](https://better-auth.com), available for React and Solid.
65 lines (64 loc) • 1.82 kB
TypeScript
import { BillingAdapter } from './billing-adapter';
import { BillingLocalization } from './billing-localization';
declare module "../../lib/view-paths" {
interface SettingsViewPaths {
/** @default "billing" */
billing?: string;
}
}
export type BillingPluginOptions = {
adapter: BillingAdapter;
localization?: Partial<BillingLocalization>;
/** Add billing to personal settings. @default true */
user?: boolean;
/** Add billing to organization settings. @default false */
organization?: boolean;
/** @default "billing" */
path?: string;
};
export declare const billingPlugin: ((options: BillingPluginOptions) => {
adapter: BillingAdapter;
localization: {
billing: string;
billingDescription: string;
plans: string;
currentPlan: string;
choosePlan: string;
changePlan: string;
perMonth: string;
perYear: string;
oneTime: string;
popular: string;
subscription: string;
noSubscription: string;
noSubscriptionDescription: string;
manageBilling: string;
renewsOn: string;
endsOn: string;
cancelSubscription: string;
cancelSubscriptionTitle: string;
cancelSubscriptionDescription: string;
restoreSubscription: string;
restoreSubscriptionTitle: string;
restoreSubscriptionDescription: string;
confirm: string;
cancel: string;
seats: string;
updateSeats: string;
usage: string;
unlimited: string;
used: string;
loadingBilling: string;
};
user: boolean;
organization: boolean;
viewPaths: {
settings: {
billing: string;
};
};
} & {
id: "billing";
}) & {
id: "billing";
};