import type { EditorDeclarations } from './declarations.js'; /** What code generation reads from the editor's declarations. */ export type CodegenDeclarations = Pick; import type { NodeJSON, NodeModel } from './store.js'; export type CodegenNode = NodeModel | NodeJSON; export interface CodegenFrameOptions { fill?: string; opacity?: number; radius?: number; clipContent?: boolean; } export declare function codegen(declarations: CodegenDeclarations, node: CodegenNode, indent?: number): string; /** Generates the built-in target and keeps the historical string API stable. */ export declare function codegenDocument(declarations: CodegenDeclarations, root: CodegenNode, frame?: CodegenFrameOptions): string;