studiocms
Version:
Astro Native CMS for AstroDB. Built from the ground up by the Astro community.
11 lines (10 loc) • 583 B
TypeScript
import { convertToSafeString } from '../../../../utils/safeString.js';
export { convertToSafeString };
/**
* Imports components by their keys from the 'studiocms:markdown-remark/user-components' module.
*
* @param keys - An array of strings representing the keys of the components to import.
* @returns A promise that resolves to an object containing the imported components.
* @throws {MarkdownRemarkError} If any component fails to import, an error is thrown with a prefixed message.
*/
export declare function importEditorKeys(keys: string[]): Promise<Record<string, any>>;