import type { SkillPackageGraphDiagnostic } from "../../package-graph/adapters/skills.js"; import { type DeepReadonly, type PackageGraphIndex } from "../../package-graph/build.js"; import type { PackageGraphSource, PackageGraphSourceDigest, PackageId, SurfaceId } from "../../package-graph/schema.js"; import type { CapabilityPackageResolution } from "../resolve.js"; export type CapabilityPackageSkillPackErrorCode = "invalid-index" | "invalid-resolution" | "invalid-diagnostics" | "unsupported-package-family" | "package-authority-not-catalog" | "missing-catalog-claim" | "catalog-claim-mismatch" | "unsupported-member-family" | "missing-lock-claim" | "relevant-package-conflict" | "relevant-member-conflict" | "unsupported-required-checks" | "unsupported-source"; export declare class CapabilityPackageSkillPackError extends Error { readonly code: CapabilityPackageSkillPackErrorCode; constructor(code: CapabilityPackageSkillPackErrorCode); } export interface SkillPackAuthorityRef { authorityId: string; claimDigest: string; sourceDigest: PackageGraphSourceDigest; } export interface SkillPackAuthorityMemberBinding { id: SurfaceId; catalogClaimDigest: string; source: PackageGraphSource; sourceDigest: PackageGraphSourceDigest; authorityRefs: SkillPackAuthorityRef[]; } export interface SkillPackAuthorityBinding { id: PackageId; authorityId: string; claimDigest: string; source: PackageGraphSource; sourceDigest: PackageGraphSourceDigest; dependencies: PackageId[]; members: SkillPackAuthorityMemberBinding[]; } export interface SkillPackAuthorityBridgeInput { resolution: DeepReadonly; index: PackageGraphIndex; diagnostics: readonly SkillPackageGraphDiagnostic[]; } /** * Prove that resolved skill-pack catalog claims are corroborated by immutable lock claims. * This is authority metadata only; it does not assert installation or configuration. */ export declare function resolveSkillPackAuthorityBindings(input: SkillPackAuthorityBridgeInput): DeepReadonly;