/** * @file Single Executable Application binary detection + path accessor. Two * responsibilities (mirror of `src/exe/smol/detect.ts` shape). * Executable-domain: detects whether THIS process is a packaged SEA * executable. * * 1. `isSeaBinary()` — memoized boolean detector for whether the current process * is running as a Node.js Single Executable Application. Probes via Node * 24+'s `node:sea.isSea()` native API; falls back to `false` on older * runtimes. * 2. `getSeaBinaryPath()` — returns the path of the SEA binary * (`process.argv[0]` normalized) when running as SEA, otherwise * `undefined`. Defensive across runtimes: returns `false` / `undefined` * cleanly on stock Node < 24, browsers, Deno, Bun. */ /** * Get the current SEA binary path. Only valid when running as a SEA binary. * * @example * ```typescript * const binPath = getSeaBinaryPath() * if (binPath) { * console.log(`Running as SEA binary: ${binPath}`) * } * ``` */ export declare function getSeaBinaryPath(): string | undefined; /** * Detect if the current process is running as a SEA binary. Uses Node.js 24+ * native API with caching for performance. * * @example * ;```typescript * if (isSeaBinary()) { * console.log('Running as a Single Executable Application') * } * ``` */ export declare function isSeaBinary(): boolean;