/** * The prefix to add to rewritten scss variables * @type {string} */ export declare const SCSS_VARIABLE_REWRITE_PREFIX = "--__REWRITTEN_SCSS_VARIABLE__"; /** * The prefix to add to temporary scss variables * @type {string} */ export declare const SCSS_TEMPORARY_PREFIX = "__TEMPORARY_SCSS_VARIABLE__"; /** * A Regular Expression to match SCSS variables * @type {RegExp} */ export declare const scssVariableRegex: {}; /** * The prefix for SCSS variables * @type {string} */ export declare const scssVariablePrefix = "$"; /** * The prefix for CSS Custom properties * @type {string} */ export declare const cssCustomPropertyPrefix = "--"; /** * A Regular Expression to match CSS Custom Properties * @type {RegExp} */ export declare const cssCustomPropertyRegex: any; /** * A Regular Expression to match SCSS variables and/or CSS custom properties * @type {RegExp} */ export declare const customPropertyRegex: {}; /** * A Regular Expression to match references to SCSS variables and/or CSS custom properties * @type {RegExp} */ export declare const variableReferenceRegex: {}; /** * A Regular Expression to match references to SCSS variables * @type {RegExp} */ export declare const scssVariableReferenceRegex: {}; /** * A regular expression for matching usage of default values for CSS Custom properties * @type {RegExp} */ export declare const cssCustomPropertyReferenceRegex: {}; /** * A Regular Expression to match references to SCSS variables and/or CSS custom properties * @type {RegExp} */ export declare const variableReferenceRegexGlobal: {}; /** * Returns true if the given value contains one or more variable references * @param {string} value * @returns {boolean} */ export declare function containsVariableReference(value: string): boolean; /** * Returns true if the given value contains one or more SCSS variable references * @param {string} value * @returns {boolean} */ export declare function containsScssVariableReference(value: string): boolean; /** * Returns true if the given value contains one or more CSS Custom property references * @param {string} value * @returns {boolean} */ export declare function containsCSSCustomPropertyReference(value: string): boolean; /** * Replaces all references to variables by the values of those variables * @param {string} prop * @param {string} value * @param {object} variables * @returns {string} */ export declare function replaceVariableReferences(prop: string, value: string, variables: { [key: string]: string; }): string; /** * Takes the name for a CSS Custom Property reference. * If it has a default value, it will be discarded * @param {string} value * @returns {string?} */ export declare function takeFirstVariableReferenceName(value: string): string; /** * Takes the default value for the provided CSS Custom Property * @param {string} value * @returns {string?} */ export declare function takeDefaultValueForCSSCustomProperty(value: string): string | undefined; /** * Returns true if the given property is a SCSS variable declaration * @param {string} property * @returns {boolean} */ export declare function isScssVariable(property: string): boolean; /** * Returns true if the given property is a variable declaration * @param {string} property * @returns {boolean} */ export declare function isCustomProperty(property: string): boolean; /** * Escapes the given value * @param {string} value * @returns {string} */ export declare function escapeValue(value: string): string; /** * Returns true if the given property is a CSS Custom property * @param {string} property * @returns {boolean} */ export declare function isCSSCustomProperty(property: string): boolean;