export declare class Registry { registryUrl?: string | undefined; authToken?: string | undefined; registryEntryLocal: string; registryEntryGlobal: string; private env; constructor(registryUrl?: string | undefined, authToken?: string | undefined); /** * Return a properly formatted --registry string */ getRegistryParameter(): string; /** * Compare this.registryUrl against npm configs and write registry entry "registry" entry to /.npmrc * if either is not equal * * @param packageDirectory */ setNpmRegistry(packageDirectory: string): Promise; /** * Examine the current npm configs to see if the registry has * the authToken set. * If not write the authToken to /.npmrc * * @param packageDirectory */ setNpmAuth(packageDirectory: string): Promise; loadNpmConfigs(): void; readNpmrc(packageDir: string): Promise; writeNpmrc(packageDir: string, npmrc: string[]): Promise; private normalizeRegistryUrl; }