import { SourcePath } from '../common/types'; export declare const ensureFileExists: (filePath: string) => Promise; /** * Traverse up a file path and search for the given file name. Always returns an absolute path. * * @param start File or folder path to start searching from * @param fileName File name to search for */ export declare function searchUp(start: SourcePath, fileName: string): string | undefined; /** * Walk every path segment between the root (exclusive) and the destination * (inclusive) and return the first one that is a symbolic link, or undefined if none is. * * Both `createWriteStream` and recursive `mkdir` follow symlinks, so a link planted anywhere * along the destination path can redirect writes outside the root. The root is assumed trusted * and is not checked. */ export declare const findSymlinkOnPath: (root: string, destination: string) => Promise; /** Synchronous variant of {@link findSymlinkOnPath} for use in sync call-chains. */ export declare const findSymlinkOnPathSync: (root: string, destination: string) => string | undefined;