import { ModuleConfigs as IModuleConfigs, ModuleConfig as IModuleConfig, EcoModuleConfigurations } from "@ecoflow/types"; /** * Represents a configuration module that stores configurations for different modules. */ declare class ModuleConfig implements IModuleConfig { /** * A private property that stores EcoModuleConfigurations objects mapped by string keys. */ private _configs; /** * Constructor for creating a new instance of a class. * Initializes the _configs property as a new Map object. */ constructor(); /** * Clears all configurations stored in the object. * @returns void */ clear(): void; /** * Retrieves an EcoModuleConfigurations object from the internal map based on the provided id. * @param {string} id - The id of the EcoModuleConfigurations object to retrieve. * @returns {EcoModuleConfigurations | null} The EcoModuleConfigurations object if found, otherwise null. */ get(id: string): EcoModuleConfigurations | null; /** * Sets a new EcoModuleConfigurations value for the given id. * If the id already exists, the previous value will be replaced. * @param {string} id - The identifier for the configuration. * @param {EcoModuleConfigurations} value - The configuration value to set. * @returns void */ set(id: string, value: EcoModuleConfigurations): void; /** * Deletes a configuration with the given ID. * @param {string} id - The ID of the configuration to delete. * @returns {boolean} - True if the configuration was successfully deleted, false otherwise. */ delete(id: string): boolean; keys(): IterableIterator; /** * Getter method to retrieve all configurations stored in a Map. * @returns {Map} - A Map containing all configurations. */ get allConfigs(): Map; } /** * Represents a collection of module configurations. */ export declare class ModuleConfigs implements IModuleConfigs { /** * A private property that stores module configurations using a Map data structure. * The keys are strings representing module names, and the values are ModuleConfig objects. */ private _moduleConfigs; /** * Represents a collection of module configurations. * Constructor for creating a new instance of the class. */ constructor(); /** * Selects a package by its name and returns its configuration if it exists, * otherwise creates a new configuration for the package and returns it. * @param {string} packageName - The name of the package to select. * @returns The configuration of the selected package or undefined if not found. */ selectPackage(packageName: string): IModuleConfig | undefined; /** * Getter method to access the global configuration settings stored in a Map. * @returns {Map} A Map containing module configurations. */ get globalConfig(): Map; } export {}; //# sourceMappingURL=ModuleConfigs.d.ts.map