UNPKG

trojanhorse-js

Version:

A comprehensive JavaScript library for fetching, managing, and analyzing global threat intelligence from multiple open-source feeds and security news sources. Unlike its mythological namesake, this Trojan protects your digital fortress.

38 lines (33 loc) 768 B
/** * Storage-specific type definitions for TrojanHorse.js */ export interface StorageEngine { name: string; version: string; encrypted: boolean; persistent: boolean; } export interface StorageQuota { used: number; available: number; total: number; percentage: number; } export interface StorageTransaction { id: string; operations: StorageOperation[]; timestamp: Date; status: 'pending' | 'committed' | 'rollback'; } export interface StorageOperation { type: 'create' | 'read' | 'update' | 'delete'; key: string; value?: any; previousValue?: any; } export interface CachePolicy { maxAge: number; maxSize: number; evictionStrategy: 'lru' | 'fifo' | 'random'; compressData: boolean; }