import { JwtPayload } from "jwt-decode";
import { Persona } from "../c3-help-center/c3-help-center.types";
declare const AUTH0_BASE_CLAIM = "https://camunda.com";
declare const AUTH0_TOKEN_ATTRIBUTE_SETTINGS = "settings";
declare const AUTH0_TOKEN_ATTRIBUTE_META = "meta";
declare const AUTH0_TOKEN_ATTRIBUTE_PERSONA = "persona";
type SettingsKey = `${typeof AUTH0_BASE_CLAIM}/${typeof AUTH0_TOKEN_ATTRIBUTE_SETTINGS}`;
type MetaKey = `${typeof AUTH0_BASE_CLAIM}/${typeof AUTH0_TOKEN_ATTRIBUTE_META}`;
export type Token = JwtPayload & {
    [settings in SettingsKey]?: {
        [persona in typeof AUTH0_TOKEN_ATTRIBUTE_PERSONA]?: Persona;
    };
} & {
    [meta in MetaKey]?: Meta;
};
export declare const getPersona: (token: Token) => Persona | undefined;
export type Meta = {
    given_name: string;
    email: string;
};
export declare const getMeta: (token: Token) => Meta | undefined;
export type DecodedToken = {
    audience?: string | string[];
    persona?: Persona;
    decodedToken: Token;
    userId?: string;
    meta?: Meta;
};
export declare const decodeJWT: (userToken: string) => null | DecodedToken;
export {};
