import { type SessionManager } from '../session-managers/index.js'; import { type ClaimTokenType, type TokenValidationDetailsType } from './types.js'; /** * Method extracts the provided claim from the provided token type in the * current session. * @param {SessionManager} sessionManager * @param {string} claim * @param {ClaimTokenType} type * @param {TokenValidationDetailsType} validationDetails * @returns {unknown | null} */ export declare const getClaimValue: (sessionManager: SessionManager, claim: string, type: ClaimTokenType | undefined, validationDetails: TokenValidationDetailsType) => Promise; /** * Method extracts the provided claim from the provided token type in the * current session, the returned object includes the provided claim. * @param {SessionManager} sessionManager * @param {string} claim * @param {ClaimTokenType} type * @param {TokenValidationDetailsType} validationDetails * @returns {{ name: string, value: unknown | null }} */ export declare const getClaim: (sessionManager: SessionManager, claim: string, type: ClaimTokenType, validationDetails: TokenValidationDetailsType) => Promise<{ name: string; value: unknown | null; }>; /** * Method returns the organization code from the current session and returns * a boolean in the returned object indicating if the provided permission is * present in the session. * @param {SessionManager} sessionManager * @param {string} name * @param {TokenValidationDetailsType} validationDetails * @returns {{ orgCode: string | null, isGranted: boolean }} */ export declare const getPermission: (sessionManager: SessionManager, name: string, validationDetails: TokenValidationDetailsType) => Promise<{ orgCode: string | null; isGranted: boolean; }>; /** * Method extracts the organization code from the current session. * @param {SessionManager} sessionManager * @param {TokenValidationDetailsType} validationDetails * @returns {{ orgCode: string | null }} */ export declare const getOrganization: (sessionManager: SessionManager, validationDetails: TokenValidationDetailsType) => Promise<{ orgCode: string | null; }>; /** * Method extracts all the permission and the organization code in the access * token in the current session. * @param {SessionManager} sessionManager * @param {TokenValidationDetailsType} validationDetails * @returns {{ permissions: string[], orgCode: string | null }} */ export declare const getPermissions: (sessionManager: SessionManager, validationDetails: TokenValidationDetailsType) => Promise<{ permissions: string[]; orgCode: string | null; }>; /** * Method extracts all organization codes from the id token in the current * session. * @param {SessionManager} sessionManager * @param {TokenValidationDetailsType} validationDetails * @returns {{ orgCodes: string[] }} */ export declare const getUserOrganizations: (sessionManager: SessionManager, validationDetails: TokenValidationDetailsType) => Promise<{ orgCodes: string[]; }>;