import { IIdentifiedSettingsConfig } from "./_types/IIdentifiedSettingsConfig"; import { ISettingsFolderMenuItem } from "./_types/ISettingsFolderMenuItem"; import { TSettingsTree } from "./_types/TSettingsTree"; /** * A context to store the setting values for given configs in */ export declare class SettingsContext { protected settings: { [ID: string]: ISettingsFolderMenuItem; }; /** * Creates a new empty settings context * @param settings The settings to begin with, mapped under their config ids */ constructor(settings?: { [ID: string]: ISettingsFolderMenuItem; }); /** * Augments the current context with the given settings, resulting in a new context * @param config The config for the settings to augment * @param values The values to store for this config * @returns The newly created context */ augment(config: IIdentifiedSettingsConfig, values: F): SettingsContext; /** * Retrieves a selection of settings from its config * @param config The settings group to retrieve * @returns The values for these settings within this context */ get(config: IIdentifiedSettingsConfig): TSettingsTree; /** * Retrieves all of the UI for settings in this menu * @returns The UI to represent the settings */ getUI(): ISettingsFolderMenuItem[]; /** * Retrieves a selection of settings and UI from its config * @param config The settings group to retrieve * @returns The UI to represent the settings */ getUI(config: IIdentifiedSettingsConfig): F; } //# sourceMappingURL=SettingsContext.d.ts.map