1 |
|
2 | import type { EntryTypeCode, EntryTypeName } from './types.js';
|
3 | export type HeaderData = {
|
4 | path?: string;
|
5 | mode?: number;
|
6 | uid?: number;
|
7 | gid?: number;
|
8 | size?: number;
|
9 | cksum?: number;
|
10 | type?: EntryTypeName | 'Unsupported';
|
11 | linkpath?: string;
|
12 | uname?: string;
|
13 | gname?: string;
|
14 | devmaj?: number;
|
15 | devmin?: number;
|
16 | atime?: Date;
|
17 | ctime?: Date;
|
18 | mtime?: Date;
|
19 | charset?: string;
|
20 | comment?: string;
|
21 | dev?: number;
|
22 | ino?: number;
|
23 | nlink?: number;
|
24 | };
|
25 | export declare class Header implements HeaderData {
|
26 | #private;
|
27 | cksumValid: boolean;
|
28 | needPax: boolean;
|
29 | nullBlock: boolean;
|
30 | block?: Buffer;
|
31 | path?: string;
|
32 | mode?: number;
|
33 | uid?: number;
|
34 | gid?: number;
|
35 | size?: number;
|
36 | cksum?: number;
|
37 | linkpath?: string;
|
38 | uname?: string;
|
39 | gname?: string;
|
40 | devmaj: number;
|
41 | devmin: number;
|
42 | atime?: Date;
|
43 | ctime?: Date;
|
44 | mtime?: Date;
|
45 | charset?: string;
|
46 | comment?: string;
|
47 | constructor(data?: Buffer | HeaderData, off?: number, ex?: HeaderData, gex?: HeaderData);
|
48 | decode(buf: Buffer, off: number, ex?: HeaderData, gex?: HeaderData): void;
|
49 | encode(buf?: Buffer, off?: number): boolean;
|
50 | get type(): EntryTypeName;
|
51 | get typeKey(): EntryTypeCode | 'Unsupported';
|
52 | set type(type: EntryTypeCode | EntryTypeName | 'Unsupported');
|
53 | }
|
54 | //# sourceMappingURL=header.d.ts.map |
\ | No newline at end of file |