import * as net from "net"; import { EventEmitter } from "events"; import * as crypto from "crypto"; import { IDictionary, IDeferPromise, Server, IProjectFilesConfig } from "./declarations"; import { IAndroidSigningData } from "../definitions/build"; export declare function stripComments(content: string): string; export declare function doesCurrentNpmCommandMatch(patterns?: RegExp[]): boolean; export declare function someWithRegExps(array: string[], patterns: RegExp[]): boolean; export declare function getCurrentNpmCommandArgv(): string[]; export declare function isInstallingNativeScriptGlobally(): boolean; export declare function createRegExp(input: string, opts?: string): RegExp; export declare function regExpEscape(input: string): string; export declare function getShortPluginName(pluginName: string): string; export declare function executeActionByChunks(initialData: T[] | IDictionary, chunkSize: number, elementAction: (element: T, key?: string | number) => Promise): Promise; export declare function deferPromise(): IDeferPromise; export declare function settlePromises(promises: Promise[]): Promise; export declare function getPropertyName(func: Function): string; export declare function quoteString(s: string): string; export declare function createGUID(useBraces?: boolean): string; export declare function stringReplaceAll(inputString: string, find: any, replace: string): string; export declare function isRequestSuccessful(request: Server.IRequestResponseData): boolean; export declare function isResponseRedirect(response: Server.IRequestResponseData): boolean; export declare function formatListOfNames(names: string[], conjunction?: string): string; export declare function getRelativeToRootPath(rootPath: string, filePath: string): string; export declare function setIsInteractive(override?: () => boolean): void; export declare function isInteractive(): boolean; export declare function toBoolean(str: any): boolean; export declare function isTruthyEnvFlag(value: string | undefined): boolean; export declare function block(operation: () => void): void; export declare function isNumberWithoutExponent(n: any): boolean; export declare function fromWindowsRelativePathToUnix(windowsRelativePath: string): string; export declare function isNullOrWhitespace(input: any): boolean; export declare function getCurrentEpochTime(): number; export declare function sleep(ms: number): Promise; export declare function createTable(headers: string[], data: string[][]): any; export declare function getMessageWithBorders(message: string, spanLength?: number): string; export declare function remove(array: T[], predicate: (element: T) => boolean, numberOfElements?: number): T[]; export declare function trimSymbol(str: string, symbol: string): string; export declare function parseJson(data: string): any; export declare function getFuturesResults(promises: Promise[], predicate: (element: any) => boolean): Promise; export declare function appendZeroesToVersion(version: string, requiredVersionLength: number): string; export declare function decorateMethod(before: (method1: any, self1: any, args1: any[]) => Promise, after: (method2: any, self2: any, result2: any, args2: any[]) => Promise): (target: Object, propertyKey: string, descriptor: TypedPropertyDescriptor) => void; export declare function hook(commandName: string): (target: Object, propertyKey: string, descriptor: TypedPropertyDescriptor) => void; export declare function isPromise(candidateFuture: any): boolean; export declare function attachAwaitDetach(eventName: string, eventEmitter: EventEmitter, eventHandler: (...args: any[]) => void, operation: Promise): Promise; export declare function connectEventually(factory: () => Promise, handler: (_socket: net.Socket) => void): Promise; export declare function getHash(str: string, options?: { algorithm?: string; encoding?: crypto.BinaryToTextEncoding; }): string; export declare function connectEventuallyUntilTimeout(factory: () => Promise, timeout: number): Promise; export declare function getProjectFilesConfig(opts: { isReleaseBuild: boolean; }): IProjectFilesConfig; export declare function getPidFromiOSSimulatorLogs(applicationIdentifier: string, logLine: string): string; export declare function getValueFromNestedObject(obj: any, key: string): any; export declare function getWinRegPropertyValue(key: string, propertyName: string): Promise; export declare function stringify(value: any, replacer?: (key: string, value: any) => any, space?: string | number): string; export declare function getFixedLengthDateString(): string; export declare function getFormattedDateComponent(component: number): string; export declare function getFormattedMilliseconds(date: Date): string; export declare function annotate(fn: any): any; export declare function hasValidAndroidSigning(signingData: Partial): boolean;