import { a as CodemationAuthConfig } from "./CodemationWhitelabelConfig-Ca2mCUeC.js";

//#region src/presentation/frontend/CodemationFrontendAuthSnapshot.d.ts
type CodemationFrontendAuthProviderSnapshot = Readonly<{
  id: string;
  name: string;
}>;
type CodemationFrontendAuthSnapshot = Readonly<{
  config: CodemationAuthConfig | undefined;
  credentialsEnabled: boolean;
  oauthProviders: ReadonlyArray<CodemationFrontendAuthProviderSnapshot>;
  secret: string | null;
  uiAuthEnabled: boolean;
  /**
   * Present when auth.kind === "managed". Carries the CP-web origin for CORS
   * awareness. No UI login flow is rendered in managed mode.
   */
  cpWebOrigin?: string;
}>;
//#endregion
//#region src/presentation/frontend/FrontendAppConfig.d.ts
/**
 * Frontend-safe projection of host app configuration for packaged Next UI and SSR.
 */
type FrontendAppConfig = Readonly<{
  auth: CodemationFrontendAuthSnapshot;
  productName: string;
  logoUrl: string | null;
}>;
//#endregion
//#region src/presentation/frontend/InternalAuthBootstrap.d.ts
/**
 * Node-side runtime bootstrap for NextAuth provider wiring.
 */
type InternalAuthBootstrap = Readonly<{
  authConfig: CodemationAuthConfig | undefined;
  credentialsEnabled: boolean;
  oauthProviders: ReadonlyArray<CodemationFrontendAuthProviderSnapshot>;
  uiAuthEnabled: boolean;
}>;
//#endregion
//#region src/presentation/frontend/PublicFrontendBootstrap.d.ts
/**
 * Frontend-safe runtime bootstrap consumed by the Next.js shell.
 */
type PublicFrontendBootstrap = Readonly<{
  credentialsEnabled: boolean;
  logoUrl: string | null;
  oauthProviders: ReadonlyArray<CodemationFrontendAuthProviderSnapshot>;
  productName: string;
  uiAuthEnabled: boolean;
  /** Present in managed mode — the CP web origin. No UI login is rendered when this is set. */
  cpWebOrigin?: string;
}>;
//#endregion
export { CodemationFrontendAuthSnapshot as a, CodemationFrontendAuthProviderSnapshot as i, InternalAuthBootstrap as n, FrontendAppConfig as r, PublicFrontendBootstrap as t };
//# sourceMappingURL=PublicFrontendBootstrap-Cev3qK46.d.ts.map