Blame view

天文台pc/tianwentai-ui/node_modules/tar/dist/esm/pack.d.ts 3.56 KB
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
  import { type Stats } from 'fs';
  import { WriteEntry, WriteEntrySync, WriteEntryTar } from './write-entry.js';
  export declare class PackJob {
      path: string;
      absolute: string;
      entry?: WriteEntry | WriteEntryTar;
      stat?: Stats;
      readdir?: string[];
      pending: boolean;
      ignore: boolean;
      piped: boolean;
      constructor(path: string, absolute: string);
  }
  import { Minipass } from 'minipass';
  import * as zlib from 'minizlib';
  import { Yallist } from 'yallist';
  import { ReadEntry } from './read-entry.js';
  import type { WarnEvent } from './warn-method.js';
  import { type WarnData, type Warner } from './warn-method.js';
  declare const ONSTAT: unique symbol;
  declare const ENDED: unique symbol;
  declare const QUEUE: unique symbol;
  declare const CURRENT: unique symbol;
  declare const PROCESS: unique symbol;
  declare const PROCESSING: unique symbol;
  declare const PROCESSJOB: unique symbol;
  declare const JOBS: unique symbol;
  declare const JOBDONE: unique symbol;
  declare const ADDFSENTRY: unique symbol;
  declare const ADDTARENTRY: unique symbol;
  declare const STAT: unique symbol;
  declare const READDIR: unique symbol;
  declare const ONREADDIR: unique symbol;
  declare const PIPE: unique symbol;
  declare const ENTRY: unique symbol;
  declare const ENTRYOPT: unique symbol;
  declare const WRITEENTRYCLASS: unique symbol;
  declare const WRITE: unique symbol;
  declare const ONDRAIN: unique symbol;
  import type { TarOptions } from './options.js';
  export declare class Pack extends Minipass<Buffer, ReadEntry | string, WarnEvent<Buffer>> implements Warner {
      sync: boolean;
      opt: TarOptions;
      cwd: string;
      maxReadSize?: number;
      preservePaths: boolean;
      strict: boolean;
      noPax: boolean;
      prefix: string;
      linkCache: Exclude<TarOptions['linkCache'], undefined>;
      statCache: Exclude<TarOptions['statCache'], undefined>;
      file: string;
      portable: boolean;
      zip?: zlib.BrotliCompress | zlib.Gzip | zlib.ZstdCompress;
      readdirCache: Exclude<TarOptions['readdirCache'], undefined>;
      noDirRecurse: boolean;
      follow: boolean;
      noMtime: boolean;
      mtime?: Date;
      filter: Exclude<TarOptions['filter'], undefined>;
      jobs: number;
      [WRITEENTRYCLASS]: typeof WriteEntry | typeof WriteEntrySync;
      onWriteEntry?: (entry: WriteEntry) => void;
      [QUEUE]: Yallist<PackJob>;
      [JOBS]: number;
      [PROCESSING]: boolean;
      [ENDED]: boolean;
      constructor(opt?: TarOptions);
      [WRITE](chunk: Buffer): boolean;
      add(path: string | ReadEntry): this;
      end(cb?: () => void): this;
      end(path: string | ReadEntry, cb?: () => void): this;
      end(path: string | ReadEntry, encoding?: Minipass.Encoding, cb?: () => void): this;
      write(path: string | ReadEntry): boolean;
      [ADDTARENTRY](p: ReadEntry): void;
      [ADDFSENTRY](p: string): void;
      [STAT](job: PackJob): void;
      [ONSTAT](job: PackJob, stat: Stats): void;
      [READDIR](job: PackJob): void;
      [ONREADDIR](job: PackJob, entries: string[]): void;
      [PROCESS](): void;
      get [CURRENT](): PackJob | undefined;
      [JOBDONE](_job: PackJob): void;
      [PROCESSJOB](job: PackJob): void;
      [ENTRYOPT](job: PackJob): TarOptions;
      [ENTRY](job: PackJob): WriteEntry | undefined;
      [ONDRAIN](): void;
      [PIPE](job: PackJob): void;
      pause(): void;
      warn(code: string, message: string | Error, data?: WarnData): void;
  }
  export declare class PackSync extends Pack {
      sync: true;
      constructor(opt: TarOptions);
      pause(): void;
      resume(): void;
      [STAT](job: PackJob): void;
      [READDIR](job: PackJob): void;
      [PIPE](job: PackJob): void;
  }
  export {};
  //# sourceMappingURL=pack.d.ts.map