import { type FrondDescriptor } from '@fougere/core'; import { type Entity, type SchemaView } from '@fougere/schema'; import { type FougereProviders } from './FougereProviders.js'; export { AuthUser } from './entity/AuthUser.js'; /** What `fronds: { '@fougere/auth-better': { … } }` hands the factory in fougere.config.ts. */ export interface BetterAuthOptions { user?: Entity; secret: string; baseUrl?: string; basePath?: string; providers?: FougereProviders; trustedOrigins?: string[]; sessionTtl?: number; session?: SchemaView; account?: SchemaView; verification?: SchemaView; } /** * The auth provider, as a frond: its rows — the user too, when the app names none — and the * extension that rises where it is served, declaring what a signed-in call carries and * registering the runtime under `AUTH`. Placed like any frond: a process whose `only:` leaves it * out starts no engine and migrates no session table. The session travels without its * `token`: a process trusts the one that called it, never the cookie of whoever is behind it. */ export declare function betterAuth(opts: BetterAuthOptions): FrondDescriptor; export default betterAuth; //# sourceMappingURL=index.d.ts.map