export type UserSource = 'anlix' | 'flashman' | 'control'; export interface UserMessage { _id: { client: string; source: UserSource; id: string; }; name: string; } export interface User extends UserMessage { last_update: Date; } export declare const sourceFromProduct: (product: string) => UserSource; export declare const buildMessage: (client: string, product: string, id: string, name: string) => [UserMessage | undefined, string | undefined]; export declare const buildMessageForJS: (client: any, product: any, id: any, name: any) => [UserMessage | undefined, string | undefined]; export declare const validateMessage: (u: any) => string | undefined; export declare const build: (client: string, product: string, id: string, name: string, date: Date) => [User | undefined, string | undefined]; export declare const buildForJS: (client: any, product: any, id: any, name: any, date: any) => [User | undefined, string | undefined]; export declare const validate: (u: any) => string | undefined; export declare const validateUserCommon: (u: any) => string | undefined; export declare const convertMessageToUser: (syncedUser: UserMessage, date: Date) => User;