import type { ProjectSchema, ResultDir } from '@alilc/lowcode-types'; import type { FlattenFile } from './types/file'; export declare const DEFAULT_WORKER_JS: string; export declare const DEFAULT_TIMEOUT_IN_MS: number; export declare function init({ workerJsUrl, }?: { workerJsUrl?: string; }): Promise; export declare type Result = ResultDir | FlattenFile[]; /** * 主线程执行,向worker发送消息 * @param options * @returns */ export declare function generateCode(options: { solution: 'icejs' | 'rax' | 'umi'; schema: ProjectSchema; flattenResult?: boolean; workerJsUrl?: string; timeoutInMs?: number; }): Promise;