import { JSFunction } from '@vtj/core';
import { SymbolTable } from './symbolTable';
/**
 * 提取函数体内容（用于 setup 顶层执行场景）
 *
 * 输入: 'async function() { console.log("init"); await foo(); }'
 * 输出: 'console.log("init"); await foo();'
 *
 * 输入: '() => doSomething()'
 * 输出: 'doSomething();'
 *
 * 输入: '() => { return foo(); }'
 * 输出: 'return foo();' （由调用方决定是否需要包装）
 */
export declare function extractFunctionBody(code: string): string;
/**
 * 解析 setup 字段为顶层语句
 */
export declare function parseSetupStatements(setup: JSFunction | undefined, symbols: SymbolTable): string;
/**
 * 解析 created/beforeCreate 为顶层立即执行语句
 * 二者均映射为 setup 阶段同步执行
 */
export declare function parseCreatedStatements(lifeCycles: Record<string, JSFunction> | undefined, symbols: SymbolTable): string;
