import { Strategy } from "@cocalc/util/types/sso";
/**
 * If the domain of a given email address belongs to an SSO strategy,
 * which is configured to be an "exclusive" domain, then return the Strategy.
 * This also matches subdomains, i.e. "foo@bar.baz.edu" is goverend by "baz.edu".
 */
interface Opts {
    email: string | undefined;
    strategies: Strategy[] | undefined;
    specificStrategy?: string;
}
export declare function checkRequiredSSO(opts: Opts): Strategy | undefined;
export declare function getEmailDomain(email: string): string;
export declare function emailBelongsToDomain(emailDomain: string, ssoDomain: string): boolean;
export {};
