import type { Model } from "../models"; import type { ConfigurableItemUtils } from "./ConfigurableItemUtils"; import type { TopLevelSettingsType } from "./settings"; /** * Arguments passed into the applyDesignerSettings() hook. */ export interface ApplyDesignerSettingsArgs { /** * The model that is being configured. */ model: TModel; /** * The ID of the subsettings if editing subsettings. */ subsettingsId?: string; /** * The subsetting type if editing subsettings. */ subsettingsType?: TSubsettingType; /** * The settings to apply back to the model. Note that this might be any * arbitrary subset of settings values presented in the form. */ settings: Partial; /** * Contextual utility functions. */ utils: ConfigurableItemUtils; }