import { EditorAPI } from '../types/CommonTypes'; import { StudioOptionsDeltaUpdate, WellKnownConfigurationKeys } from '../types/ConfigurationTypes'; import { SmartCropVersion } from '../types/FrameTypes'; /** * The ConfigurationController allows setting editor session data. This data is not stored in the document and * can only be used at runtime. Amongst others, the configuration store is available to the editor connectors and * Javascript actions running in the editor. * Methods inside this controller can be called by `window.SDK.configuration.{method-name}` */ export declare abstract class ConfigurationController { #private; /** * @ignore */ protected constructor(editorAPI: EditorAPI); /** * This method returns the value for a given configuration key. If a value was not found in the configuration store * this method returns an error. The key cannot be null. * @returns value for a given configuration key */ getValue(key: WellKnownConfigurationKeys | string): Promise>; /** * This method sets, or overrides the value for a given key. Null values are not allowed for both key and value, * using them will result in an error. * @returns */ setValue(key: WellKnownConfigurationKeys | string, value: string): Promise>; /** * This method updates the studio options. Only defined options are updated, null values are ignored. * @returns */ updateStudioOptions(options: StudioOptionsDeltaUpdate): Promise>; /** * This method returns the engine session id. This id is unique for this engine session * @returns the engine session id */ getEngineSessionId(): Promise>; /** * This method returns the latest version of smart crop algorithm * @returns the latest version of smart crop algorithm */ getLatestSmartCropVersion(): SmartCropVersion; }