/** * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * @format */ import OverrideFactory from './OverrideFactory'; import Override from './Override'; import { UpgradeResult } from './UpgradeStrategy'; import { ValidationError } from './ValidationStrategy'; export * from './OverrideFactory'; export * from './Override'; export * from './refFromVersion'; export { UpgradeResult, ValidationError }; /** * Check that the given manifest correctly describe overrides and that all * overrides are up to date */ export declare function validateManifest(manifestPath: string, opts?: { reactNativeVersion?: string; }): Promise; /** * Return whether the override exists in the manifest */ export declare function hasOverride(overrideName: string, manifestPath: string): Promise; /** * Removes an override from the manifest if it exists. * @returns whether the override was removed */ export declare function removeOverride(overrideName: string, manifestPath: string): Promise; /** * Returns a factory to create overrides which may be added to the manifest */ export declare function getOverrideFactory(manifestPath: string, opts?: { reactNativeVersion?: string; }): Promise; /** * Adds an override to the manifest */ export declare function addOverride(override: Override, manifestPath: string): Promise; /** * Outputs a patch-style diff of an override compared to its original source */ export declare function diffOverride(overrideName: string, manifestPath: string): Promise; /** * Receives notifications on progress during override upgrades */ export type UpgradeProgressListener = (currentOverride: number, totalOverrides: number) => void; /** * Attempts to automatically merge changes from the current version into * out-of-date overrides. */ export declare function upgradeOverrides(manifestPath: string, opts: { allowConflicts: boolean; reactNativeVersion?: string; progressListener?: UpgradeProgressListener; }): Promise;