/** * Strip path separators from an arbitrary name so it can be used as a * basename without risk of `../` escape or cross-directory writes. */ export declare function sanitizeFileName(name: string): string; /** * Resolve the final output path for a write operation. * * - No `provided`: save to cwd with `baseName` * - `provided` with trailing slash or an existing directory: join with `baseName` * - Otherwise: use `provided` as the full file path */ export declare function resolveOutputPath(provided: string | undefined, baseName: string): Promise;