import 'reflect-metadata'; import { Subject } from 'rxjs'; export declare namespace UtilsEtcHosts { const SIMULATE_DOMAIN_TAG = "@simulatedDomainByTaon"; interface EtchostEntry { lineIp: string; domains: string[]; comment: string; } const getPath: () => string; const getLines: () => string[]; const getTokensData: (line: string) => { comment: string; domains: string[]; lineIp: string; }; const specificEntryExists: (domain: string, ip: string) => boolean; const getEntriesByDomain: (domain: string) => UtilsEtcHosts.EtchostEntry[]; const getEntryByComment: (commentOfEntry: string) => UtilsEtcHosts.EtchostEntry[]; /** * Returns all host entries for a given IP address. */ const getEntriesByIp: (ip: string) => UtilsEtcHosts.EtchostEntry[]; const removeEntryByDomain: (domain: string) => void; const simulateDomain: (domainOrDomains: string | string[], options?: { triggerRevertChangesToEtcHosts?: Subject; }) => Promise; }