UNPKG

protect-scr

Version:

Comprehensive client-side security protection for React applications against screenshots, printing, and unauthorized access

37 lines 1.05 kB
import { SecurityConfig, SecurityLevel } from '../types'; /** * Main hook for security protection */ export declare function useSecurityShield(config?: SecurityConfig | SecurityLevel): { isEnabled: boolean; enable: () => void; disable: () => void; updateConfig: (newConfig: Partial<SecurityConfig>) => void; }; /** * Hook for route-based security protection */ export declare function useRouteSecurityShield(routes: string[], config?: SecurityConfig | SecurityLevel): { isEnabled: boolean; shouldProtect: boolean; }; /** * Hook for conditional security protection */ export declare function useConditionalSecurityShield(condition: boolean, config?: SecurityConfig | SecurityLevel): { isEnabled: boolean; enable: () => void; disable: () => void; }; /** * Hook for security events monitoring */ export declare function useSecurityEvents(): { events: Array<{ type: string; timestamp: Date; details?: any; }>; clearEvents: () => void; }; //# sourceMappingURL=hoots.d.ts.map