/** * @fileoverview Fitness plugin loader — adapter over core's generic loader. * * Core owns the discovery, dynamic-import, error-wrap, and log machinery * (see @opensip-cli/core's loadPlugin / loadAllPlugins). This file * supplies the fitness-specific `registerExports` callback that knows * how to interpret a `FitPluginExports`-shaped module: register * language adapters (for the `lang` domain), checks (named or in a * `checks` array), and recipes. * * Public API (`loadPlugin`, `loadAllPlugins`) is preserved so existing * callers (fit.ts) don't change. */ import type { DiscoveredPlugin, LoadedPlugin, PluginLayout, PluginLoadResult } from '@opensip-cli/core'; /** * Fitness's project-local plugin layout — user checks/recipes live under * `/opensip-cli/fit/{checks,recipes}/`. Exported so the * `fitnessTool` descriptor (`Tool.pluginLayout`) and the CLI's `plugin` * command share one source of truth (ADR-0009 corollary 1). */ export declare const FIT_PLUGIN_LAYOUT: PluginLayout; export { isolatedFitPackBridge } from '../capability/isolated-fit-pack.js'; /** * Fitness-domain `loadPlugin` entry point. Dispatches to the right * `registerExports` callback (fit vs lang) and delegates to core's loader. */ export declare function loadPlugin(plugin: DiscoveredPlugin, domain?: string): Promise; /** * Fitness-domain `loadAllPlugins` entry point. Dispatches to the right * `registerExports` callback (fit vs lang) and delegates to core's loader. */ export declare function loadAllPlugins(domain: string, projectDir?: string): Promise; //# sourceMappingURL=loader.d.ts.map