import { type ChannelConfig, type ChannelRegistryFile, type MeshLaunchSpec } from "@cotal-ai/core"; import type { PreparedManifest } from "./preflight.js"; import type { PreparedAgent } from "./prepare.js"; import type { ResolvedChannel } from "./model.js"; /** A path-safe run id naming the transient `.cotal/run//` dir and tying to the ledger. */ export declare function genRunId(): string; /** Stable content hash of the resolved launch fields — connector + behavior + ACLs. A change here * means a re-declared running agent is stale/restart-required (drift detection). */ export declare function hashAgent(a: PreparedAgent): string; /** Build the launch spec the manager boots from. `owner` (user-auth meshes) is the logged-in * operator every launched agent runs under — resolved by the caller at apply time. */ export declare function buildLaunchSpec(prepared: PreparedManifest, runId: string, owner?: string): MeshLaunchSpec; /** Write the launch spec to `/.cotal/run/.json` (0600 — it carries persona text + * policy) and return its path. A fresh run is exclusive-create (`wx`); a `spawn -f` re-apply reuses * the runId, so `update` rewrites it atomically (temp-then-rename, exclusive temp — never follows a * pre-planted symlink). Both refuse a symlinked `.cotal`/`run` parent. */ export declare function writeLaunchSpec(root: string, spec: MeshLaunchSpec, opts?: { update?: boolean; }): string; /** A channel's registry card (description/instructions/replay…) in the shape `seedChannelRegistry` * writes. Oversize description/instructions are rejected at the write path. */ export declare function cardOf(ch: ResolvedChannel): ChannelConfig; /** The channel-registry seed (defaults + every per-channel card) — used by `up -f`, which owns the * whole space. */ export declare function manifestToChannels(prepared: PreparedManifest): ChannelRegistryFile; /** Preflight the connectors: MATERIALIZE every distinct connector type from the manifest (seeded or * `ext add`ed — nothing static-imports them on the published binary) and require its binaries on * PATH. Fail before any mutation (no fallback). Returns an error sentence, or "". */ export declare function preflightConnectors(prepared: PreparedManifest): Promise; //# sourceMappingURL=apply.d.ts.map