import type { Context } from '@deepseek-ai/cordis'; import { type Config } from './config.js'; import { RenderError } from './render/render.js'; /** Host services and state the render tools borrow from the bundle. */ export interface RenderToolDeps { /** Current configuration snapshot. */ config(): Config; /** Workspace roots seen so far, shared with the ComfyUI tools. */ knownRoots: Set; } /** * Register the three render tools on the bundle context. * * @param ctx - host context providing tools and attachments. * @param deps - configuration accessor and shared workspace bookkeeping. */ export declare function registerRenderTools(ctx: Context, deps: RenderToolDeps): void; /** * Read a canvas size out of SVG markup. * * @param markup - SVG source. * @returns integer size when the markup declares one. */ export declare function svgIntrinsicSize(markup: string): { width: number; height: number; } | undefined; /** Re-exported so the route can share the same error type. */ export { RenderError };