import type { ErrorEntry, GetErrorsOptions, ErrorSummary } from '../types/index.js';
/**
 * Append an error entry for the given project.
 * When the entry count exceeds MAX_ENTRIES, the oldest entries are dropped (FIFO).
 */
export declare function recordError(projectId: string, entry: ErrorEntry): Promise<void>;
/**
 * Retrieve error entries for a project, optionally filtered.
 */
export declare function getErrors(projectId: string, options?: GetErrorsOptions): Promise<ErrorEntry[]>;
/**
 * Aggregate error counts by module and severity for a project.
 */
export declare function getErrorSummary(projectId: string): Promise<ErrorSummary>;
/**
 * Remove entries older than `keepDays` days (default 7).
 * Updates `lastRotatedAt` timestamp after pruning.
 */
export declare function rotateErrors(projectId: string, keepDays?: number): Promise<void>;
//# sourceMappingURL=error-telemetry-store.d.ts.map