/// <reference types="node" />
import type { access as _access } from "fs/promises";
/**
 * @description It returns a rejected promise if the provided path corresponds to a file or directory,
 * otherwise it returns a void fulfilled promise.
 */
export declare function rejectIfPathExistsFactory(fs: {
    promises: {
        access: typeof _access;
    };
}): (path: string) => Promise<void>;
export declare const _errorMessages: {
    pathExist: (path: string) => string;
};
