UNPKG

@mui/internal-docs-infra

Version:

MUI Infra - internal documentation creation tools.

19 lines 1.17 kB
import type { VariantSource, Transforms } from "./types.js"; /** * Applies a specific transform to a variant source and returns the transformed source * @param source - The original variant source (string, HastNodes, or hastJson object) * @param transforms - Object containing all available transforms * @param transformKey - The key of the specific transform to apply * @returns The transformed variant source in the same format as the input * @throws Error if the transform key doesn't exist or patching fails */ export declare function applyTransform(source: VariantSource, transforms: Transforms, transformKey: string): VariantSource; /** * Applies multiple transforms to a variant source in sequence * @param source - The original variant source * @param transforms - Object containing all available transforms * @param transformKeys - Array of transform keys to apply in order * @returns The transformed variant source in the same format as the input * @throws Error if any transform key doesn't exist or patching fails */ export declare function applyTransforms(source: VariantSource, transforms: Transforms, transformKeys: string[]): VariantSource;