2024-02-23 15:06:00 -07:00
|
|
|
import { ConfigTypes } from "@spt-aki/models/enums/ConfigTypes";
|
|
|
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
|
|
|
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
|
|
import { VFS } from "@spt-aki/utils/VFS";
|
2023-08-17 19:49:16 -06:00
|
|
|
export declare class ConfigServer {
|
|
|
|
protected logger: ILogger;
|
|
|
|
protected vfs: VFS;
|
|
|
|
protected jsonUtil: JsonUtil;
|
|
|
|
protected configs: Record<string, any>;
|
2024-02-23 15:06:00 -07:00
|
|
|
protected readonly acceptableFileExtensions: string[];
|
2023-08-17 19:49:16 -06:00
|
|
|
constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil);
|
|
|
|
getConfig<T>(configType: ConfigTypes): T;
|
|
|
|
getConfigByString<T>(configType: string): T;
|
|
|
|
initialize(): void;
|
|
|
|
}
|