protect-scr
Version:
Comprehensive client-side security protection for React applications against screenshots, printing, and unauthorized access
50 lines • 1.62 kB
TypeScript
import React, { ReactNode } from 'react';
import { SecurityConfig, SecurityLevel } from '../types';
interface SecurityProviderProps {
children: ReactNode;
config?: SecurityConfig | SecurityLevel;
enabled?: boolean;
}
interface RouteSecurityProviderProps {
children: ReactNode;
routes: string[];
config?: SecurityConfig | SecurityLevel;
}
interface SecurePageProps {
children: ReactNode;
config?: SecurityConfig | SecurityLevel;
fallback?: ReactNode;
onSecurityViolation?: (violation: string) => void;
}
interface SecurityStatusProps {
className?: string;
showDetails?: boolean;
}
interface SecurityToggleProps {
config?: SecurityConfig | SecurityLevel;
onToggle?: (enabled: boolean) => void;
className?: string;
}
interface WatermarkOverlayProps {
children: ReactNode;
text?: string;
opacity?: number;
fontSize?: number;
color?: string;
rotation?: number;
}
interface SecurityWarningProps {
message?: string;
onClose?: () => void;
autoClose?: number;
className?: string;
}
export declare const SecurityProvider: React.FC<SecurityProviderProps>;
export declare const RouteSecurityProvider: React.FC<RouteSecurityProviderProps>;
export declare const SecurePage: React.FC<SecurePageProps>;
export declare const SecurityStatus: React.FC<SecurityStatusProps>;
export declare const SecurityToggle: React.FC<SecurityToggleProps>;
export declare const WatermarkOverlay: React.FC<WatermarkOverlayProps>;
export declare const SecurityWarning: React.FC<SecurityWarningProps>;
export {};
//# sourceMappingURL=components.d.ts.map