import type { IGitRepository, IWorktreeManager, ITmuxManager, ILogger, IErrorBoundary } from './interfaces.js'; import type { SessionConfig, SessionInfo } from '../../sessions/TmuxManager.js'; import type { GitWorktreeInfo } from '../../types/index.js'; export declare class GitServiceAdapter implements IGitRepository, IWorktreeManager { private readonly gitRepo; private readonly worktreeManager; private readonly errorBoundary; private readonly logger; constructor(gitRepo: IGitRepository, worktreeManager: IWorktreeManager, errorBoundary?: IErrorBoundary, logger?: ILogger); getCurrentBranch(): Promise; getDefaultBranch(): Promise; initializeBareRepository(repoUrl?: string): Promise<{ defaultBranch: string; }>; convertToWorktreeSetup(): Promise<{ defaultBranch: string; }>; canConvertToWorktree(): Promise<{ canConvert: boolean; reason?: string; }>; fetch(): Promise; listWorktrees(): Promise; addWorktree(branchName: string, baseBranch?: string): Promise; removeWorktree(branchName: string): Promise; } export declare class TmuxServiceAdapter implements ITmuxManager { private readonly tmuxManager; private readonly errorBoundary; private readonly logger; constructor(tmuxManager: ITmuxManager, errorBoundary?: IErrorBoundary, logger?: ILogger); 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 declare class CachingAdapter { private readonly service; private readonly ttlMs; private cache; constructor(service: T, ttlMs?: number); cached(method: (...args: TArgs) => Promise, cacheKeyFn?: (...args: TArgs) => string): (...args: TArgs) => Promise; clearCache(): void; getService(): T; } export declare class RetryAdapter { private readonly service; private readonly maxRetries; private readonly delayMs; constructor(service: T, maxRetries?: number, delayMs?: number); retryable(method: (...args: TArgs) => Promise, shouldRetry?: (error: unknown) => boolean): (...args: TArgs) => Promise; getService(): T; } //# sourceMappingURL=adapters.d.ts.map