/** Everything the CLI keeps for Collection Profile connectors. */ export declare function getPdppHome(): string; /** * The Node release installed when no compatible one is found. It matches the * runtime Vana Desktop bundles, and the checksums are the official * SHASUMS256.txt values, so a download is checked against a hash that * shipped with the CLI rather than one fetched next to the tarball. */ export declare const PDPP_NODE_VERSION = "24.22.1"; /** What a signed artifact's provenance asks of the machine running it. */ export interface HostRuntimeContract { node: string; packages: Array<{ package: string; declared_version: string; }>; } /** * Whether `version` satisfies a space-separated comparator range such as * `>=24.15.0 <25`, the only form artifact provenance uses. Anything the * parser does not understand fails closed. */ export declare function satisfiesNodeRange(version: string, range: string): boolean; export interface ResolvedNode { path: string; version: string; } /** Synchronous {@link findCompatibleNode}, for status checks that cannot await. */ export declare function findCompatibleNodeSync(range: string): ResolvedNode | null; /** * A Node binary on this machine that satisfies `range`, or null. * * `VANA_PDPP_NODE` wins when it satisfies the range; a standalone vana * binary's own Node cannot run a script, so every candidate is asked for its * version rather than trusted from `process.version`. */ export declare function findCompatibleNode(range: string): Promise; /** Whether the pinned Node release this CLI can install satisfies `range`. */ export declare function canInstallNodeFor(range: string): boolean; /** * Download the pinned Node release into ~/.vana/pdpp/node and check it * against the checksum compiled into the CLI before anything is unpacked. */ export declare function installManagedNode(logPath: string): Promise; /** * Make each host package an artifact declares resolvable from its install * root, at exactly the declared version. * * A signed artifact leaves its browser driver out and loads it by dynamic * import, and ESM resolution ignores NODE_PATH, so the package has to sit in * a `node_modules` directory above the artifact. The CLI ships the pinned * version and links it there rather than installing a second copy. */ export declare function linkHostPackages(installRoot: string, contract: HostRuntimeContract): Promise; /** Where connector browser profiles live; owned by the CLI, never shared. */ export declare function getPdppProfileRoot(): string; /** * Environment that decides which browser a connector launches. * * System Chrome is preferred for the same reason the legacy runtime prefers * it: sites treat it as a normal browser. Without it the connector's own * patchright Chromium is used, installed once under ~/.vana/pdpp/browsers. */ export declare function browserEnvironment(): Record; export declare function ensureConnectorBrowser(node: ResolvedNode, logPath: string): Promise; //# sourceMappingURL=host.d.ts.map