export type ManagedDependencyRecord = {
    dependencyId: string;
    sourceId: string;
    status: "installed" | "available" | "failed";
    managedRoot: string;
    resolvedPath?: string;
    version?: string;
    observedAt: string;
    lastError?: string;
    metadata?: Readonly<Record<string, unknown>>;
};
export type ManagedDependencyState = {
    version: 1;
    records: Readonly<Record<string, ManagedDependencyRecord>>;
};
export declare function managedDependencyStatePath(managedRoot: string): string;
export declare function readManagedDependencyState(managedRoot: string): Promise<ManagedDependencyState>;
export declare function writeManagedDependencyState(managedRoot: string, state: ManagedDependencyState): Promise<void>;
export declare function updateManagedDependencyRecord(managedRoot: string, record: ManagedDependencyRecord): Promise<ManagedDependencyState>;
export declare function readManagedDependencyRecord(managedRoot: string, dependencyId: string): Promise<ManagedDependencyRecord | undefined>;
