import { WebTokenManipulator } from './web-token-manipulator'; import { JwtRatchet, JwtTokenBase, LoggerLevelName } from '@bitblit/ratchet/common'; /** * Service for handling jwt tokens */ export declare class LocalWebTokenManipulator implements WebTokenManipulator { private encryptionKeys; private issuer; private _ratchet; constructor(encryptionKeys: string[], issuer: string); withExtraDecryptionKeys(keys: string[]): LocalWebTokenManipulator; withParseFailureLogLevel(logLevel: LoggerLevelName): LocalWebTokenManipulator; withOldKeyUseLogLevel(logLevel: LoggerLevelName): LocalWebTokenManipulator; get jwtRatchet(): JwtRatchet; get selectRandomEncryptionKey(): Promise; createRefreshedJWTString(tokenString: string, expirationSeconds: number, allowExpired?: boolean): Promise; parseAndValidateJWTStringAsync(tokenString: string): Promise; createJWTStringAsync(principal: string, userObject: T, roles?: string[], expirationSeconds?: number, proxyUser?: T): Promise; extractTokenFromAuthorizationHeader(header: string): Promise; }