///
import { IExecutable, Quality } from './index';
import { promises as fsPromises } from 'fs';
/**
* Returns whether the user can access the given file path.
*/
export declare function canAccess({ access }: typeof fsPromises, file: string | undefined | null): Promise;
/**
* Escape regex special characters from the string.
*/
export declare function escapeRegexSpecialChars(str: string, except?: string): string;
/**
* Gets the configured Chrome path, if any.
*/
export declare function preferredChromePath(fs: typeof fsPromises, env: NodeJS.ProcessEnv): Promise;
/**
* Gets the configured Edge path, if any.
*/
export declare function preferredEdgePath(fs: typeof fsPromises, env: NodeJS.ProcessEnv): Promise;
export interface IPriority {
regex: RegExp;
weight: number;
quality: Quality;
}
/**
* Sorts the set of installations,
*/
export declare function sort(installations: Iterable, priorities: IPriority[]): IExecutable[];
/**
* Finds binaries for Windows platforms by looking for the given path
* suffixes in each of the local app data and program files directories
* on the machine, returning complete absolute paths that match.
*/
export declare function findWindowsCandidates(env: NodeJS.ProcessEnv, fs: typeof fsPromises, suffixes: {
name: string;
type: Quality;
}[]): Promise;