/**
 * Rebase Feature on Main Use Case
 *
 * Rebases a feature branch onto the latest main branch with auto-sync
 * and agent-powered conflict resolution.
 *
 * Flow: resolve feature → create standalone agent run → record phase timing →
 * determine cwd (worktree or repo root) → sync main → rebase →
 * on conflict, delegate to ConflictResolutionService → complete timing.
 */
import type { IFeatureRepository } from '../../ports/output/repositories/feature-repository.interface.js';
import type { IGitPrService } from '../../ports/output/services/git-pr-service.interface.js';
import type { IWorktreeService } from '../../ports/output/services/worktree-service.interface.js';
import type { IAgentRunRepository } from '../../ports/output/agents/agent-run-repository.interface.js';
import type { IPhaseTimingRepository } from '../../ports/output/agents/phase-timing-repository.interface.js';
import type { IConflictResolutionService } from '../../ports/output/services/conflict-resolution.interface.js';
export declare class RebaseFeatureOnMainUseCase {
    private readonly featureRepo;
    private readonly gitPrService;
    private readonly worktreeService;
    private readonly conflictResolutionService;
    private readonly agentRunRepo;
    private readonly phaseTimingRepo;
    constructor(featureRepo: IFeatureRepository, gitPrService: IGitPrService, worktreeService: IWorktreeService, conflictResolutionService: IConflictResolutionService, agentRunRepo: IAgentRunRepository, phaseTimingRepo: IPhaseTimingRepository);
    execute(featureId: string): Promise<void>;
    private completeTiming;
    /**
     * Resolve the correct working directory for the feature.
     * Uses the worktree path if a worktree exists for this branch,
     * otherwise falls back to the repository root.
     */
    private resolveCwd;
}
//# sourceMappingURL=rebase-feature-on-main.use-case.d.ts.map