2024-08-05 20:33:00 +10:00
|
|
|
import { ConfigTypes } from "@spt/models/enums/ConfigTypes";
|
|
|
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
|
|
|
import { JsonUtil } from "@spt/utils/JsonUtil";
|
|
|
|
import { VFS } from "@spt/utils/VFS";
|
2023-06-11 15:10:34 +10:00
|
|
|
export declare class ConfigServer {
|
|
|
|
protected logger: ILogger;
|
|
|
|
protected vfs: VFS;
|
|
|
|
protected jsonUtil: JsonUtil;
|
|
|
|
protected configs: Record<string, any>;
|
2023-10-09 20:21:00 +11:00
|
|
|
protected readonly acceptableFileExtensions: string[];
|
2023-06-11 15:10:34 +10:00
|
|
|
constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil);
|
|
|
|
getConfig<T>(configType: ConfigTypes): T;
|
|
|
|
getConfigByString<T>(configType: string): T;
|
|
|
|
initialize(): void;
|
|
|
|
}
|