import type { AuthDefinition } from '@pikku/inspector'; /** * The two files generated from a `pikkuBetterAuth` export. * * They are split because the CLI's schema/wiring-separation rule (PKU490) * forbids a file from declaring Zod schemas AND `wireHTTPRoutes` together — * schema files are imported at runtime, which would fire HTTP wiring * side-effects without a server context. `wireSecret`/`wireVariable` are NOT * HTTP wiring, so schemas may sit alongside them; only the route wiring must be * separated out. */ export interface AuthGenOutput { /** Handler + catch-all routes (+ session middleware, unless split out). */ wiring: string; /** The secrets file: Zod schemas + wireSecret/wireVariable. */ secrets: string; /** Global session-middleware registration, split into its own file only when * `session.cookieCache` is enabled (stateless path); undefined otherwise. */ middleware?: string; } export declare const serializeAuthGen: (definition: AuthDefinition, providers: string[], authFile: string, typesDeclarationFile: string, packageMappings: Record, hasUserSessionMiddleware?: boolean, includeConsoleToken?: boolean) => AuthGenOutput;