import { IBetterLogger } from "@codiac.io/codiac-common";
export declare class TokenUtils {
    private logger;
    constructor(logger: IBetterLogger);
    /** Determines whether the given token is expired.
     * @param throwOnError throws any encountered errors, including token parsing errors.
     */
    isExpired(token: string, throwOnError?: boolean): boolean;
    extractTokenExpiration(token: string): Date | undefined;
    extractRoles(token: string): string[] | undefined;
}
