/** * Ensures that the hard link exists. * If the directory structure does not exist, it is created. * @param source The path to the source file or directory. * @param destination The path to the destination link. * @example * ```javascript * import { ensureLinkSync } from "@visulima/fs"; * import { join } from "node:path"; * * // ensure the link /tmp/foo/bar-link.txt points to /tmp/foo/bar.txt * ensureLinkSync(join("/tmp", "foo", "bar.txt"), join("/tmp", "foo", "bar-link.txt")); * ``` */ declare const ensureLinkSync: (source: URL | string, destination: URL | string) => void; export default ensureLinkSync;