import { LightWeightObjectChangeTracker, SetOptions } from '@schoolbelle/common/object-change-tracker'; import { OptionBaseInterface } from './option.base.interface'; import { Question } from '../../question'; import { OptionDataInterface } from './optionData.interface'; export declare class OptionBase extends LightWeightObjectChangeTracker implements OptionBaseInterface, OptionDataInterface { question: Question; readonly id: string; text: string; type: string; priority: number; quota: number; readonly value: OptionDataInterface; constructor(question: Question, option_id: string); /** * * @param data * @param options * if no priority is set, set 1000, which will be modified to a proper value to put the question at the end of question list. * id, type, and priority are preset and should not be overriden. */ load(data?: Partial, options?: SetOptions): void; private setOptionPriority; }