type WorktreeAction = 'create' | 'list' | 'pr' | 'finish' | 'cleanup' | 'ensure' | 'prune';
interface WorktreeOptions {
    slug?: string;
    id?: string;
    from?: string;
    description?: string;
    draft?: boolean;
    strict?: boolean;
    olderThan?: number;
    force?: boolean;
    dryRun?: boolean;
}
export declare function worktreeCommand(action: WorktreeAction, options?: WorktreeOptions): Promise<void>;
export declare function parseRevListCount(output: string): number;
export declare function isAlreadyMergedMessage(message: string): boolean;
/**
 * Check if a given file path is inside a worktree directory.
 * Exported for use by the worktree file guard in the MCP router.
 */
export declare function isPathInsideWorktree(filePath: string): boolean;
/**
 * Check if a file path is exempt from worktree enforcement.
 * Runtime data directories and node_modules are exempt.
 */
export declare function isExemptFromWorktree(filePath: string): boolean;
export {};
//# sourceMappingURL=worktree.d.ts.map