2019-05-20 09:48:53 +00:00
|
|
|
declare module "embark-utils" {
|
2019-08-30 20:50:20 +00:00
|
|
|
import {Logger} from "embark";
|
|
|
|
|
|
|
|
export class File {
|
|
|
|
public path: string;
|
2019-05-20 09:48:53 +00:00
|
|
|
constructor(options: any);
|
2019-08-30 20:50:20 +00:00
|
|
|
public prepareForCompilation(isCoverage?: boolean): any;
|
2019-05-20 09:48:53 +00:00
|
|
|
}
|
|
|
|
|
2019-05-21 12:56:42 +00:00
|
|
|
function anchoredValue(anchor: string|null, value: string): string;
|
|
|
|
function anchoredPath(anchor: string|null, ...args: string[]): string;
|
2019-05-20 09:48:53 +00:00
|
|
|
function compact(array: any): any;
|
|
|
|
function checkIsAvailable(url: string, callback: any): void;
|
|
|
|
function dockerHostSwap(host: string): string;
|
2019-08-30 20:50:20 +00:00
|
|
|
function buildUrl(protocol: string, host: string, port: number, type: string): string;
|
2019-11-11 13:41:40 +00:00
|
|
|
function buildUrlFromConfig(config: any): string;
|
|
|
|
function canonicalHost(host: string): string;
|
2019-05-20 09:48:53 +00:00
|
|
|
function dappPath(...names: string[]): string;
|
2019-05-21 12:56:42 +00:00
|
|
|
function diagramPath(...names: string[]): string;
|
2019-05-20 09:48:53 +00:00
|
|
|
function escapeHtml(message: any): string;
|
|
|
|
function embarkPath(...names: string[]): string;
|
|
|
|
function exit(code?: any): void;
|
2019-09-16 20:39:22 +00:00
|
|
|
function findMonorepoPackageFromRoot(pkgName: string, prefilter?: null | ((pkgName: string) => (pkgJsonPath: string) => boolean)): Promise<string>;
|
|
|
|
function findMonorepoPackageFromRootSync(pkgName: string, prefilter?: null | ((pkgName: string) => (pkgJsonPath: string) => boolean)): string;
|
2019-05-20 09:48:53 +00:00
|
|
|
function findNextPort(port: number): Promise<number>;
|
2019-05-21 13:30:33 +00:00
|
|
|
function isEs6Module(module: any): boolean;
|
2019-09-16 20:39:22 +00:00
|
|
|
function isInsideMonorepo(): Promise<boolean>;
|
|
|
|
function isInsideMonorepoSync(): boolean;
|
|
|
|
function monorepoRootPath(): Promise<string>;
|
|
|
|
function monorepoRootPathSync(): string;
|
2019-05-20 09:48:53 +00:00
|
|
|
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;
|
2019-05-21 12:56:42 +00:00
|
|
|
function pkgPath(...names: string[]): string;
|
2019-05-20 09:48:53 +00:00
|
|
|
function removePureView(dir: string): void;
|
2019-08-30 20:50:20 +00:00
|
|
|
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[];
|
|
|
|
}
|
2019-05-20 09:48:53 +00:00
|
|
|
}
|