import { Logger } from '@n8n/backend-common'; import { InsightsByPeriodRepository } from './database/repositories/insights-by-period.repository'; import { InsightsRawRepository } from './database/repositories/insights-raw.repository'; import { InsightsConfig } from './insights.config'; export declare class InsightsCompactionService { private readonly insightsByPeriodRepository; private readonly insightsRawRepository; private readonly insightsConfig; private readonly logger; private compactInsightsTimer; private isCompactionRunning; constructor(insightsByPeriodRepository: InsightsByPeriodRepository, insightsRawRepository: InsightsRawRepository, insightsConfig: InsightsConfig, logger: Logger); startCompactionTimer(): void; stopCompactionTimer(): void; compactInsights(): Promise; private compactStage; private getCompactionRunStopReason; private logCompactionRunLimitReached; private waitBeforeNextBatchIfFull; compactRawToHour(): Promise; compactHourToDay(): Promise; compactDayToWeek(): Promise; }