import { SynXLib } from './native'; /** * User information. * @property username Username. * @property registrationTime Registration time. * @property licensed License state. */ export declare type User = { username: string; registrationTime: string; licensed: number; }; /** * An invalid user. * @remarks This is used when the user is not authenticated. * @internal */ export declare const invalidUser: User; /** * Authenticates the user with the Synapse X API. * @param library The Synapse X library. * @returns A promise that resolves with the user's information. */ export declare function authenticate(library: SynXLib): Promise;