#!/usr/bin/env node import { spawnSync } from 'child_process'; import { findProjectRoot } from './projectRoot'; import { type ModuleResolver } from './resolveModule'; export { findProjectRoot }; type SpawnProcess = typeof spawnSync; type BundleScriptOptions = { platform?: string; cwd?: string; sourcemap?: boolean; packageRoot?: string; spawnProcess?: SpawnProcess; resolveModule?: ModuleResolver; }; export declare const buildHermesFlags: (hermescPath: string, generateSourceMap: boolean, spawnProcess: SpawnProcess) => string[]; export declare const detectHermesFromNativeProject: (projectRoot: string, platform: string) => boolean | undefined; export declare const shouldCompileHermesBytecode: (cfg: Record, platform: string, projectRoot: string, snapshotRoot?: string) => boolean; export declare function runBundleScript(options?: BundleScriptOptions): { outputDir: string; bundlePath: string; sourceMapPath?: string; metadataPath: string; zipPath: string; runtimeVersion: string; hash: string; bundleHash: string; jsBundleHash: string; manifestPath: string; projectRoot: string; };