import * as Bluebird from 'bluebird'; import DockerToolbelt = require('docker-toolbelt'); // This is the EnvVarObject from src/lib/types, but it seems we cannot // reference it relatively. Just redefine it as it's simple and won't change // often interface EnvVarObject { [name: string]: string; } interface TaggedRepoImage { repo: string; tag: string; } declare class DockerUtils extends DockerToolbelt { constructor(opts: any); getRepoAndTag(image: string): Bluebird; fetchDeltaWithProgress(imgDest: string, fullDeltaOpts: any, onProgress: (args: any) => void): Bluebird; fetchImageWithProgress( image: string, config: { uuid: string, currentApiKey: string }, onProgress: (args: any) => void, ): Bluebird; getImageEnv(id: string): Bluebird; getNetworkGateway(netName: string): Bluebird; } export = DockerUtils;