UNPKG

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.

43 lines 2.03 kB
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>; export declare function getAndroidIntegrityToken(): Promise<string>; 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; getAndroidIntegrityToken: typeof getAndroidIntegrityToken; }; export default _default; //# sourceMappingURL=index.d.ts.map