/** Expand a leading `~/` or lone `~` to `home`. Leaves other paths unchanged. */ export declare function expandHome(input: string, home: string): string; export type ResolveMemoryDirectoryOptions = { /** Config file that supplied the value (may be a symlink). */ configFilePath?: string; home: string; }; /** * Expand `~`, then resolve relative `memoryDirectory` from the realpath of the * config file's directory. Absolute paths are normalized. */ export declare function resolveMemoryDirectory(memoryDirectory: string, options: ResolveMemoryDirectoryOptions): string; /** * Join a memory file name under the resolved memory directory. * Refuses `..` / absolute escapes that leave the directory after resolve. */ export declare function resolveMemoryFilePath(memoryDirectory: string, fileName: string): string; /** True when `candidate` is `dir` or a path under `dir` (after normalize). */ export declare function isPathInsideDir(candidate: string, dir: string): boolean; //# sourceMappingURL=paths.d.ts.map