import type { WorkerCrashMetrics, WorkerMetricsData } from '../types/index.js';
export type { WorkerMetricsData };
/**
 * Persists worker crash / restart metrics to
 * data/{projectId}/workers/worker-metrics.json.
 *
 * Follows the same JSON-store pattern used across the storage layer.
 */
export declare class WorkerMetricsStore {
    private readonly projectId;
    constructor(projectId: string);
    load(): Promise<WorkerMetricsData>;
    save(data: WorkerMetricsData): Promise<void>;
    recordCrash(workerName: string): Promise<void>;
    recordRestart(workerName: string): Promise<void>;
    getMetrics(workerName: string): Promise<WorkerCrashMetrics>;
    reset(workerName: string): Promise<void>;
    private getOrCreate;
}
//# sourceMappingURL=worker-metrics-store.d.ts.map