import type { auth } from '#lib/server/auth.ts'; type Session = typeof auth.$Infer.Session; declare global { /** Injected by `vite.config.ts` from `package.json` and `APP_COMMIT`. */ const __BUILD_INFO__: { readonly version: string; readonly commit: string }; namespace App { interface Locals { user: (Session['user'] & { role?: string | null }) | undefined; session: Session['session'] | undefined; } interface Error { message: string; status?: number; } } } /* Vite serves a `?raw` import as the file's text; the writer's guide page uses it. */ declare module '*?raw' { const content: string; export default content; } export {};