1 |
|
2 | import { type Stats } from 'node:fs';
|
3 | import { MkdirError } from './mkdir.js';
|
4 | import { Parser } from './parse.js';
|
5 | import { TarOptions } from './options.js';
|
6 | import { PathReservations } from './path-reservations.js';
|
7 | import { ReadEntry } from './read-entry.js';
|
8 | import { WarnData } from './warn-method.js';
|
9 | declare const ONENTRY: unique symbol;
|
10 | declare const CHECKFS: unique symbol;
|
11 | declare const CHECKFS2: unique symbol;
|
12 | declare const PRUNECACHE: unique symbol;
|
13 | declare const ISREUSABLE: unique symbol;
|
14 | declare const MAKEFS: unique symbol;
|
15 | declare const FILE: unique symbol;
|
16 | declare const DIRECTORY: unique symbol;
|
17 | declare const LINK: unique symbol;
|
18 | declare const SYMLINK: unique symbol;
|
19 | declare const HARDLINK: unique symbol;
|
20 | declare const UNSUPPORTED: unique symbol;
|
21 | declare const CHECKPATH: unique symbol;
|
22 | declare const MKDIR: unique symbol;
|
23 | declare const ONERROR: unique symbol;
|
24 | declare const PENDING: unique symbol;
|
25 | declare const PEND: unique symbol;
|
26 | declare const UNPEND: unique symbol;
|
27 | declare const ENDED: unique symbol;
|
28 | declare const MAYBECLOSE: unique symbol;
|
29 | declare const SKIP: unique symbol;
|
30 | declare const DOCHOWN: unique symbol;
|
31 | declare const UID: unique symbol;
|
32 | declare const GID: unique symbol;
|
33 | declare const CHECKED_CWD: unique symbol;
|
34 | export declare class Unpack extends Parser {
|
35 | [ENDED]: boolean;
|
36 | [CHECKED_CWD]: boolean;
|
37 | [PENDING]: number;
|
38 | reservations: PathReservations;
|
39 | transform?: TarOptions['transform'];
|
40 | writable: true;
|
41 | readable: false;
|
42 | dirCache: Exclude<TarOptions['dirCache'], undefined>;
|
43 | uid?: number;
|
44 | gid?: number;
|
45 | setOwner: boolean;
|
46 | preserveOwner: boolean;
|
47 | processGid?: number;
|
48 | processUid?: number;
|
49 | maxDepth: number;
|
50 | forceChown: boolean;
|
51 | win32: boolean;
|
52 | newer: boolean;
|
53 | keep: boolean;
|
54 | noMtime: boolean;
|
55 | preservePaths: boolean;
|
56 | unlink: boolean;
|
57 | cwd: string;
|
58 | strip: number;
|
59 | processUmask: number;
|
60 | umask: number;
|
61 | dmode: number;
|
62 | fmode: number;
|
63 | chmod: boolean;
|
64 | constructor(opt?: TarOptions);
|
65 | warn(code: string, msg: string | Error, data?: WarnData): void;
|
66 | [MAYBECLOSE](): void;
|
67 | [CHECKPATH](entry: ReadEntry): boolean;
|
68 | [ONENTRY](entry: ReadEntry): void;
|
69 | [ONERROR](er: Error, entry: ReadEntry): void;
|
70 | [MKDIR](dir: string, mode: number, cb: (er?: null | MkdirError, made?: string) => void): void;
|
71 | [DOCHOWN](entry: ReadEntry): boolean;
|
72 | [UID](entry: ReadEntry): number | undefined;
|
73 | [GID](entry: ReadEntry): number | undefined;
|
74 | [FILE](entry: ReadEntry, fullyDone: () => void): void;
|
75 | [DIRECTORY](entry: ReadEntry, fullyDone: () => void): void;
|
76 | [UNSUPPORTED](entry: ReadEntry): void;
|
77 | [SYMLINK](entry: ReadEntry, done: () => void): void;
|
78 | [HARDLINK](entry: ReadEntry, done: () => void): void;
|
79 | [PEND](): void;
|
80 | [UNPEND](): void;
|
81 | [SKIP](entry: ReadEntry): void;
|
82 | [ISREUSABLE](entry: ReadEntry, st: Stats): boolean;
|
83 | [CHECKFS](entry: ReadEntry): void;
|
84 | [PRUNECACHE](entry: ReadEntry): void;
|
85 | [CHECKFS2](entry: ReadEntry, fullyDone: (er?: Error) => void): void;
|
86 | [MAKEFS](er: null | undefined | Error, entry: ReadEntry, done: () => void): void;
|
87 | [LINK](entry: ReadEntry, linkpath: string, link: 'link' | 'symlink', done: () => void): void;
|
88 | }
|
89 | export declare class UnpackSync extends Unpack {
|
90 | sync: true;
|
91 | [MAKEFS](er: null | Error | undefined, entry: ReadEntry): void;
|
92 | [CHECKFS](entry: ReadEntry): void;
|
93 | [FILE](entry: ReadEntry, done: () => void): void;
|
94 | [DIRECTORY](entry: ReadEntry, done: () => void): void;
|
95 | [MKDIR](dir: string, mode: number): unknown;
|
96 | [LINK](entry: ReadEntry, linkpath: string, link: 'link' | 'symlink', done: () => void): void;
|
97 | }
|
98 | export {};
|
99 |
|
\ | No newline at end of file |