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