UNPKG

bot-guardian-js

Version:

A powerful bot detection and prevention library for Node.js applications

15 lines (14 loc) 497 B
import { DetectionResult, BotDetectionParams } from '../types'; export declare class GuardianStorage { private static instance; private constructor(); static getInstance(): GuardianStorage; detectBot(params: BotDetectionParams): Promise<DetectionResult>; getDetections(): DetectionResult[]; getStats(): { totalRequests: number; detectedBots: number; pathStats: Record<string, number>; }; } export declare const guardianStorage: GuardianStorage;