import { Undefinable } from "../Types"; /** * Interface for implementing your own state */ export interface IModelState { subscribe(postCallback: (value: Undefinable) => void, preCallback?: (value: Undefinable) => void): string; unsubscribe(key: string): void; toString(): string; readonly value: Undefinable; valueOf(): Undefinable; }