/** * Browser implementation of RslintService using web workers */ export declare class BrowserRslintService implements RslintServiceInterface { private nextMessageId; private readonly pendingMessages; private worker; private readonly workerUrl; private chunks; private chunkSize; private expectedSize; constructor(options: RSlintOptions & { workerUrl: string; wasmUrl: string; }); /** * Initialize the web worker */ private ensureWorker; /** * Handle incoming binary data chunks */ private handlePacket; /** * Combine multiple Uint8Array chunks into a single Uint8Array */ private combineChunks; /** * Send a message to the worker */ sendMessage(kind: string, data: any): Promise; /** * Handle messages from the worker */ private handleResponse; /** * Terminate the worker */ terminate(): void; } declare interface RSlintOptions { rslintPath?: string; workingDirectory?: string; } declare interface RslintServiceInterface { sendMessage(kind: string, data: any): Promise; terminate(): void; } export { }