import type { MsDocParseOptions, MsDocParseResult, MsDocParseToHtmlOptions, MsDocRenderOptions, MsDocRenderResult, MsDocWorkerClientLike, WorkerLike } from './types.js'; /** * Thin typed wrapper around a module worker so applications can offload * expensive binary parsing without having to manage message correlation. */ export declare class MsDocWorkerClient implements MsDocWorkerClientLike { private readonly worker; private readonly pending; private seq; constructor(worker: WorkerLike); static create(url?: URL, workerOptions?: WorkerOptions): MsDocWorkerClient; private handleMessage; private handleError; private request; parse(input: ArrayBuffer | ArrayBufferView, options?: MsDocParseOptions): Promise; parseToHtml(input: ArrayBuffer | ArrayBufferView, options?: MsDocParseToHtmlOptions): Promise; render(parsed: MsDocParseResult, options?: MsDocRenderOptions): Promise; destroy(): void; }