react-native-safeguard
Version:
A comprehensive security library for React Native applications that helps protect against various security threats including root detection, malware, tampering, and more.
41 lines • 1.9 kB
TypeScript
export type SecurityCheckState = 'WARNING' | 'ERROR' | 'DISABLED';
export interface SecurityConfig {
rootCheckState?: SecurityCheckState;
developerOptionsCheckState?: SecurityCheckState;
malwareCheckState?: SecurityCheckState;
tamperingCheckState?: SecurityCheckState;
networkSecurityCheckState?: SecurityCheckState;
screenSharingCheckState?: SecurityCheckState;
appSpoofingCheckState?: SecurityCheckState;
keyloggerCheckState?: SecurityCheckState;
ongoingCallCheckState?: SecurityCheckState;
certificateMatchingCheckState?: SecurityCheckState;
expectedPackageName?: string;
expectedCertificateHash?: string;
}
export interface SecurityCheckResult {
status: SecurityCheckState;
message: string;
}
export declare function initialize(config?: SecurityConfig): Promise<void>;
export declare function checkAll(): Promise<SecurityCheckResult>;
export declare function checkRoot(): Promise<SecurityCheckResult>;
export declare function checkDeveloperOptions(): Promise<SecurityCheckResult>;
export declare function checkMalware(): Promise<SecurityCheckResult>;
export declare function checkNetwork(): Promise<SecurityCheckResult>;
export declare function checkScreenMirroring(): Promise<SecurityCheckResult>;
export declare function checkApplicationSpoofing(): Promise<SecurityCheckResult>;
export declare function checkKeyLogger(): Promise<SecurityCheckResult>;
declare const _default: {
initialize: typeof initialize;
checkAll: typeof checkAll;
checkRoot: typeof checkRoot;
checkDeveloperOptions: typeof checkDeveloperOptions;
checkMalware: typeof checkMalware;
checkNetwork: typeof checkNetwork;
checkScreenMirroring: typeof checkScreenMirroring;
checkApplicationSpoofing: typeof checkApplicationSpoofing;
checkKeyLogger: typeof checkKeyLogger;
};
export default _default;
//# sourceMappingURL=index.d.ts.map