import { renderParameters as renderParametersInternal, renderRequestBody as renderRequestBodyInternal, renderResponseBodies as renderResponseBodiesInternal, renderSecurity as renderSecurityInternal, } from "../content/chunks/operation.js";
import { MdxSite } from "../renderers/mdx.js";
import { setSettings } from "../settings.js";
export function renderSecurity(security, settings, frameworkConfig) {
    setSettings(settings);
    const site = new MdxSite(frameworkConfig);
    const renderer = site.createPage("");
    renderSecurityInternal(security.chunkData.security, renderer);
    return renderer.render().contents;
}
export function renderParameters(operationChunk, settings, frameworkConfig) {
    setSettings(settings);
    const site = new MdxSite(frameworkConfig);
    const renderer = site.createPage("");
    renderParametersInternal(operationChunk.chunkData.parameters, renderer);
    return renderer.render().contents;
}
export function renderRequestBody(operationChunk, settings, frameworkConfig) {
    setSettings(settings);
    const site = new MdxSite(frameworkConfig);
    const renderer = site.createPage("");
    renderRequestBodyInternal(operationChunk.chunkData.requestBody, renderer);
    return renderer.render().contents;
}
export function renderResponseBodies(operationChunk, settings, frameworkConfig) {
    setSettings(settings);
    const site = new MdxSite(frameworkConfig);
    const renderer = site.createPage("");
    renderResponseBodiesInternal(operationChunk.chunkData.responses, renderer);
    return renderer.render().contents;
}
//# sourceMappingURL=editor.js.map