import type { DirectoryState, GitWorktreeInfo } from '../../types/index.js'; import type { SessionConfig, SessionInfo } from '../../sessions/TmuxManager.js'; import type { ExecResult } from '../utils/async.js'; export interface IGitRepository { getCurrentBranch(): Promise; getDefaultBranch(): Promise; initializeBareRepository(repoUrl?: string): Promise<{ defaultBranch: string; }>; convertToWorktreeSetup(): Promise<{ defaultBranch: string; }>; canConvertToWorktree(): Promise<{ canConvert: boolean; reason?: string; }>; fetch(): Promise; } export interface IWorktreeManager { listWorktrees(): Promise; addWorktree(branchName: string, baseBranch?: string): Promise; removeWorktree(branchName: string): Promise; } export interface IGitDetector { detectState(): Promise; } export interface IConfigManager { get(key: string, defaultValue?: T): T; set(key: string, value: T): void; getContext(projectName: string, branchName: string, role: 'supervisor' | 'child'): string | null; } export interface ITmuxManager { isTmuxAvailable(): Promise; isInsideTmux(): boolean; getSessionInfo(sessionName: string): Promise; listSessions(): Promise; launchSession(config: SessionConfig): Promise; createDetachedSession(config: SessionConfig): Promise; attachToSession(sessionName: string): Promise; killSession(sessionName: string): Promise; shutdownAll(): Promise; } export interface ITmuxDriver { isAvailable(): Promise; isInsideTmux(): boolean; listSessions(): Promise>; getSession(sessionName: string): Promise<{ name: string; windows: number; created: Date; attached: boolean; } | null>; createSession(options: { sessionName: string; workingDirectory?: string; windowName?: string; detached?: boolean; command?: string; }): Promise; killSession(sessionName: string): Promise; sendKeys(target: string, keys: string[], sendEnter?: boolean): Promise; setOption(target: string, option: string, value: string, global?: boolean): Promise; } export interface ILogger { info(message: string, meta?: Record): void; error(message: string, error?: unknown): void; warn(message: string, meta?: Record): void; debug(message: string, meta?: Record): void; verbose(message: string, meta?: Record): void; } export interface IServiceFactory { create(...args: unknown[]): T; } export interface IApplicationContext { basePath: string; options: { repo?: string; quiet?: boolean; interactive?: boolean; }; } export interface IErrorBoundary { handle(operation: () => Promise, context?: string): Promise; handleSync(operation: () => T, context?: string): T; } //# sourceMappingURL=interfaces.d.ts.map