import { FetchedRelease } from './fetch'; import { GitFetchOptions } from './git-fetch'; import { SkillSourceRef } from './manifest'; /** * The default skills layer every harness consumer gets without declaring * anything: the public `constructive-skills` repo at branch head. The repo has * no semver tags yet, so `main` is the only "latest" mechanism; once tagging * starts, consumers can harden to a semver pin via their manifest. */ export declare const DEFAULT_SKILLS_REPO = "constructive-io/constructive-skills"; export declare const DEFAULT_SKILLS_SOURCE_NAME = "constructive-skills"; export declare const DEFAULT_SKILLS_PIN = "main"; export type FetchDefaultSkillsOptions = Pick & Partial>; /** * Fetch the default skills layer: `DEFAULT_SKILLS_REPO@main` through the * normal git fetcher (per-SHA on-disk cache, no re-download for an unchanged * head). When the fetch fails — offline, rate-limited — the newest release * already on disk is returned instead; with nothing cached the fetch error * propagates so the caller can skip the layer with a warning. */ export declare function fetchDefaultSkills(options: FetchDefaultSkillsOptions): Promise; /** Manifest ref for the default layer, lowest precedence by convention. */ export declare function defaultSkillLayer(): SkillSourceRef; /** * Newest already-downloaded release under `skillsRoot`, including branch-head * fetches. Branch heads unpack under commit-SHA directory names, which the * semver filter in `latestLocalRelease` cannot see — those fall back to * newest-by-mtime. Tagged (semver) releases win over SHA directories. */ export declare function latestLocalAnyRelease(skillsRoot: string, subdir?: string): FetchedRelease | null;