export { outputResults, loadEnvs, log, timestamp, getOrInitRunTimestamp, getRunOutputDir, replaceEnvs, spawnCommand, inContainer, cleanTemp, calculateFractionalDifference, fetchFile, isRelativeUrl, appendQueryParams, redactUrlForOutput, assertUrlHostIsPublic, sanitizeFilesystemName, compileFilter, matchesFilter, selectSpecsForRun, findFreePort, runConcurrent, rollUpResults, createAppiumPool, };
declare function createAppiumPool(ports: number[]): {
    acquire(): Promise<number>;
    release(port: number): void;
};
declare function runConcurrent<T>(items: T[], limit: number, fn: (item: T) => Promise<void>): Promise<void>;
declare function rollUpResults(children: Array<{
    result?: string;
}>): string;
declare function findFreePort(): Promise<number>;
declare function compileFilter(patterns?: string[] | unknown): RegExp[];
declare function matchesFilter(id: string | undefined, filters: RegExp[]): boolean;
declare function selectSpecsForRun(specs: any[], config: any): any[];
declare function isRelativeUrl(url: string): boolean;
declare function appendQueryParams(url: string, params: Record<string, unknown> | undefined | null): string;
declare function cleanTemp(): void;
declare function sanitizeFilesystemName(name: string, fallback: string): string;
declare function redactUrlForOutput(value: string): string;
declare function assertUrlHostIsPublic(fileURL: string): Promise<void>;
declare function fetchFile(fileURL: string, opts?: {
    binary?: boolean;
}): Promise<{
    result: string;
    path: string;
    message?: undefined;
} | {
    result: string;
    message: unknown;
    path?: undefined;
}>;
declare function outputResults(path: string, results: any, config: any): Promise<void>;
/**
 * Loads environment variables from a specified .env file.
 *
 * @async
 * @param {string} envsFile - Path to the environment variables file.
 * @returns {Promise<Object>} An object containing the operation result.
 * @returns {string} returns.status - "PASS" if environment variables were loaded successfully, "FAIL" otherwise.
 * @returns {string} returns.description - A description of the operation result.
 */
declare function loadEnvs(envsFile: string): Promise<{
    status: string;
    description: string;
}>;
declare function log(config: any, level: string, message?: any): Promise<void>;
declare function replaceEnvs(stringOrObject: any): any;
declare function timestamp(): string;
declare function getOrInitRunTimestamp(config: any): string;
declare function getRunOutputDir(config: any): string;
/**
 * Executes a command in a child process using the `spawn` function from the `child_process` module.
 * @param {string} cmd - The command to execute.
 * @param {string[]} args - The arguments to pass to the command.
 * @param {object} options - The options for the command execution.
 * @param {boolean} options.workingDirectory - Directory in which to execute the command.
 * @param {boolean} options.debug - Whether to enable debug mode.
 * @returns {Promise<object>} A promise that resolves to an object containing the stdout, stderr, and exit code of the command.
 */
declare function spawnCommand(cmd: string, args?: string[], options?: any): Promise<{
    stdout: string;
    stderr: string;
    exitCode: unknown;
}>;
declare function inContainer(): Promise<boolean>;
/**
 * Calculates the fractional difference between two strings using Levenshtein distance.
 * @param {string} text1 - First string to compare
 * @param {string} text2 - Second string to compare
 * @returns {number} Fractional difference between 0 and 1, where 0 means identical
 *                   and 1 means completely different. Compare against maxVariation
 *                   thresholds directly (e.g., 0.1 for 10% tolerance).
 */
declare function calculateFractionalDifference(text1: string, text2: string): number;
//# sourceMappingURL=utils.d.ts.map