import type { Detector, DetectionResult, SecurityEvent, TemporalDetectorConfig } from '../types.js';
/**
 * Temporal anomaly detector for unusual access times
 */
export declare class TemporalDetector implements Detector {
    readonly name = "temporal";
    readonly description = "Detects unusual access times based on configured hours and learned user patterns";
    private readonly config;
    private readonly redis;
    private readonly keyPrefix;
    constructor(config?: Partial<TemporalDetectorConfig>, keyPrefix?: string);
    /**
     * Analyze an event for temporal anomalies
     */
    detect(event: SecurityEvent): Promise<DetectionResult>;
    /**
     * Learn from an event by updating user patterns
     */
    learn(event: SecurityEvent): Promise<void>;
    /**
     * Reset all learned patterns
     */
    reset(): Promise<void>;
    /**
     * Get user's access pattern from Redis
     */
    private getUserPattern;
    /**
     * Get Redis key for user's pattern
     */
    private getPatternKey;
    /**
     * Check if access time is within configured normal hours
     */
    private checkNormalHours;
    /**
     * Check access time against user's learned pattern
     */
    private checkAgainstPattern;
    /**
     * Update global temporal statistics
     */
    private updateGlobalStats;
    /**
     * Calculate severity based on confidence and indicators
     */
    private calculateSeverity;
    /**
     * Generate human-readable description
     */
    private generateDescription;
}
/**
 * Create a new temporal detector instance
 */
export declare function createTemporalDetector(config?: Partial<TemporalDetectorConfig>, keyPrefix?: string): TemporalDetector;
//# sourceMappingURL=temporal.d.ts.map