/** * Log Store - Enhanced File-based Log Storage * * Features: * - Query logs across multiple files with filtering * - Support for compressed (.gz) log files * - Pagination and sorting * - Statistics and analytics * - Safe log cleanup with actual deletion */ import type { LogLevel, LogFileMeta, LogQuery, LogStats, LogEntry } from './types.js'; declare const LOG_DIR: string; /** * Get all log files (including compressed) */ export declare function getLogFiles(): LogFileMeta[]; /** * Get log file path for a specific date and type */ export declare function getLogPath(date?: Date, type?: 'app' | 'error' | 'audit' | 'access'): string; /** * Query logs across multiple files */ export declare function queryLogs(query?: LogQuery): Promise; export declare function getLogModules(): Promise; /** * Get log statistics by level (sampled from recent files) */ export declare function getFileLogStats(): Promise; export interface LogErrorSummaryItem { key: string; errName: string; phase?: string; module?: string; count: number; lastSeen: string; sampleMessage: string; } /** * Aggregate recent error/fatal logs by err name + phase + module. */ export declare function getLogErrorSummary(options?: { from?: string; to?: string; limit?: number; }): Promise; /** * Get available log levels */ export declare function getLogLevels(): LogLevel[]; export { LOG_DIR }; export type { LogEntry, LogQuery, LogFileMeta, LogStats } from './types.js';