/** * * User can be given a permission to write (create or update) a reply for someone other than himself in 'table' page. * open the check status dropdown on any queston cell of a reply row of anyone and start checking or unchecking * checking and unckecking will not be applied immediately but stored via this class temporarily. * Upon confirmation, stored actions should be applied and emptied out. * */ import { Option } from '../option'; import { ReplyItem, Check } from '../reply'; import { Observable } from 'rxjs'; export declare class ForgedReply { forged: ReplyItem; origin: ReplyItem; constructor(reply: ReplyItem); /** * * @param option to set on later * @param value value to set with * @param check_id check id. this should be firebase-generated id or timestamp so that it could be used to determine the order of checks */ set(option: Option, value: any, check_id: string): void; get(option: Option): Check; setAs(as: string): void; getAs(): string; empty(): void; } export declare class ForgeryStore { stores: Map; private changeEvent; readonly onChange: Observable; readonly size: number; private hasChanged; setCheck(reply: ReplyItem, option: Option, value: any, check_id: string): void; getCheck(option: Option, as: string): Check; setAs(reply: ReplyItem, as: string): void; getForgedReply(id: string): ForgedReply; empty(): void; }