export declare class RefCounter { topicRefMap: Map; incRefCount(key: string): number; decRefCount(key: string): number; actOnFirst(key: string, firstAction: () => any, nonFirstAction: () => {}): any; actOnLast(key: string, lastAction: () => any, nonLastAction: () => {}): any; }