/**
 * Package Registry
 *
 * Manages ~/.aiwg/packages.yaml — the local registry of installed remote
 * packages (frameworks, addons, extensions installed via `aiwg install`).
 *
 * @implements #557
 */
import type { PackageEntry, PackageDeployRecord, PackageInfo, PackageRegistryFile } from './types.js';
/**
 * Get the path to packages.yaml
 */
export declare function getPackagesFilePath(configDir?: string): string;
/**
 * Read packages.yaml, returning an empty registry if the file does not exist
 */
export declare function readPackageRegistry(configDir?: string): Promise<PackageRegistryFile>;
/**
 * Write packages.yaml, creating ~/.aiwg/ if needed
 */
export declare function writePackageRegistry(registry: PackageRegistryFile, configDir?: string): Promise<void>;
/**
 * Get a single package entry by key (e.g. "roko/ring-methodology")
 */
export declare function getPackageEntry(key: string, configDir?: string): Promise<PackageEntry | undefined>;
/**
 * Upsert a package entry
 */
export declare function setPackageEntry(key: string, entry: PackageEntry, configDir?: string): Promise<void>;
/**
 * Remove a package entry
 */
export declare function removePackageEntry(key: string, configDir?: string): Promise<boolean>;
/**
 * Record a deployment against an existing package entry
 */
export declare function recordDeployment(key: string, record: PackageDeployRecord, configDir?: string): Promise<void>;
/**
 * List all installed packages as PackageInfo summaries
 */
export declare function listPackages(configDir?: string): Promise<PackageInfo[]>;
//# sourceMappingURL=package-registry.d.ts.map