import type { MetricsHistoryPoint, MetricsHistoryProvider, MetricsHistoryQuery, MetricsLatencyPoint, MetricsLatencyQuery } from '@bull-board/api/typings/app'; import { type MetricsConnection } from './connection'; import { type HistoryStats, type PurgeOptions, type PurgeResult } from './HistoryAdmin'; import { type Retention } from './HistoryStore'; export interface RedisMetricsHistoryProviderOptions { connection: MetricsConnection; /** Must match the recorder's. See `MetricsRecorderOptions.prefix`. */ prefix?: string; /** Should mirror the recorder's retention. Only used to bound the query span. */ retention?: Partial; retentionDays?: number; } export declare class RedisMetricsHistoryProvider implements MetricsHistoryProvider { private readonly store; private readonly latencyStore; private readonly admin; private readonly redis; private readonly ownsRedis; private readonly retentionDays; constructor(opts: RedisMetricsHistoryProviderOptions); disconnect(): void; /** Backs the board's storage panel. See MetricsHistoryAdmin.stats. */ getUsage(): Promise; /** Backs the board's "clear history" action. See MetricsHistoryAdmin.purge. */ purge(options?: PurgeOptions): Promise; getHistory(query: MetricsHistoryQuery): Promise; getLatency(query: MetricsLatencyQuery): Promise; }