@mui/internal-docs-infra
Version:
MUI Infra - internal documentation creation tools.
12 lines • 801 B
TypeScript
import type { VariantCode, ParseSource, LoadSource, LoadVariantMeta, SourceTransformers, LoadFileOptions, Externals } from "./types.js";
/**
* Loads a variant with support for recursive extra file loading.
* The loadSource function can now return extraFiles that will be loaded recursively.
* Supports both relative and absolute paths for extra files.
* Uses Promise.all for efficient parallel loading of extra files.
*/
export declare function loadVariant(url: string | undefined, variantName: string, variant: VariantCode | string | undefined, sourceParser?: Promise<ParseSource>, loadSource?: LoadSource, loadVariantMeta?: LoadVariantMeta, sourceTransformers?: SourceTransformers, options?: LoadFileOptions): Promise<{
code: VariantCode;
dependencies: string[];
externals: Externals;
}>;