/** * @module "ethpm/installer/truffle" */ /// import { Resolver } from "../../package/resolver"; import { URL } from "url"; import * as installer from "./.."; import * as config from "../../config"; import * as t from 'io-ts'; interface IpfsOptions { host: string; port: number | string; protocol: string; } interface InstallerOptions { workingDirectory: string; ipfs: IpfsOptions; } export declare class TruffleService implements installer.Service { workingDir: string; ethpmDir: string; lockfilePath: string; resolver: Resolver; ipfsOptions: any; constructor(options: InstallerOptions); install(contentURI: URL, registryAddress: string, alias?: string): Promise; } export default class TruffleConnector extends config.Connector { optionsType: t.TypeC<{ workingDirectory: t.StringC; ipfs: t.TypeC<{ host: t.StringC; port: t.UnionC<[t.NumberC, t.StringC]>; protocol: t.StringC; }>; }>; init(options: InstallerOptions): Promise; } export {};