/** * Copyright (c) 2025 Elara AI Pty Ltd * Licensed under BSL 1.1. See LICENSE for details. */ import type { StorageBackend } from '../storage/index.js'; /** * Materializes an environment into the repo-local cache and returns the * executable dirs to prepend to the runner's PATH. * * Warm environments (cache dir present) return immediately. Cold * environments build in a temp sibling directory and atomically rename into * place; when two processes race, the loser keeps the winner's build. * * @param storage - Storage backend holding the spec + blobs * @param repo - Repository path (the cache lives at `/envs/`) * @param envHash - Object hash of the beast2-encoded {@link EnvironmentSpec} * @returns PATH entries for the materialized environment * @throws {Error} for `image` environments (cloud-only) and failed builds */ export declare function materializeEnvironment(storage: StorageBackend, repo: string, envHash: string): Promise; //# sourceMappingURL=environment.d.ts.map