UNPKG

nehonix-uri-processor

Version:

A powerful URI processor for encoding, decoding, and analyzing URI data securely.

19 lines 785 B
import { Request } from "express"; import { ShieldRule, CookieOptions } from "./types/ShieldTypes"; export declare class RuleEngine { private rules; constructor(rules?: ShieldRule[]); private sortRulesByPriority; loadRules(rules: ShieldRule[]): void; getCSPDirectives(nonce: string): string; shouldSkipCSRF(req: Request): boolean; validateCSRFToken(token: string | undefined, storedToken: string | undefined): boolean; getSecureCookieOptions(options: CookieOptions): CookieOptions; validateRequest(req: Request): Promise<boolean>; validateIP(ip: string): boolean; private matchIP; private isIPInRange; getSecurityHeaders(req: Request): Record<string, string>; private evaluateCondition; } //# sourceMappingURL=RuleEngine.d.ts.map