export { atomicRestoreText, atomicWriteText, atomicWriteTransaction, canonicalizeConfigTargets, installerConfigLockPath, readTextIfExists, withFileLock, withFileLocks, } from '@mnemonik/shared'; export type { AtomicTextChange } from '@mnemonik/shared'; export declare function buildManagedCommand(targetPath: string, owner: string, credentialFamily?: string, server?: string): string; /** * Recover the dispatcher path from a command this installer wrote. Matches on * the ownership marker plus a strict head shape, never a byte-exact prefix — * see the shape docblock at the top of this file. Returns null for anything * not ours, which is what keeps third-party hooks safe from replacement. */ export declare function parseManagedCommand(command: string, owner: string): string | null; export declare function isManagedCommand(command: string, owner: string, packageName: string, entrypoint: string, currentTarget?: string): boolean; export declare function resolvePackageRoot(importMetaUrl: string): string; export declare function resolveRuntimeParent(env?: Partial>): string; export interface DurableRuntimeOptions { sourcePackageRoot: string; runtimeParent: string; runtimeName: string; entrypoints: string[]; } export interface DurableRuntime { root: string; packageRoot: string; entrypoints: Record; } /** * Fail the install loudly if the placed runtime cannot be loaded. * * Called before the host registration is written, so a failure leaves the host * config untouched. A loud install failure is recoverable; a registered hook * that dies at module load is invisible. */ export declare function assertRuntimeLoads(entrypoints: Record): Promise; export declare function installDurableRuntime(options: DurableRuntimeOptions): Promise;