export interface PathSafetyOptions { rootDir: string; } export declare class UnsafePathError extends Error { constructor(message: string); } /** * Resolve a user-supplied relative path against rootDir, rejecting any input * that escapes the root via absolute paths, .. segments or NUL bytes. */ export declare function resolveOutputPath(userPath: string, options: PathSafetyOptions): string; /** * Sanitize a filename: drop everything before the last / or \ (platform * independent), drop control characters, replace any non-[A-Za-z0-9._-] with * underscore. Returns "unnamed" if the result is empty. */ export declare function sanitizeFilename(name: string): string; //# sourceMappingURL=path-safety.d.ts.map