UNPKG

@better-auth-ui/core

Version:

Authentication components and data utilities for [Better Auth](https://better-auth.com), available for React and Solid.

31 lines (30 loc) 1.55 kB
import { skipToken } from '@tanstack/query-core'; import { BillingAdapter, BillingPlan, BillingScope, BillingState } from './billing-adapter'; export declare const billingQueryKeys: { readonly all: readonly ["auth", "billing"]; readonly scope: (scope: BillingScope) => readonly ["auth", "billing", string]; readonly plans: (scope: BillingScope) => readonly ["auth", "billing", string, "plans"]; readonly state: (scope: BillingScope) => readonly ["auth", "billing", string, "state"]; }; export declare const billingPlansOptions: (adapter: BillingAdapter, scope: BillingScope | undefined) => { queryKey: readonly ["auth", "billing", string, "plans"] | (string | null)[]; queryFn: typeof skipToken | (({ signal }: { client: import('@tanstack/query-core').QueryClient; queryKey: readonly unknown[]; signal: AbortSignal; meta: import('@tanstack/query-core').QueryMeta | undefined; pageParam?: unknown; direction?: unknown; }) => Promise<BillingPlan[]>); }; export declare const billingStateOptions: (adapter: BillingAdapter, scope: BillingScope | undefined) => { queryKey: readonly ["auth", "billing", string, "state"] | (string | null)[]; queryFn: typeof skipToken | (({ signal }: { client: import('@tanstack/query-core').QueryClient; queryKey: readonly unknown[]; signal: AbortSignal; meta: import('@tanstack/query-core').QueryMeta | undefined; pageParam?: unknown; direction?: unknown; }) => Promise<BillingState>); };