michangarrito/apps/backend/node_modules/metro/src/DeltaBundler.d.ts
rckrdmrd 97f407c661 [MIGRATION-V2] feat: Migrar michangarrito a estructura v2
- Prefijo v2: MCH
- TRACEABILITY-MASTER.yml creado
- Listo para integracion como submodulo

Workspace: v2.0.0 | SIMCO: v4.0.0
2026-01-10 11:28:54 -06:00

59 lines
1.2 KiB
TypeScript

/**
* 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.
*
* @format
* @oncall react_native
*/
import type {
DeltaResult,
Graph,
MixedOutput,
Options,
ReadOnlyGraph,
} from './DeltaBundler/types';
import type {EventEmitter} from 'events';
export type {
DeltaResult,
Graph,
Dependencies,
MixedOutput,
Module,
ReadOnlyGraph,
TransformFn,
TransformResult,
TransformResultDependency,
TransformResultWithSource,
} from './DeltaBundler/types';
export default class DeltaBundler<T = MixedOutput> {
constructor(changeEventSource: EventEmitter);
end(): void;
getDependencies(
entryPoints: ReadonlyArray<string>,
options: Options<T>,
): Promise<ReadOnlyGraph<T>['dependencies']>;
buildGraph(
entryPoints: ReadonlyArray<string>,
options: Options<T>,
): Promise<Graph<T>>;
getDelta(
graph: Graph<T>,
{
reset,
shallow,
}: {
reset: boolean;
shallow: boolean;
},
): Promise<DeltaResult<T>>;
listen(graph: Graph<T>, callback: () => Promise<void>): () => void;
endGraph(graph: Graph<T>): void;
}