import type { SkillOwnershipConfig } from "../config/types.ts"; export declare const DEFAULT_SKILLS_LOCKFILE = "skills-lock.json"; type SkillSourceType = "github" | "local" | string; interface SkillLockEntry { source: string; sourceType: SkillSourceType; skillPath?: string; computedHash?: string; } type SkillOwnership = "owned" | "foreign"; export interface SkillProvenanceMap { /** Repo-relative lockfile path that was read, or null when absent. */ lockfile: string | null; /** Parsed lock entries keyed by slug (empty when no lock / empty lock). */ entries: Record; /** Non-fatal parse / version problems. */ warnings: string[]; } /** * External lock provenance is treated as foreign (synced) by default. * `local` stays owned so same-repo installs (e.g. `skills add .`) keep linting. */ export declare function isForeignLockSourceType(sourceType: string): boolean; export declare function loadSkillsLock(root: string, lockfileRel?: string): SkillProvenanceMap; /** * Classify a discovered skill slug. * Precedence: config ownedSlugs → config foreignSlugs → lock provenance → owned default. */ export declare function classifySkillOwnership(slug: string, provenance: SkillProvenanceMap, ownership?: SkillOwnershipConfig): SkillOwnership; export declare function resolveOwnershipForSlugs(slugs: string[], provenance: SkillProvenanceMap, ownership?: SkillOwnershipConfig): { ownedSlugs: string[]; foreignSlugs: string[]; }; export {};