import type { Api } from "@cargo-ai/api"; import type { StateBackend } from "./types.js"; export type CloudStateBackendInput = { api: Api; /** The uuid cargo.state.json points at. Never derived, never guessed. */ stateUuid: string; /** Where to drop the read-through cache the offline commands use. */ root: string; }; /** * A state held in the workspace, addressed by the uuid in cargo.state.json. * * Two invariants make concurrent deploys safe, and both are enforced by the * API rather than here: a write carries the version it was based on, and a * write made while somebody else holds the lock is refused. The version a * write carries is the one `read` returned — `snapshot` re-reads to decide * whether there is anything to roll back to, but must not refresh that token. */ export declare function cloudStateBackend(input: CloudStateBackendInput): StateBackend; //# sourceMappingURL=cloud.d.ts.map