import type { ICompilerService } from "../structures/ICompilerService"; import type { ICreateWorkerCompilerOptions } from "../structures/ICreateWorkerCompilerOptions"; /** * Build an `ICompilerService` ready to register with tgrid's `WorkerServer`. * * Usage in the worker entry: * * ```ts * import { createWorkerCompiler } from "@ttsc/playground"; * import { WorkerServer } from "tgrid"; * * const service = createWorkerCompiler({ * wasmUrl: "/compiler/playground.wasm", * apiName: "ttscPlayground", * typiaPlugin: { mount: installTypiaPack }, * }); * * const main = async () => { * const worker = new WorkerServer(); * await worker.open(service); * }; * void main(); * ``` */ export declare function createWorkerCompiler(options: ICreateWorkerCompilerOptions): ICompilerService;