/**
 * One-shot extension manifest discovery for config load + gateway bootstrap reuse.
 */
import { type DiscoverConfig, type ExtensionLoaderOptions } from './discover-extensions.js';
import { ManifestRegistry } from './manifest-registry.js';
import type { DiscoveredExtension } from './types/loader.js';
export interface ExtensionMetadataSnapshot {
    discovered: DiscoveredExtension[];
    manifestRegistry: ManifestRegistry;
}
/**
 * Scan extension directories once and build a manifest registry snapshot.
 * Pass the result to {@link ExtensionLoader.setManifestSnapshot} to avoid rediscovery.
 */
export declare function buildExtensionMetadataSnapshot(options: ExtensionLoaderOptions, config?: DiscoverConfig): ExtensionMetadataSnapshot;
/**
 * Resolve loader options from app config when caller omits workspace paths.
 */
export declare function resolveExtensionLoaderOptionsFromConfig(config: DiscoverConfig): ExtensionLoaderOptions;
