export type FeedType = "huggingface" | "github" | "local"; export type TargetFile = "patterns" | "threats"; export interface FeedSource { name: string; type: FeedType; url: string; format: "json" | "jsonl" | "csv"; field?: string; labelField?: string; labelValue?: string | number; target?: TargetFile; enabled: boolean; } export interface FeedConfig { version: string; feeds: FeedSource[]; settings: { backupBeforeUpdate: boolean; maxPatternsPerFeed: number; maxThreatSamplesPerFeed: number; autoMerge: boolean; deduplicateThreshold: number; }; } export interface UpdateResult { feed: string; added: number; duplicatesSkipped: number; errors: string[]; } export interface UpdateSummary { timestamp: string; results: UpdateResult[]; backupPath?: string; totalAdded: number; totalSkipped: number; } export declare function loadFeedConfig(): FeedConfig; export declare function saveFeedConfig(config: FeedConfig): void; export declare function createBackup(): string; export declare function listBackups(): string[]; export declare function rollback(backupTimestamp: string): void; export declare function updateThreats(feedNames?: string[]): Promise; export declare function importLocalPatterns(filePath: string): { added: number; skipped: number; }; export declare function importLocalThreats(filePath: string, tag: string): { added: number; skipped: number; }; export declare function addFeed(feed: FeedSource): void; export declare function removeFeed(name: string): void; export declare function enableFeed(name: string, enabled: boolean): void; export declare function cli(args: string[]): Promise;