import { RuntimeSupervisorV1, type ObservedPaseoDaemonV1, type ProviderLeaseLifecycleIdentityV1, type ProviderLeaseModeV1, type ProviderLeaseQuiescenceV1, type ProviderLeaseV1, type RuntimeServiceV1, type RuntimeServiceKindV1, type RuntimeServiceStatusV1, type RuntimeSnapshotV1 } from "./supervisorV2.js"; export interface ManagedRuntimeOptionsV1 { root: string; projectId?: string; ownerId?: string; statePath?: string; supervisor?: RuntimeSupervisorV1; clock?: () => Date; leaseTtlMs?: number; } export interface ManagedProviderLeaseInputV1 { provider: string; workspaceId: string; mode: ProviderLeaseModeV1; ttlMs?: number; lifecycle?: ProviderLeaseLifecycleIdentityV1; } /** Stable local identity used when no repository registry record is available yet. */ export declare function runtimeProjectId(root: string): string; /** * Controller-facing runtime supervisor. The shared snapshot is the durable * coordination authority for process records and provider leases: every * mutation reloads under one root-scoped lock and atomically replaces it. * Capability authority and ExecutionBinding identity remain separate. */ export declare class ManagedRuntimeSupervisorV1 { readonly supervisor: RuntimeSupervisorV1; readonly root: string; readonly projectId: string; readonly ownerId: string; readonly statePath: string; private readonly clock; private readonly leaseTtlMs?; constructor(options: ManagedRuntimeOptionsV1); registerService(input: Omit & { kind: RuntimeServiceKindV1; status?: RuntimeServiceStatusV1; metadata?: Record; }): Promise; registerObservedPaseoDaemon(input: Omit): Promise; updateService(serviceId: string, update: Partial>): Promise; heartbeat(serviceId: string): Promise; stopService(serviceId: string, status?: "STOPPED" | "FAILED"): Promise; acquireProviderLease(input: ManagedProviderLeaseInputV1): Promise; renewProviderLease(leaseId: string, ttlMs?: number): Promise; updateProviderLeaseLifecycle(leaseId: string, lifecycle: ProviderLeaseLifecycleIdentityV1): Promise; completeProviderLeaseTakeover(leaseId: string, lifecycle: ProviderLeaseLifecycleIdentityV1, quiescence: ProviderLeaseQuiescenceV1): Promise; releaseProviderLease(leaseId: string): Promise; /** Release all leases owned by this exact runtime controller during drain/cleanup. */ releaseOwnedProviderLeases(): Promise; /** Drain every service and provider lease owned by this runtime in one transaction. */ drainAndRelease(): Promise; /** Read a current shared snapshot and expire leases before returning it. */ snapshot(): Promise; /** Refresh/expire shared state without introducing a second write path. */ persist(): Promise; private transact; } export declare function readManagedRuntimeSnapshot(root: string, statePath?: string): Promise; export declare function createManagedRuntime(options: ManagedRuntimeOptionsV1): Promise;