UNPKG

@mui/internal-docs-infra

Version:

MUI Infra - internal documentation creation tools.

19 lines 814 B
export type StoreAtMode = 'canonical' | 'import' | 'flat'; export interface ProcessImportsResult { processedSource: string; extraFiles: Record<string, string>; } /** * Processes imports based on the specified storage mode, automatically handling * source rewriting when needed (e.g., for 'flat' mode). * * @param source - The original source code * @param importResult - The result from parseImports * @param resolvedPathsMap - Map from import paths to resolved file paths * @param storeAt - How to process the imports * @returns Object with processed source and extraFiles mapping */ export declare function processRelativeImports(source: string, importResult: Record<string, { path: string; names: string[]; }>, resolvedPathsMap: Map<string, string>, storeAt: StoreAtMode): ProcessImportsResult;