/** Where named profiles live. Never returns a path outside this root. */ export declare function chromeProfilesRoot(): string; /** * Resolve a profile NAME to a directory inside `chromeProfilesRoot()`. * * Only the final path segment survives (`basename`), so `../..`, drive * letters, separators and UNC prefixes are stripped by construction rather * than by a blacklist. An empty/`..`/`.` result falls back to the default * profile. A final `resolve()` + containment assertion is kept as defence in * depth against Windows reparse points and future callers passing a path. * * Returns `undefined` when no name was given, so callers keep their * "use the default" branch unchanged. */ export declare function safeProfileDir(profileName: string | null | undefined): string | undefined; /** * Range-check a CDP port. * * Rejects non-integers and privileged ports (<1024), which a browser cannot * bind to without elevation anyway. Falls back to the caller's default so an * out-of-range value degrades to "the documented port" instead of failing. */ export declare function safeCdpPort(port: unknown, fallback: number): number;