import type {InitialParcelOptions, BuildEvent, BuildSuccessEvent, AsyncSubscription} from '@parcel/types'; import type {FarmOptions} from '@parcel/workers'; import type WorkerFarm from '@parcel/workers'; export class Parcel { constructor(options: InitialParcelOptions); run(): Promise; watch( cb?: (err: Error | null | undefined, buildEvent?: BuildEvent) => unknown, ): Promise } export declare function createWorkerFarm(options?: Partial): WorkerFarm; export default Parcel;