import type { InstallResult, ServiceAdapter } from './types.js'; export interface ResolvedBuild { nodeBin: string; entryJs: string; /** `"" ""` — for direct (non-shim) execution, e.g. the * backup timer task which must run `backup --keep N`, not the daemon. */ rawExecPath: string; } /** Resolve the running build's CLI entry from this module's own location. */ export declare function resolveBuild(): ResolvedBuild; export interface InstallFlowOutcome { result: InstallResult; adapter: ServiceAdapter; build: ResolvedBuild; /** What the scheduler actually points at — the stable shim, on every platform. */ taskExecPath: string; } export interface InstallFlowOptions { /** * Override the resolved CLI entry (e.g. a materialized release dir's * `dist/cli/index.js`, FEAT-438) instead of the checkout's own `dist/`. * `nodeBin` is left as resolveBuild()'s value — only the entry path * changes. Used by `reinstall` to pin the served daemon (and its backup * timer) to an immutable release; `init` / `service install` omit this and * keep pointing at the live checkout as before. */ entryJsOverride?: string; } export declare function installServiceFlow(port: number, opts?: InstallFlowOptions): Promise;