import { MVideoImmutable } from '../../../types/models';
import { VideoViewEvent } from '../../../../shared/models';
export declare class VideoViewerStats {
    private processingViewersStats;
    constructor();
    addLocalViewer(options: {
        video: MVideoImmutable;
        currentTime: number;
        ip: string;
        viewEvent?: VideoViewEvent;
    }): Promise<void>;
    getWatchTime(videoId: number, ip: string): Promise<number>;
    private updateLocalViewerStats;
    processViewerStats(): Promise<void>;
    private saveViewerStats;
    private buildWatchTimeFromSections;
}
//# sourceMappingURL=video-viewer-stats.d.ts.map