import { DefaultResourceLoader } from '@nerf/pi-coding-agent';
export { discoverExtensionEntryPaths } from './extension-discovery.js';
export declare function getExtensionKey(entryPath: string, extensionsDir: string): string;
export declare function readManagedResourceVersion(agentDir: string): string | null;
export declare function getNewerManagedResourceVersion(agentDir: string, currentVersion: string): string | null;
/**
 * Syncs all bundled resources to agentDir (~/.nerf/agent/) on every launch.
 *
 * - extensions/ → ~/.nerf/agent/extensions/   (overwrite when version changes)
 * - agents/     → ~/.nerf/agent/agents/        (overwrite when version changes)
 * - NERF-WORKFLOW.md → ~/.nerf/agent/NERF-WORKFLOW.md (fallback for env var miss)
 *
 * Skills are NOT synced here. They are installed by the user via the
 * skills.sh CLI (`npx skills add <repo>`) into ~/.agents/skills/ — the
 * industry-standard Agent Skills ecosystem directory.
 *
 * Skips the copy when the managed-resources.json version matches the current
 * NERF version, avoiding ~128ms of synchronous cpSync on every startup.
 * After `npm update -g @glittercowboy/nerf`, versions will differ and the
 * copy runs once to land the new resources.
 *
 * Inspectable: `ls ~/.nerf/agent/extensions/`
 */
export declare function initResources(agentDir: string): void;
export declare function hasStaleCompiledExtensionSiblings(extensionsDir: string): boolean;
export declare function buildResourceLoader(agentDir: string): DefaultResourceLoader;
