1 | declare class PropertiesFile {
|
2 | objs: {
|
3 | [key: string]: any;
|
4 | };
|
5 | constructor(...args: string[]);
|
6 | makeKeys(line: string): void;
|
7 | addFile(file: string): void;
|
8 | of(...args: string[]): void;
|
9 | get(key: string, defaultValue?: string): string | string[] | undefined;
|
10 | getLast(key: string, defaultValue?: string): string | undefined;
|
11 | getFirst(key: string, defaultValue?: string): string | undefined;
|
12 | getInt(key: string, defaultIntValue?: number): number | undefined;
|
13 | getFloat(key: string, defaultFloatValue?: number): number | undefined;
|
14 | getBoolean(key: string, defaultBooleanValue?: boolean): boolean;
|
15 | set(key: string, value: string): void;
|
16 | interpolate(s: string): string;
|
17 | getKeys(): string[];
|
18 | getMatchingKeys(matchstr: string): string[];
|
19 | reset(): void;
|
20 | }
|
21 | declare let of: (...args: any[]) => PropertiesFile;
|
22 | export { PropertiesFile, of };
|