@mui/internal-docs-infra
Version:
MUI Infra - internal documentation creation tools.
21 lines • 1.09 kB
TypeScript
import type { Code, ParseSource } from "./types.js";
/**
* Pure function to identify which variants need transformation.
* Returns entries of variants that have transforms requiring processing.
*/
export declare function getVariantsToTransform(parsedCode: Code): Array<[string, any]>;
/**
* Pure function to get available transforms from a specific variant.
* Only includes transforms that have actual deltas (file changes), not just filename changes.
*/
export declare function getAvailableTransforms(parsedCode: Code | undefined, variantName: string): string[];
/**
* Pure async function to transform a single variant's code and extraFiles.
* Returns the transformed variant or the original if transformation fails.
*/
export declare function transformVariant(variant: string, variantCode: any, parseSource: ParseSource): Promise<any>;
/**
* Pure async function to apply transformations to all variants that need them.
* Returns the enhanced code with computed transforms.
*/
export declare function applyTransforms(parsedCode: Code, parseSource: ParseSource): Promise<Code>;