/**
 * Copyright © 2023-2024 Nevis Security AG. All rights reserved.
 */
import type { PinEnrollmentError } from '../../error/pin/enrollment/PinEnrollmentError';
/**
 * The object providing some contextual information during PIN enrollment.
 *
 * @see {@link PinEnroller.enrollPin}
 */
export declare abstract class PinEnrollmentContext {
    /**
     * The username whose PIN must be enrolled.
     */
    abstract username: string;
    /**
     * When a recoverable error occurred during the last PIN enrollment, this method returns the
     * object describing the last error.
     */
    abstract lastRecoverableError?: PinEnrollmentError;
    /**
     * Alternate constructor that creates an instance from a json.
     *
     * @param json contains the source for instance creation.
     * @returns the created instance.
     */
    static fromJson(json: any): PinEnrollmentContext;
}
//# sourceMappingURL=PinEnrollmentContext.d.ts.map