import { Options } from '../index'; export interface Platform { addToTrustStores( certificatePath: string, options?: Options ): void | Promise; removeFromTrustStores(certificatePath: string): void; addDomainToHostFileIfMissing(domain: string): void | Promise; deleteProtectedFiles(filepath: string): void; readProtectedFile(filepath: string): string | Promise; writeProtectedFile(filepath: string, contents: string): void | Promise; } const PlatformClass = require(`./${process.platform}`).default; export default new PlatformClass() as Platform;