import { IUser } from '../../models';
export declare const JWT_DATALAYER_ISSUER = "https://id.datalayer.run";
export declare const DATALAYER_IAM_USER_KEY = "@datalayer/iam:user";
export declare const DATALAYER_IAM_TOKEN_KEY = "@datalayer/iam:token";
export declare const JWT_REFRESH_TOKEN_COOKIE_NAME = "refresh_token";
export type IJWTToken = {
    exp: number;
    iat: number;
    iss: string;
    jti: number;
    roles: Array<string>;
    sub: string;
    user: IUser;
};
/**
 * Return the user from the local storage.
 */
export declare const getStoredUser: () => IUser | undefined;
/**
 * Set the user in the local storage.
 */
export declare const storeUser: (user?: IUser) => void;
/**
 * Return the IAM token from the local storage.
 */
export declare const getStoredToken: () => string | undefined;
/**
 * Set the IAM token in the local storage.
 */
export declare const storeToken: (token?: string) => void;
/**
 * Load a JWT refresh token stored in a cookie.
 */
export declare function loadRefreshTokenFromCookie(): string | undefined;
