export declare function unscopedPackageName(name: string): string;
export declare function safeDirName(input: string): string;
export declare function safePathSegmentHashed(input: string): string;
export declare function resolveSafeInstallDir(params: {
    baseDir: string;
    id: string;
    invalidNameMessage: string;
}): {
    ok: true;
    path: string;
} | {
    ok: false;
    error: string;
};
