import { getMarkdownStyle } from "../../data/markdownStyles.js";
import { randomUUID } from "node:crypto";
import nodeProcess from "node:process";
export const parrotingImagePath = (params) => {
    return params.imagePath;
};
export const resolveStyle = (styleName, fallbackStyle) => {
    const customStyle = styleName ? getMarkdownStyle(styleName) : undefined;
    return customStyle ? customStyle.css : fallbackStyle;
};
export const generateUniqueId = (prefix) => {
    if (nodeProcess.env.NODE_ENV === "test") {
        return "id";
    }
    return `${prefix}-${randomUUID().slice(0, 8)}`;
};
