import { KoaContextWithOIDC } from 'oidc-provider'; export declare const accounts: Map; /** * Method for retrieving an account from the cache of already authenticated users. * It also overrides the claims method to specify the exact claims issued and how to value them. * * @author Kenble - f.taddia * @param sub : account ID to recover * @param remoteUser : claim key to override the "sub" claim * @param customClaims : list of custom claims * @returns returns the recovered account */ export declare function findAccount(sub: string, remoteUser?: string, customClaims?: { [key: string]: null | Array; } | undefined): { accountId: string; claims(_use: any, _scope: any, _claims: any, _rejected: any): Promise<{ sub: any; }>; }; /** * Method to load already granted grants into the OIDC authentication flow. * * @author Kenble - f.taddia * @param ctx : OIDC request context * @returns returns any recovered Grant */ export declare function loadExistingGrant(ctx: KoaContextWithOIDC): Promise;