import { type Maybe } from '../value/maybe.type'; /** * An application role. * * Is used in the client to decide which content a user can view. * * Roles should always be lowercase. */ export type AuthRole = string; /** * A set of auth roles for a user. */ export type AuthRoleSet = Set; /** * Auth role for an account that has signed the terms of service. */ export declare const AUTH_TOS_SIGNED_ROLE = "tos"; /** * Auth role for an account that has been onboarded. */ export declare const AUTH_ONBOARDED_ROLE = "onboarded"; /** * Auth role for a full admin. Is allowed into all sections of the app. */ export declare const AUTH_ADMIN_ROLE = "admin"; /** * Auth role for a general user. Is allowed into the app and is logged in. */ export declare const AUTH_USER_ROLE = "user"; /** * Checks if an AuthRoleSet contains all of the specified roles. * * @param authRolesSet - The set of auth roles to check against * @param roles - An iterable of roles to check for, or null/undefined * @returns True if the authRolesSet contains all the specified roles, or if roles is empty/null */ export declare function authRolesSetHasRoles(authRolesSet: AuthRoleSet, roles: Maybe>): boolean;