import path from 'node:path'; /** Expand a leading `~` using `$HOME` (or the OS home) . */ export declare function expandHome(input: string, env?: NodeJS.ProcessEnv): string; /** Expand `$NAME` and `${NAME}` for whitelisted variables only. */ export declare function expandEnvVars(input: string, env?: NodeJS.ProcessEnv): string; /** Expand home first, then whitelisted variables. */ export declare function expandPathString(input: string, env?: NodeJS.ProcessEnv): string; /** Path flavor used for resolution; lets Windows rules be unit-tested anywhere. */ export declare function pathApi(platform: NodeJS.Platform): typeof path.win32; /** Windows matching uses forward slashes; other platforms are left alone. */ export declare function toMatchForm(input: string, platform: NodeJS.Platform): string; export interface PathCandidateOptions { cwd: string; platform: NodeJS.Platform; env?: NodeJS.ProcessEnv; } /** * Every string a path glob may be matched against: * - the normalized absolute path, * - its cwd-relative form (so relative patterns work), * - the `realpath` of an existing path and that path relative to cwd * (so a symlink cannot hide a sensitive target). * The candidate list is deduplicated; non-existent paths fall back to the * normalized absolute form only. */ export declare function pathCandidates(raw: string, options: PathCandidateOptions): string[]; //# sourceMappingURL=paths.d.ts.map