import { YubicoResponseStatus } from '../enums'; import { IYubicoResponse } from '../interfaces'; import { SL } from '../types'; export declare class YubicoResponse { otp: string; nonce: string; h: string; t: number; status: YubicoResponseStatus; timestamp: string; sessioncounter: string; sessionuse: string; sl: SL; constructor(options: IYubicoResponse); /** * @returns {string} The public get ID is the first 12 bytes of the OTP. */ getPublicId(): string; /** * @returns {number} The serial number of the key. */ getKeySerialNumber(): number; /** * Creates a response from a string body * @param body {string} Response body as string from the API server * @returns {YubicoResponse} Newly generated Response instance from the input */ static fromRawString(body: string): YubicoResponse; /** * Validate the request with nonce, secret, and otp. * @param nonce {string} Nonce used during the request * @param secret {string} Secret used to verify against * @param otp {string} OTP */ validate(nonce: string, secret: string, otp: string): void; }