import { type IBootResult, type IBootTtscOptions, type ITtscResult } from "@ttsc/wasm"; import type { ICompilerService } from "../../structures/ICompilerService"; import type { ICreateWorkerCompilerOptions } from "../../structures/ICreateWorkerCompilerOptions"; /** * Runtime `@ttsc/wasm` collaborators the worker compiler needs. The public * `createWorkerCompiler` binds the real implementations; tests bind fakes that * resolve a synthetic `IBootResult` so the plugin-envelope handling can be * verified without a real WASM boot. */ export interface IWorkerCompilerDeps { bootTtsc: (options: IBootTtscOptions) => Promise; parseResult: (result: ITtscResult) => T | null; } /** * Dependency-injected worker `ICompilerService` factory. See * `createWorkerCompiler` for the public entry documentation. */ export declare function createWorkerCompilerService(deps: IWorkerCompilerDeps, options: ICreateWorkerCompilerOptions): ICompilerService;