export type ZipPathMode = "legacy" | "posix" | "safe"; export interface ZipPathOptions { /** * - "legacy": replace backslashes with '/', strip leading '/' * - "posix": also normalizes '.' and '..' segments using POSIX rules * - "safe": like "posix" but rejects absolute paths and any remaining '..' traversal */ mode?: ZipPathMode; /** If true, ensures a single leading '/'. */ prependSlash?: boolean; /** If true, strips a Windows drive prefix like `C:`. Default: true for posix/safe. */ stripDrive?: boolean; } export declare function normalizeZipPath(pathName: string, options?: ZipPathOptions): string; export declare function joinZipPath(options: ZipPathOptions, ...parts: string[]): string;