/**
 * Baseline Service
 *
 * Performance baseline capture, storage, and comparison.
 *
 * @since v1.70.4
 */
import type { AggregatedMetrics, PerformanceBaseline, PerformanceComparison, PerformanceMetrics } from './analytics-types.js';
/**
 * Baseline creation options
 */
export interface BaselineOptions {
    /** Baseline name */
    name: string;
    /** Optional description */
    description?: string;
    /** Tags for organization */
    tags?: string[];
    /** Associated plugin IDs (for update tracking) */
    pluginIds?: string[];
}
/**
 * Comparison options
 */
export interface ComparisonOptions {
    /** Include plugin-level comparison */
    includePlugins?: boolean;
    /** Threshold for significant change (percentage) */
    significanceThreshold?: number;
}
/**
 * Baseline Service
 */
export declare class BaselineService {
    private baselines;
    private maxBaselines;
    constructor();
    /**
     * Create baseline from current metrics
     */
    createFromCurrent(serverId: string, options: BaselineOptions): PerformanceBaseline | null;
    /**
     * Create baseline from metrics array
     */
    createFromMetrics(metrics: PerformanceMetrics[], options: BaselineOptions): PerformanceBaseline | null;
    /**
     * Compare current metrics to baseline
     */
    compare(baseline: PerformanceBaseline, currentMetrics: PerformanceMetrics[], options?: ComparisonOptions): PerformanceComparison;
    /**
     * Compare aggregated metrics to baseline
     */
    compareAggregated(baseline: PerformanceBaseline, aggregated: AggregatedMetrics): PerformanceComparison;
    /**
     * Calculate percentage change
     */
    private calculateChange;
    /**
     * Calculate verdict
     */
    private calculateVerdict;
    /**
     * Create empty comparison result
     */
    private createEmptyComparison;
    /**
     * Get baseline by ID
     */
    getBaseline(id: string): PerformanceBaseline | undefined;
    /**
     * Get all baselines
     */
    getBaselines(): PerformanceBaseline[];
    /**
     * Delete baseline
     */
    deleteBaseline(id: string): boolean;
    /**
     * Load baselines from external source
     */
    loadBaselines(baselines: PerformanceBaseline[]): void;
    /**
     * Export baselines
     */
    exportBaselines(): PerformanceBaseline[];
    /**
     * Clear all baselines
     */
    clear(): void;
}
/**
 * Create baseline service instance
 */
export declare function createBaselineService(): BaselineService;
/**
 * Get baseline service singleton
 */
export declare function getBaselineService(): BaselineService;
/**
 * Reset baseline service singleton
 */
export declare function resetBaselineService(): void;
//# sourceMappingURL=baseline-service.d.ts.map