import type { CommandContribution } from '../command-manifests/registry.js'; import type { ValidatedConfiguredCliManifest } from './manifest.js'; import type { ConfiguredCliRegistration } from './registration.js'; /** * Adapt one registration + its validated manifest into transport-neutral * contributions — one per top-level root the manifest declares. Each leaf's * `run` closure captures the registration (name/endpoint/authEnvVar), the * manifest-level base/timeout overrides, and the leaf's own `rest` mapping, * then calls `invokeConfiguredLeaf`. The bearer token is never captured here — * the invoker reads it from the environment at call time. `outputKind` is * derived from `rest.streaming` (the single source of truth per §4.3): a * streaming leaf renders as `jsonl`, a unary leaf as `object`. */ export declare function adaptConfiguredContributions(registration: ConfiguredCliRegistration, manifest: ValidatedConfiguredCliManifest): CommandContribution[];