import { InputStatus, LoginSuccess, TeachingGroup, User, UserRole } from '../beans'; export declare const parseJwt: (token: any) => any; export declare const getUserFromToken: (token: string) => User; export declare const userIsTeacher: (roles: Array) => boolean; export declare const userIsUniTeacher: (roles: Array) => boolean; export declare const userIsSchoolTeacher: (roles: Array) => boolean; export declare const userNeedsParentAuthorization: (user: User) => boolean; export declare const cleanUsername: (username: string) => string; export declare const isMobileNumber: (value: string) => boolean; export declare const getElementTree: (elem: Element, tree?: Element[]) => null | Element[]; export declare const buildLoginSuccessPayload: (token: string, teachingGroups?: TeachingGroup[]) => LoginSuccess; export declare const buildDataLayerPayload: (user: User) => { RL: string; userId: number; }; export declare const isInError: (status: null | InputStatus) => boolean; export declare const isValidEmail: (email: string) => boolean; export declare function randomId(): string;