/** * Determine attribute value and convert value to be treated as a boolean (flag). * * @export * @param {(string | boolean)} value * @returns {boolean} returns a boolean value from attribute value as flag. */ export declare function getFlagAsBoolean(value: string | boolean | null | undefined): boolean; /** * Sets attribute as flag, added or removed. e.g. given "disabled" and value is `true` attribute will be added; else it * will be removed. * * @export * @param {Element} element element to add/remove attribute from. * @param {string} attributeName attribute name to add e.g. disabled * @param {(string | boolean)} attributeValue attribute value to be set either true/false. */ export declare function setAsFlag(element: Element, attributeName: string, attributeValue: string | boolean | null | undefined): void; /** * Build BEM style modifiers by splitting and combing the modifier with the prefix. * e.g. given value is `"error focus"` and prefix is `"ssv-x"` => `"ssv-x--error ssv-x--focus"` * * @export * @param {(string | undefined)} value modifier value to build, which can be separated by space. * @param {string} prefix prefix to use for each modifier. * @returns {(string | undefined)} returns combined modifiers as a string. */ export declare function generateBemStyleModifiers(value: string | undefined, prefix: string): string | undefined; /** * Change from BEM modified to class to another. * * @export * @param {string} prefix prefix to use for each modifier. * @param {string} newValue new class name to add. * @param {string} previousValue previous class to remove. * @param {Element} element element to add/remove class to. */ export declare function changeBemModifier(prefix: string, newValue: string, previousValue: string, element: Element): void;