import type { Logger } from "pino";
import type { TerminalManager } from "../terminal/terminal-manager.js";
import { type WorktreeConfig } from "../utils/worktree.js";
import type { AgentTimelineItem } from "./agent/agent-sdk-types.js";
export interface WorktreeBootstrapTerminalResult {
    name: string | null;
    command: string;
    status: "started" | "failed";
    terminalId: string | null;
    error: string | null;
}
export interface RunAsyncWorktreeBootstrapOptions {
    agentId: string;
    worktree: WorktreeConfig;
    terminalManager: TerminalManager | null;
    appendTimelineItem: (item: AgentTimelineItem) => Promise<boolean>;
    emitLiveTimelineItem?: (item: AgentTimelineItem) => Promise<boolean>;
    logger?: Logger;
}
export interface CreateAgentWorktreeOptions {
    cwd: string;
    branchName: string;
    baseBranch: string;
    worktreeSlug: string;
    seaworkHome?: string;
}
export declare function createAgentWorktree(options: CreateAgentWorktreeOptions): Promise<WorktreeConfig>;
export declare function runAsyncWorktreeBootstrap(options: RunAsyncWorktreeBootstrapOptions): Promise<void>;
//# sourceMappingURL=worktree-bootstrap.d.ts.map