import type { Logger } from "pino";
import type { AgentManager } from "./agent/agent-manager.js";
import type { AgentStorage } from "./agent/agent-storage.js";
import type { WorkspaceGitService } from "./workspace-git-service.js";
import type { GitHubService } from "../services/github-service.js";
import type { TerminalManager } from "../terminal/terminal-manager.js";
export interface ArchivePaseoWorktreeDependencies {
    paseoHome?: string;
    worktreesRoot?: string;
    github: GitHubService;
    workspaceGitService: Pick<WorkspaceGitService, "getSnapshot">;
    agentManager: Pick<AgentManager, "listAgents" | "archiveAgent" | "archiveSnapshot">;
    agentStorage: Pick<AgentStorage, "list">;
    archiveWorkspaceRecord: (workspaceId: string) => Promise<void>;
    emitWorkspaceUpdatesForWorkspaceIds: (workspaceIds: Iterable<string>) => Promise<void>;
    markWorkspaceArchiving: (workspaceIds: Iterable<string>, archivingAt: string) => void;
    clearWorkspaceArchiving: (workspaceIds: Iterable<string>) => void;
    isPathWithinRoot: (rootPath: string, candidatePath: string) => boolean;
    killTerminalsUnderPath: (rootPath: string) => Promise<void>;
    sessionLogger?: Logger;
}
export interface KillTerminalsUnderPathDependencies {
    isPathWithinRoot: (rootPath: string, candidatePath: string) => boolean;
    killTrackedTerminal: (terminalId: string, options?: {
        emitExit: boolean;
    }) => void;
    detachTerminalStream?: (terminalId: string, options: {
        emitExit: boolean;
    }) => void;
    sessionLogger: Logger;
    terminalManager: TerminalManager | null;
}
export declare function archivePaseoWorktree(dependencies: ArchivePaseoWorktreeDependencies, options: {
    targetPath: string;
    repoRoot: string | null;
    worktreesRoot?: string;
    worktreesBaseRoot?: string;
    requestId: string;
}): Promise<string[]>;
export declare function killTerminalsUnderPath(dependencies: KillTerminalsUnderPathDependencies, rootPath: string): Promise<void>;
//# sourceMappingURL=paseo-worktree-archive-service.d.ts.map