-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbundle.d.ts
51 lines (50 loc) · 1.46 KB
/
bundle.d.ts
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
export interface Dxf {
HEADER?: {
[variableName in string]: DxfRecord;
};
CLASSES?: {
[className in string]: DxfRecord;
};
TABLES?: {
[tableName in string]: DxfRecord[];
};
BLOCKS?: {
[blockName in string]: DxfRecord[];
};
ENTITIES?: DxfRecord[];
OBJECTS?: DxfRecord[];
ACDSDATA?: DxfRecord[][];
}
export interface DxfReadonly {
readonly HEADER?: {
readonly [variableName in string]: DxfRecordReadonly;
};
readonly CLASSES?: {
readonly [className in string]: DxfRecordReadonly;
};
readonly TABLES?: {
readonly [tableName in string]: readonly DxfRecordReadonly[];
};
readonly BLOCKS?: {
readonly [blockName in string]: readonly DxfRecordReadonly[];
};
readonly ENTITIES?: readonly DxfRecordReadonly[];
readonly OBJECTS?: readonly DxfRecordReadonly[];
readonly ACDSDATA?: readonly (readonly DxfRecordReadonly[])[];
}
export type DxfRecord = [
number,
string
][];
export type DxfRecordReadonly = readonly (readonly [
number,
string
])[];
export declare const parseDxfFileArrayBuffer: (dxfArrayBuffer: ArrayBuffer, options?: {
readonly encoding?: string;
}) => Dxf;
export declare const parseDxfFileString: (dxfString: string) => Dxf;
export declare const createDxfFileString: (dxf: DxfReadonly) => string;
export declare const getGroupCodeValue: (record: DxfRecordReadonly | undefined, groupCode: number) => string | undefined;
export declare const getGroupCodeValues: (record: DxfRecordReadonly | undefined, groupCode: number) => string[];
export {};