export type VisibilityCountListener = (count: number, blockId: string) => void; export type ItemViewabilityListener = (isViewable: boolean, itemKey: string) => void; export default class BlockVisibilityCounter { private counts; private viewableItems; private emitter; private itemEmitter; increment(blockId: string): number; decrement(blockId: string): number; getCount(blockId: string): number; isVisible(blockId: string): boolean; setItemViewable(itemKey: string, isViewable: boolean, blockId?: string): void; isItemViewable(itemKey: string): boolean; on(blockId: string, listener: VisibilityCountListener): () => void; off(blockId: string, listener: VisibilityCountListener): void; onItem(itemKey: string, listener: ItemViewabilityListener): () => void; offItem(itemKey: string, listener: ItemViewabilityListener): void; private setCount; } //# sourceMappingURL=BlockVisibilityCounter.d.ts.map