1 |
|
2 | export { ReadStream } from "fs";
|
3 | export { EventEmitter } from "events";
|
4 | export { Readable, Writable } from "stream";
|
5 |
|
6 |
|
7 |
|
8 | export declare class PlatformTools {
|
9 | |
10 |
|
11 |
|
12 | static type: "browser" | "node";
|
13 | |
14 |
|
15 |
|
16 | static getGlobalVariable(): any;
|
17 | |
18 |
|
19 |
|
20 |
|
21 | static load(name: string): any;
|
22 | |
23 |
|
24 |
|
25 | static pathNormalize(pathStr: string): string;
|
26 | |
27 |
|
28 |
|
29 | static pathExtname(pathStr: string): string;
|
30 | |
31 |
|
32 |
|
33 | static pathResolve(pathStr: string): string;
|
34 | |
35 |
|
36 |
|
37 | static fileExist(pathStr: string): boolean;
|
38 | static readFileSync(filename: string): Buffer;
|
39 | static appendFileSync(filename: string, data: any): void;
|
40 | static writeFile(path: string, data: any): Promise<void>;
|
41 | |
42 |
|
43 |
|
44 | static getEnvVariable(name: string): any;
|
45 | |
46 |
|
47 |
|
48 | static highlightSql(sql: string): string;
|
49 | |
50 |
|
51 |
|
52 | static highlightJson(json: string): string;
|
53 | |
54 |
|
55 |
|
56 | static logInfo(prefix: string, info: any): void;
|
57 | static logError(prefix: string, error: any): void;
|
58 | static logWarn(prefix: string, warning: any): void;
|
59 | static log(message: string): void;
|
60 | static warn(message: string): any;
|
61 | }
|