/** * 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 * @oncall react_native * @generated SignedSource<<85afaa67dc54abf31fa69a345e59ebde>> * * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js * Original file: packages/metro/src/Bundler.js * To regenerate, run: * js1 build metro-ts-defs (internal) OR * yarn run build-ts-defs (OSS) */ import type {TransformResultWithSource} from './DeltaBundler'; import type {TransformOptions} from './DeltaBundler/Worker'; import type {ConfigT} from 'metro-config'; import type EventEmitter from 'node:events'; import Transformer from './DeltaBundler/Transformer'; import DependencyGraph from './node-haste/DependencyGraph'; export type BundlerOptions = Readonly<{ hasReducedPerformance?: boolean | undefined; watch?: boolean | undefined; }>; declare class Bundler { _depGraph: DependencyGraph; _initializedPromise: Promise; _transformer: Transformer; constructor(config: ConfigT, options?: BundlerOptions); getWatcher(): EventEmitter; end(): Promise; getDependencyGraph(): Promise; transformFile(filePath: string, transformOptions: TransformOptions, fileBuffer?: Buffer): Promise; ready(): Promise; } export default Bundler;