import { ClaimToken } from '../index'; import { IValidationResponse } from './IValidationResponse'; export declare enum ValidationStatus { /** * Item needs validation */ todo = "todo", /** * Item is validated */ validated = "validated", /** * Item is under validated */ underValidation = "underValidation" } export default class ValidationQueueItem { private _id; private _tokenToValidate; private _validationResult; private _validatedToken; private validationStatus; constructor(_id: string, _tokenToValidate: ClaimToken); /** * Keep track of the result of the validation * @param result of the validation */ setResult(result: IValidationResponse, token: ClaimToken): void; /** * Gets the validation response */ get validationResponse(): IValidationResponse; /** * Gets the token id */ get id(): string; /** * Token to validate */ get tokenToValidate(): ClaimToken; /** * Validated token */ get validatedToken(): ClaimToken | undefined; /** * Return false if the token still needs to be validated or the validation failed */ get result(): boolean; /** * True if the queue item has been validated */ get isValidated(): boolean; /** * True if the queue item is under validation */ get isUnderValidation(): boolean; }