import type { Database } from "./database.js"; /** * The newest revision of the deployment-level runtime switch for new managed * account sign-ups (migration 0585). The API creates a new Better Auth user * only while both this switch and its `OPENGENI_MANAGED_AUTH_NEW_SIGNUPS_ENABLED` * master ceiling allow it. Operators change it only through the owner-only * audited SQL setter `set_managed_auth_new_signups_enabled`; runtime roles can * only read it. */ export type ManagedAuthNewSignupsSwitchState = { revision: number; signupsEnabled: boolean; changedAt: Date; }; /** Returns null when no revision exists (or before migration 0585 is applied). */ export declare function readManagedAuthNewSignupsSwitch(db: Database): Promise;