type Realpath = (path: string) => Promise; type Readlink = (path: string) => Promise; export type CanonicalPathFs = { realpath: Realpath; readlink: Readlink; }; type PathIdentity = { dev: number; ino: number; }; export type Stat = (path: string) => Promise; export declare function resolveCanonicalPath({ realpath, readlink }: CanonicalPathFs, path: string): Promise; export declare function containsPath(stat: Stat, canonicalRoot: string, canonicalPath: string): Promise; export declare function isSamePath(stat: Stat, canonicalLeft: string, canonicalRight: string): Promise; export {};