import { type Blueprint, type Domain, type Profile, type WorkingSet } from "../schema.js"; export interface RefCheckResult { ok: boolean; errors: string[]; warnings: string[]; } /** pack-aware 查找的可选入参(issue pt-scan-qualified-ref-pack-blind)。 * - domainWS:Domain 双索引(限定 ref 精确查;不限定 ref fallback 查 identity 索引) * - packNames:限定 ref fallback 顺序(与 compile 层 resolveAndDedupRefs 的 loadedPackNames 等价) * 两者都提供时启用 pack-aware 查找;任一缺省则退化为纯 name 查找(旧行为)。 */ export interface RefCheckOpts { domainWS?: WorkingSet; packNames?: readonly string[]; } /** 校验单个 Profile 的引用完整性。 * 传入该 Profile 引用的 Blueprint(若存在)+ 全集 Domains。 */ export declare function checkProfileRefs(profile: Profile, blueprints: Blueprint[], domains: Domain[], opts?: RefCheckOpts): RefCheckResult; /** 校验所有 Profile 的引用完整性(批量入口)。 */ export declare function checkAllRefs(profiles: Profile[], blueprints: Blueprint[], domains: Domain[], opts?: RefCheckOpts): RefCheckResult; /** 把 RefCheckResult 格式化为人类可读文本(pt_info {kind: lint} tool 输出用)。 */ export declare function formatRefCheckResult(r: RefCheckResult): string;