import { AsyncEmitter } from '../tools'; import FieldCore, { FieldOptions } from './FieldCore'; /** * Event emitted by dynamic fields when programmatically modified. */ export interface DynFieldEvent { /** * The field which was modified. */ field: DynField; } /** * A dynamic field which may be used in a form. */ export default class DynField extends AsyncEmitter { readonly player: number; readonly name: string; readonly hasData: boolean; private _content; private _options; constructor(player: number, data: FieldCore); get content(): unknown; set content(value: unknown); get options(): FieldOptions; set options(value: FieldOptions); }