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.
57 lines • 2.07 kB
TypeScript
import { TrojanHorse } from './index';
import { CryptoEngine } from './security/CryptoEngine';
import { KeyVault } from './security/KeyVault';
import { URLhausFeed } from './feeds/URLhausFeed';
import { AlienVaultFeed } from './feeds/AlienVaultFeed';
import { CrowdSecFeed } from './feeds/CrowdSecFeed';
import { AbuseIPDBFeed } from './feeds/AbuseIPDBFeed';
export type { TrojanHorseConfig, ApiKeyConfig, ThreatIndicator, ThreatFeedResult, EncryptedVault, FeedConfiguration, SecurityConfig } from './types';
export declare class BrowserUtils {
static checkBrowserSupport(): {
supported: boolean;
missing: string[];
warnings: string[];
};
static createBrowserInstance(config?: {
apiKeys?: Record<string, string>;
feeds?: string[];
storage?: {
dbName?: string;
encryptionKey?: string;
};
proxyUrl?: string;
demoMode?: boolean;
}): Promise<TrojanHorse>;
private static initializeBrowserStorage;
private static generateStorageKey;
static createSimpleLookup(options?: {
proxyUrl?: string;
demoMode?: boolean;
apiKeys?: Record<string, string>;
}): {
checkDomain: (domain: string) => Promise<boolean>;
checkIP: (ip: string) => Promise<boolean>;
checkURL: (url: string) => Promise<boolean>;
};
static getProductionGuidance(): {
corsIssue: string;
solutions: Array<{
name: string;
description: string;
example: string;
}>;
};
}
declare const _default: {
TrojanHorse: typeof TrojanHorse;
BrowserUtils: typeof BrowserUtils;
CryptoEngine: typeof CryptoEngine;
KeyVault: typeof KeyVault;
URLhausFeed: typeof URLhausFeed;
AlienVaultFeed: typeof AlienVaultFeed;
CrowdSecFeed: typeof CrowdSecFeed;
AbuseIPDBFeed: typeof AbuseIPDBFeed;
};
export default _default;
export { TrojanHorse, CryptoEngine, KeyVault, URLhausFeed, AlienVaultFeed, CrowdSecFeed, AbuseIPDBFeed };
//# sourceMappingURL=browser.d.ts.map