/** * Renderer state and the workbench render path. * * `describeRenderer` answers "can this machine render, and what templates * exist" without starting a browser; `renderFromStudio` renders one request and * lands it in the same attachment/workspace pipeline as every other image. * * @module dsh-arya-image-gen/render-service */ import type { Context } from '@deepseek-ai/cordis'; import { type Config } from './config.js'; import { RenderError } from './render/render.js'; import type { RenderConfigResponse, RenderHealth, StudioRenderRequest, StudioRenderResponse } from './shared.js'; /** Capability probe shared by the health route and the workbench config. */ export declare function describeRenderer(config: Config): Promise; /** Whether a usable browser exists, and which one. */ export declare function rendererHealth(config: Config): Promise; /** * Render one workbench request. * * @param ctx - host context with the attachment store. * @param config - current plugin configuration. * @param input - validated render request. * @param signal - cancellation from the HTTP connection. * @param knownRoots - workspace roots the bundle has seen. * @returns the finished render in the shape the rail and gallery expect. */ export declare function renderFromStudio(ctx: Context, config: Config, input: StudioRenderRequest, signal: AbortSignal, knownRoots?: Set): Promise; /** Re-export so the bundle and the route share one error type. */ export { RenderError };