;
/**
* Retrieve the value of a specific property of the style.
* @param prop - The name of the property to retrieve.
* @param options - Options to target specific breakpoints, pseudo states, and component variants.
* @returns Returns the value of the CSS property, or null if not set.
* @example
* ```ts
* // Get base property
* let color = await myStyle.getProperty('color');
*
* // Get property for breakpoint and pseudo state
* let hoverColor = await myStyle.getProperty('color', { breakpoint: 'medium', pseudo: 'hover' });
*
* // Get property for a component variant
* let variantColor = await myStyle.getProperty('color', { variantId: 'variant-dark' });
*
* // Get property from variant by name
* let namedVariantColor = await myStyle.getProperty('color', { variantName: 'Dark Mode' });
* ```
*/
getProperty(
prop: p,
options?: StyleOptions
): Promise;
/**
* Sets a specific CSS property for the Style.
* @param prop - The name of the property to set.
* @param value - The new value to set for the property.
* @param options - Options to target specific breakpoints, pseudo states, and component variants.
* @example
* ```ts
* // Set base property
* await myStyle.setProperty('color', 'red');
*
* // Set property for breakpoint and pseudo state
* await myStyle.setProperty('color', 'blue', { breakpoint: 'medium', pseudo: 'hover' });
*
* // Set property for a component variant
* await myStyle.setProperty('color', 'white', { variantId: 'variant-dark' });
*
* // Set property on variant by name
* await myStyle.setProperty('font-weight', 'bold', { variantName: 'Dark Mode' });
* ```
*/
setProperty(
prop: p,
value: NonNullable,
options?: StyleOptions
): Promise;
/**
* Removes a specific CSS property from the Style.
* @param prop - The name of the property to remove.
* @param options - Options to target specific breakpoints, pseudo states, and component variants.
* @example
* ```ts
* // Remove property from base styles
* await myStyle.removeProperty('color');
*
* // Remove property from a variant
* await myStyle.removeProperty('color', { variantId: 'variant-dark' });
* ```
*/
removeProperty(prop: StyleProperty, options?: StyleOptions): Promise;
/**
* Removes all CSS properties from the Style, including base styles and all variant styles.
* @example
* ```ts
* await myStyle.removeAllProperties();
* ```
*/
removeAllProperties(): Promise;
/**
* Returns true if the style is a combo class.
* @example
* ```ts
* const isComboClass = await myStyle.isComboClass();
* console.log("Is Combo Class:", isComboClass);
* ```
*/
isComboClass(): boolean;
/**
* Retrieve the public categorization of this Style, as it appears in the
* Designer's Styles panel. Returns one of:
*
* - `'global'` — a named, reusable class style (no combinator)
* - `'combo'` — a class modifier on a base class (`.button.is-primary`)
* - `'tag'` — a style targeting an HTML tag (`h1`, `body`)
* - `'element'` — a style scoped to a single element instance
* - `'descendant'` — a class style nested under another class
* (`.parent .child`)
*
* Synchronous: the value is hydrated when the Style is first returned from
* the API and never changes for that instance.
*
* Note: `'element'` styles may appear in `webflow.getAllStyles()` results
* but most Style operations on them are not supported and will reject with
* a `resourceMissing` error.
*
* @example
* ```ts
* const styles = await webflow.getAllStyles();
* const globalClasses = styles.filter((s) => s.getType() === 'global');
* ```
*/
getType(): StyleType;
/**
* Returns true if this Style originated from a library (Shared Library or AI Site Generation).
*
* Synchronous: the value is hydrated when the Style is first returned
* from the API and never changes for that instance.
*
* @example
* ```ts
* const styles = await webflow.getAllStyles();
* const siteOnlyClasses = styles.filter(
* (s) => s.getType() === 'global' && !s.isFromLibrary()
* );
* ```
*/
isFromLibrary(): boolean;
/**
* Retrieve a variable mode from the style.
* @param collection - The collection from which to get the currently applied mode.
* @param options - Options to get variable mode based on breakpoints, pseudo classes / states, and component variants.
* @example
* ```ts
* const collection = await webflow.getVariableCollectionById('collection-id');
* let variableMode = await myStyle.getVariableMode(collection);
* ```
*/
getVariableMode(
collection: VariableCollection,
options?: StyleOptions
): Promise;
/**
* Sets a variable mode for the style.
* @param collection - The collection that the mode being set belongs to.
* @param mode - The variable mode to set.
* @param options - Options to set variable mode based on breakpoints, pseudo classes / states, and component variants.
* @example
* ```ts
* const collection = await webflow.getVariableCollectionById('collection-id');
* const mode = await collection.getVariableModeByName('Dark');
* await myStyle.setVariableMode(collection, mode, {
* variantId: 'variant-dark',
* });
* ```
*/
setVariableMode(
collection: VariableCollection,
mode: VariableMode,
options?: StyleOptions
): Promise;
/**
* Removes a variable mode from the style.
* @param collection - The collection that the mode being removed belongs to.
* @param options - Options to remove variable mode based on breakpoints, pseudo classes / states, and component variants.
* @example
* ```ts
* const collection = await webflow.getVariableCollectionById('collection-id');
* await myStyle.removeVariableMode(collection)
* ```
*/
removeVariableMode(
collection: VariableCollection,
options?: StyleOptions
): Promise;
/**
* Retrieve all variable modes applied on the style.
* @param options - Options to get variable modes based on breakpoints, pseudo classes / states, and component variants.
* @example
* ```ts
* const modes = await myStyle.getVariableModes();
* ```
*/
getVariableModes(
options?: StyleOptions
): Promise;
/**
* Sets variable modes for the style.
* @param props - The variable modes to set.
* @param options - Options to set variable modes based on breakpoints, pseudo classes / states, and component variants.
* @example
* ```ts
* await myStyle.setVariableModes({
* 'collection-id-1': 'mode-id-1',
* 'collection-id-2': 'mode-id-2',
* });
* ```
*/
setVariableModes(
props: VariableModeStylePropertyMap,
options?: StyleOptions
): Promise;
/**
* Removes variable modes from the style.
* @param modes - The variable modes to remove from the style.
* @param options - Options to remove variable modes based on breakpoints, pseudo classes / states, and component variants.
* @example
* ```ts
* const collection = await webflow.getVariableCollectionById('collection-id');
* const mode = await collection.getVariableModeByName('Dark');
* const modeTwo = await collection.getVariableModeByName('Light');
* await myStyle.removeVariableModes([mode, modeTwo]);
* ```
*/
removeVariableModes(
modes: Array,
options?: StyleOptions
): Promise;
/**
* Removes all variable modes from the style.
* @param options - Options to remove all variable modes based on breakpoints, pseudo classes / states, and component variants.
* @example
* ```ts
* await myStyle.removeAllVariableModes();
* ```
*/
removeAllVariableModes(options?: StyleOptions): Promise;
/**
* Retrieves the parent style for a combo class and otherwise returns null.
* @example
* ```ts
* const parentStyle = await myStyle.getParent();
* ```
*/
getParent(): Promise