import { Worker } from 'node:worker_threads'; import type { SendProgress, Server } from '@callstack/repack-dev-server'; import type { StatsCompilation } from 'webpack'; import type { Reporter } from '../../logging/types.js'; import type { CompilerAsset, CompilerInterface, StartArguments } from '../types.js'; type Platform = string; export declare class Compiler implements CompilerInterface { private args; private reporter; private rootDir; private reactNativePath; workers: Record; platforms: string[]; assetsCache: Record | undefined>; statsCache: Record; resolvers: Record void>>; progressSenders: Record; isCompilationInProgress: Record; devServerContext: Server.DelegateContext; constructor(platforms: string[], args: StartArguments, reporter: Reporter, rootDir: string, reactNativePath: string); setDevServerContext(ctx: Server.DelegateContext): void; start(): void; close(callback?: (error?: Error | null) => void): void; private spawnWorker; private addProgressSender; private removeProgressSender; getAsset(filename: string, platform: string, sendProgress?: SendProgress): Promise; getSource(filename: string, platform: string | undefined, sendProgress?: SendProgress): Promise; getSourceMap(filename: string, platform: string | undefined): Promise; } export {};