import type { ResolvedNode } from "../../pdpp/host.js"; /** * The npm that sits beside `node`, or none: a Node whose npm was removed or * broken (a half-finished `nvm install`, a stray uninstall) leaves the binary * without one. */ export declare class NpmMissingError extends Error { readonly nodePath: string; constructor(node: ResolvedNode, platform: NodeJS.Platform); } /** `npm ci` ran and failed; its output is in the install log. */ export declare class RuntimeInstallError extends Error { constructor(message: string); } export interface RuntimeInstallDeps { exec: (file: string, args: string[], options: { cwd: string; env: NodeJS.ProcessEnv; maxBuffer?: number; windowsHide?: boolean; }) => Promise<{ stdout: string; stderr: string; }>; env: NodeJS.ProcessEnv; platform: NodeJS.Platform; } export declare function isRuntimeInstalled(dir?: string): boolean; /** * Install the pinned Personal Server into its versioned dir with `npm ci`, so * every install resolves to the same dependency tree, then prove the native * module loads under the Node that will run it. */ export declare function ensureRuntime(node: ResolvedNode, logPath: string, dir?: string, overrides?: Partial): Promise; //# sourceMappingURL=runtime.d.ts.map