import { TheCodegenConfiguration } from '../codegen/types'; export interface BrowserGenerateInput { /** The API specification as a string (YAML or JSON) */ spec: string; /** The format of the specification */ specFormat: 'asyncapi' | 'openapi' | 'jsonschema'; /** The codegen configuration */ config: TheCodegenConfiguration; } export interface BrowserGenerateOutput { /** Generated files as Record */ files: Record; /** Any errors that occurred during generation */ errors: string[]; } /** * Generate code from an API specification in the browser. * This is the main entry point for browser-based code generation. */ export declare function generate(input: BrowserGenerateInput): Promise;