export declare type ObservableFunction = (val: T) => void; export declare class SimpleObservable { private listeners; constructor(initialFn?: ObservableFunction); onUpdate(fn: ObservableFunction): void; update(val: T): void; close(): void; }