/** * 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<> * * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js * Original file: packages/metro/src/DeltaBundler.js * To regenerate, run: * js1 build metro-ts-defs (internal) OR * yarn run build-ts-defs (OSS) */ import type { DeltaResult, Graph, MixedOutput, Options, ReadOnlyGraph, } from './DeltaBundler/types'; import type EventEmitter from 'events'; import DeltaCalculator from './DeltaBundler/DeltaCalculator'; export type { DeltaResult, Graph, Dependencies, MixedOutput, Module, ReadOnlyGraph, TransformFn, TransformResult, TransformResultDependency, TransformResultWithSource, } from './DeltaBundler/types'; /** * `DeltaBundler` uses the `DeltaTransformer` to build bundle deltas. This * module handles all the transformer instances so it can support multiple * concurrent clients requesting their own deltas. This is done through the * `clientId` param (which maps a client to a specific delta transformer). */ declare class DeltaBundler { _changeEventSource: EventEmitter; _deltaCalculators: Map, DeltaCalculator>; constructor(changeEventSource: EventEmitter); end(): void; getDependencies( entryPoints: ReadonlyArray, options: Options, ): Promise['dependencies']>; buildGraph( entryPoints: ReadonlyArray, options: Options, ): Promise>; getDelta( graph: Graph, $$PARAM_1$$: {reset: boolean; shallow: boolean}, ): Promise>; listen(graph: Graph, callback: () => Promise): () => void; endGraph(graph: Graph): void; } export default DeltaBundler;