/**
 * Decoded JWT
 */
export interface JWT {
    header: object;
    payload: object;
    signature: string;
}
/**
 * Returns Laserfiche account id (customer id) from Laserfiche jwt claims
 * @param lfJwt - Laserfiche JWT
 * @returns
 * @example
 * ```typescript
 * const jwt : AccessTokenUtils.JWT = {
 *  header: { 'typ': 'JWT'},
 *  payload: {'csid' : '123456789'},
 *  signature: '_signature'
 * }
 * getAccountIdFromLfJWT(jwt); // '123456789';
 * ```
 */
export declare function getAccountIdFromLfJWT(lfJwt: JWT): string;
/**
 * Returns Laserfiche username from Laserfiche jwt claims
 * @param lfJwt - Laserfiche JWT
 * @returns
 * @example
 * ```typescript
 * const jwt : AccessTokenUtils.JWT = {
 *  header: { 'typ': 'JWT'},
 *  payload: {'name' : 'test_user'},
 *  signature: '_signature'
 * }
 * getUsernameFromLfJWT(jwt); // 'test_user';
 * ```
 */
export declare function getUsernameFromLfJWT(lfJwt: JWT): string;
/**
 * Returns Laserfiche domain from Laserfiche jwt claims
 * @param lfJwt - Laserfiche JWT
 * @returns
 * @example
 * ```typescript
 * const jwt : AccessTokenUtils.JWT = {
 *  header: { 'typ': 'JWT'},
 *  payload: {'aud' : 'test_aud'},
 *  signature: '_signature'
 * }
 * getDomainFromLfJWT(jwt); // 'test_aud';
 * ```
 */
export declare function getAudFromLfJWT(lfJwt: JWT): string;
/**
 * Returns Laserfiche trustee id (user id) from Laserfiche jwt claims
 * @param lfJwt - Laserfiche JWT
 * @returns
 * @example
 * ```typescript
 * const jwt : AccessTokenUtils.JWT = {
 *  header: { 'typ': 'JWT'},
 *  payload: {'trid' : '1008'},
 *  signature: '_signature'
 * }
 * getTrusteeIdFromLfJWT(jwt); // '1008';
 * ```
 */
export declare function getTrusteeIdFromLfJWT(lfJwt: JWT): string;
/**
 * Parses a base64-encoded jwt
 * @param jwt - JWT encoded as base64 string
 * @returns
 * @example
 * ```typescript
 * const jwtString = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c';
 * parseAccessToken(jstString);
 *  // => {
 *            header:
 *            {
 *              'alg': 'HS256',
 *              'typ': 'JWT'
 *             },
 *            payload:
 *            {
 *              'sub': '1234567890',
 *              'name': 'John Doe',
 *              'iat': 1516239022
 *            },
 *            signature: 'SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c'
 *          }
 * ```
 */
export declare function parseAccessToken(jwt: string): JWT;
/**
 * Function that determines if the environment is in a browser or not
 * @returns True if the function is run in a browser, false if it is run in another environment
 */
export declare function isBrowser(): boolean;
/**
 * Decodes a string of data encoded using Base64 encoding
 * @param base64String - Base64 encoded string
 * @returns
 * @example
 * ```typescript
 * base64toString('dGVzdA=='); // => 'test';
 * ```
 */
export declare function base64toString(base64String: string): string;
