/** * Native-boundary fake for testing apps that use the SDK. * * The fake replaces the `NativeCodemagicPatch` TurboModule, not the SDK: the * real JS runtime hydrates from it, evaluates its manifests and drives its * download / install calls, so a test sees the same results an app would. * Runner-neutral on purpose: plain async functions, no test-runner imports. * * Things that behave like the real SDK and can surprise a test: * - `sync()` calls `notifyAppReady()` first, which confirms an unconfirmed * running package. To keep it unconfirmed, use `checkForUpdate()` / * `downloadUpdate()` / `installUpdate()` instead of `sync()`. * - A server release equal to the running package, the already installed next * package, or the failed install is not downloaded again. * - A mandatory release installs `IMMEDIATE` unless `mandatoryInstallMode` says * otherwise. * - `restartApp()` resolves but does not reload JS: after it the SDK still * reports the package as ready, not as running. Load the SDK again with a * new fake to test the next launch. */ import type { Spec } from "../NativeCodemagicPatch"; import type { PatchFake, PatchFakeSeed } from "./types"; export declare function createPatchFake(seed?: PatchFakeSeed): PatchFake; /** * The `NativeCodemagicPatch` implementation behind a fake, for adapters that * install it in place of the TurboModule. Not part of the public entry: its * shape is the native wire contract. */ export declare function patchFakeNativeModule(fake: PatchFake): Spec; //# sourceMappingURL=createPatchFake.d.ts.map