@mintlify/common
Version:
Commonly shared code within Mintlify
13 lines (12 loc) • 688 B
TypeScript
import type { Root } from 'mdast';
import type { ImportSpecifier } from '../../../types/mdx/snippets/import.js';
export { findExport } from './findExport.js';
export { injectToTopOfFileOfTree } from './injectToTopOfFile.js';
/**
*
* @param importSpecifier The name of the imported component we want to replace
* @param destinationPageContent The content of the page we want to inject the import into
* @param importedFileContent The content of the file we are importing from
* @returns
*/
export declare const resolveImport: (importSpecifier: ImportSpecifier, destinationPageContent: Root, importedFileContent: Root, exportMap: Record<string, string>) => Promise<Root | undefined>;