import type { BranchDef } from '../command.js'; import type { CommandRegistrySnapshot } from '../command-manifests/registry.js'; import type { ValidatedContribution } from './discovery.js'; /** Adapt legacy ValidatedContribution (plugin format) to transport-neutral * CommandContribution. Returns a snapshot conforming to the unified registry * contract, with an adaptLeaf callback that wraps executeExternalLeaf. */ export declare function adaptPluginContributions(contributions: ValidatedContribution[]): CommandRegistrySnapshot; /** Map an accepted registry snapshot to real top-level BranchDefs, ready to * concatenate beside core subtrees in `buildRoot()`. Consumes transport-neutral * CommandContribution entries from a unified registry snapshot. */ export declare function composeExternalSubtrees(snapshot: CommandRegistrySnapshot): BranchDef[];