export declare type ObserverCallback = (data: T) => void; export default class Observable { private collect; private collect_intervall; private subscriber; private events; private timeout; constructor(collect?: boolean, collect_intervall?: number); getPublicApi(): { subscribe: (callback: ObserverCallback) => void; unsubscribe: (callback: ObserverCallback) => void; }; send(data: T): void; }