embark/packages/embark-utils/index.d.ts

35 lines
1.5 KiB
TypeScript

declare module "embark-utils" {
import {Logger} from "embark";
export class File {
public path: string;
constructor(options: any);
public prepareForCompilation(isCoverage?: boolean): any;
}
function anchoredValue(anchor: string|null, value: string): string;
function anchoredPath(anchor: string|null, ...args: string[]): string;
function compact(array: any): any;
function checkIsAvailable(url: string, callback: any): void;
function dockerHostSwap(host: string): string;
function buildUrl(protocol: string, host: string, port: number, type: string): string;
function dappPath(...names: string[]): string;
function diagramPath(...names: string[]): string;
function escapeHtml(message: any): string;
function embarkPath(...names: string[]): string;
function exit(code?: any): void;
function findNextPort(port: number): Promise<number>;
function isEs6Module(module: any): boolean;
function jsonFunctionReplacer(key: any, value: any): any;
function fuzzySearch(text: string, list: any, filter: any): any;
function getExternalContractUrl(file: string, provideUrl: string): string;
function recursiveMerge(target: any, source: any): any;
function pkgPath(...names: string[]): string;
function removePureView(dir: string): void;
function pingEndpoint(host: string, port: number, type: string, protocol: string, origin: string, callback: any): void;
export class AccountParser {
public static parseAccountsConfig(accountsConfig: any[], web3: any, dappPath: string, logger: Logger, nodeAccounts?: any[]): any[];
}
}