import { type SnapshotFileCopier } from "./file-copier.ts";
export interface RuntimeManifest {
    readonly buildId: string;
    readonly externals: readonly string[];
}
export declare class RuntimeSnapshotLayoutError extends Error {
    readonly packageName: string;
    constructor(packageName: string);
}
export declare const STAGING_PREFIX = ".tmp-";
/**
 * Builds `target` as a copy of the package that no reinstall can touch: the package itself and
 * every package its dependency graph reaches, with nothing linked back to the install, so an
 * upgrade that deletes, rewrites or re-lays-out the install (bundledDependencies on or off) never
 * changes what a running session loads (#2408). Built beside the target and renamed into place,
 * so a crash never leaves a half-built snapshot under its name.
 */
export declare function materializeRuntimeSnapshot(packageDir: string, target: string, manifest: RuntimeManifest, copier?: SnapshotFileCopier): Promise<void>;
//# sourceMappingURL=layout.d.ts.map