UNPKG

@mintlify/common

Version:

Commonly shared code within Mintlify

10 lines (9 loc) 547 B
import type { ImportSpecifier } from '../../../types/mdx/snippets/import.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: string, importedFileContent: string, exportMap: Record<string, string>) => Promise<string | undefined>;