import type { FetchRef, MrSource, WorktreeIdentity, WorktreePath } from '../../../../modules/worktree-management/entities/worktree/worktree.schema.js';
/**
 * Single chokepoint constructor for the WorktreePath branded type. Any
 * other call site that needs a WorktreePath must go through this factory
 * rather than casting a raw string. Validates absoluteness so accidental
 * relative paths are caught at the boundary.
 */
export declare function createWorktreePath(value: string): WorktreePath;
export declare function deriveWorktreeSlug(projectPath: string): string;
export declare function deriveWorktreeDirectoryName(identity: WorktreeIdentity): string;
export declare function deriveWorktreePath(identity: WorktreeIdentity): WorktreePath;
export declare function deriveFetchRef(source: MrSource, sourceBranch: string, mrNumber: number): FetchRef;
export declare function parseWorktreeDirectoryName(directoryName: string): WorktreeIdentity | null;
//# sourceMappingURL=worktree.d.ts.map