archive.d.ts 565 B

123456789101112131415161718192021
  1. import { CompressionLevel } from "../core";
  2. export interface ArchiveOptions {
  3. compression?: CompressionLevel | null;
  4. /**
  5. * @default false
  6. */
  7. withoutDir?: boolean;
  8. /**
  9. * @default true
  10. */
  11. solid?: boolean;
  12. /**
  13. * @default true
  14. */
  15. isArchiveHeaderCompressed?: boolean;
  16. dictSize?: number;
  17. excluded?: Array<string> | null;
  18. method?: "Copy" | "LZMA" | "Deflate" | "DEFAULT";
  19. isRegularFile?: boolean;
  20. }
  21. export declare function compute7zCompressArgs(format: string, options?: ArchiveOptions): string[];