UNPKG

@mui/internal-docs-infra

Version:

MUI Infra - internal documentation creation tools.

12 lines 713 B
import type { Code } from "../../CodeHighlighter/types.mjs"; /** * Pure function to get available transforms from a specific variant. * * Variant-level `transforms` is a manifest produced by `splitTransformsForEmbed` * (or by the legacy `Transforms` shape with deltas, for back-compat). Only * entries that produced a real source delta are reported here — rename-only * entries (manifest entries with `hasDelta: false`, kept around so the * runtime can still apply the rename based on user preference) are filtered * out so the transform toggle stays hidden when nothing meaningful changes. */ export declare function getAvailableTransforms(parsedCode: Code | undefined, variantName: string): string[];