import { AuthError, Result } from "./utils.js";

//#region src/auth/methods/sso.d.ts

/**
 * Whether a visitor with this email signs in with single sign-on, for a login
 * page that asks for the email first and routes from there.
 *
 * Decided by the email's domain against the domains the builder set for single
 * sign-on in Softr. It says nothing about whether an account exists, and an
 * address that is not an email answers `false`.
 */
declare function discoverSso(details: {
  email: string;
}): Promise<Result<{
  sso: boolean;
}, AuthError>>;
//#endregion
export { discoverSso };