/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @noformat * @generated SignedSource<> * * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js * Original file: packages/metro-file-map/src/worker.js * To regenerate, run: * js1 build metro-ts-defs (internal) OR * yarn run build-ts-defs (OSS) */ import type {WorkerMessage, WorkerMetadata, WorkerSetupArgs} from './flow-types'; declare class Worker { constructor($$PARAM_0$$: WorkerSetupArgs); processFile(data: WorkerMessage): WorkerMetadata; } declare function setup(args: WorkerSetupArgs): void; declare function processFile(data: WorkerMessage): WorkerMetadata; declare const $$MODULE_EXPORTS$$: { /** * Called automatically by jest-worker before the first call to `worker` when * this module is used as worker thread or child process. */ setup: typeof setup; /** * Called by jest-worker with each workload */ processFile: typeof processFile; /** * Exposed for use outside a jest-worker context, ie when processing in-band. */ Worker: typeof Worker; }; declare type $$MODULE_EXPORTS$$ = typeof $$MODULE_EXPORTS$$; export = $$MODULE_EXPORTS$$;