/**
 * Preset loader — resolves and loads external PresetDefinition files.
 *
 * Supports two reference formats:
 * - Relative path (./foo.ts, ../presets/bar.ts) → loaded from disk via jiti
 * - npm package name (my-preset-package) → resolved via Node require
 *
 * Uses jiti for synchronous TypeScript/JavaScript loading, matching the
 * sync constraint of createAppContext() and createRegistry().
 *
 * @see packages/eval/src/composition-root.ts — where this is called
 */
import type { PresetDefinition } from "../../_vendor/ailf-core/index.d.ts";
/**
 * Load external presets from file paths or npm package names.
 *
 * @param refs - Preset references (relative paths or package names)
 * @param rootDir - Base directory for resolving relative paths
 * @returns Loaded PresetDefinition array (preserves input order)
 * @throws If a preset file is not found or doesn't export a valid PresetDefinition
 */
export declare function loadExternalPresets(refs: string[], rootDir: string): PresetDefinition[];
