/**
 * Per-component worktree setup runner.
 *
 * Sequentially executes each component's `worktreeSetupCommand` (when set)
 * with its `cwd` resolved via `componentRoot()` and `SOURCE_REPO` pointing
 * at the matching component path in the project's primary checkout.
 *
 * Test hook: the caller injects `exec` so unit tests can pass a recorder
 * stub and Docker-mode callers can pass `_dockerExec` directly.
 *
 * See docs/design/multi-repo-components.md §7.1.
 */
import type { Component } from "../agent/project-config-store.js";
export interface RunComponentSetupsOpts {
    components: Component[];
    /** Per-branch container directory: `<wt-root>/<branchSlug>`. */
    branchContainer: string;
    /** The project's primary checkout root — used to compute `SOURCE_REPO`. */
    primaryWorktreeRoot: string;
    /** Caller-supplied exec — host or in-container. */
    exec: (cmd: string, cwd: string, env: NodeJS.ProcessEnv) => Promise<void>;
}
export declare function runComponentSetups(opts: RunComponentSetupsOpts): Promise<void>;
//# sourceMappingURL=worktree-setup.d.ts.map