/** Same-origin HTTP bridge used by the browser image workbench. */ import type { IncomingMessage, ServerResponse } from 'node:http'; import { type StudioConfigResponse, type StudioGenerateRequest, type StudioGenerateResponse } from './shared.js'; export interface StudioRouteDeps { describe(): Promise; generate(input: StudioGenerateRequest, signal: AbortSignal): Promise; maxBodyBytes: number; } /** Serve workbench capabilities and generation requests without exposing provider credentials. */ export declare function serveStudio(req: IncomingMessage, res: ServerResponse, deps: StudioRouteDeps): Promise; /** Strictly validate the small untrusted workbench wire contract. */ export declare function parseStudioGenerateRequest(value: unknown): StudioGenerateRequest;